Book Image

Oracle Database XE 11gR2 Jump Start Guide

By : Asif Momen
Book Image

Oracle Database XE 11gR2 Jump Start Guide

By: Asif Momen

Overview of this book

Oracle Database XE 11gR2 is an excellent beginner-level database and is a great platform to learn database concepts. "Oracle Database XE 11gR2 Jump Start Guide" helps you to install, administer, maintain, tune, back up and upgrade your Oracle Database Express Edition. The book also helps you to build custom database applications using Oracle Application Express.Using this book, you will be able to install Oracle Database XE on Windows/Linux operating system.This book helps you understand different database editions and it guides you through the installation procedure with the aid of screenshots. You will learn to interact with the database objects. You will gain a solid understanding of stored sub-programs which is followed by an introduction to Oracle Application Express (APEX). Solid database performance tuning strategies are also discussed in this book followed by backup and recovery scenarios. All in all, "Oracle Database XE 11gR2 Jump Start Guide" delivers everything that you should know to get started with Oracle Database administration.
Table of Contents (20 chapters)
Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Statspack


The Statspack utility has been available since Oracle 8i (8.1.6) to monitor database performance. Statspack stores the performance statistics in Oracle tables. The data collected can later be used for reporting and performance analysis.

Installing Statspack

When you run the Statspack installation script, it automatically creates a PERFSTAT user. PERFSTAT owns all the objects needed by the Statspack. The installation steps are as follows:

  1. 1. Log into SQL*Plus with the SYSDBA privilege.

  2. 2. Create a tablespace to hold STATSPACK data (for example, PERFSTAT_TBS).

  3. 3. Execute the spcreate.sql file which resides in the ORACLE_HOME/rdbms/admin folder:

    -- script to create STATSPACK package
    SQL> @?\rdbms\admin\spcreate.sql
    

When the above script is run, it will prompt for the following information:

  1. 1. Enter a password for the PERFSTAT user.

  2. 2. Choose a tablespace (PERFSTAT_TS).

  3. 3. Choose a temporary tablespace.

  4. 4. Check the spcpkg.lis file for any errors.

    If spcpkg.lis reports any errors then...