Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle Database XE 11gR2 Jump Start Guide

You're reading from   Oracle Database XE 11gR2 Jump Start Guide Build and manage your Oracle Database 11g XE environment with this fast paced, practical guide with this book and ebook.

Arrow left icon
Product type Paperback
Published in Jul 2012
Publisher Packt
ISBN-13 9781849686747
Length 146 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Asif Momen Asif Momen
Author Profile Icon Asif Momen
Asif Momen
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
1. www.PacktPub.com
2. Preface
1. Database Editions and Oracle Database XE FREE CHAPTER 2. Installing and Uninstalling Oracle Database XE 3. Connecting and Configuring Oracle Database 11g XE 4. Accessing Table Data, DML Statements, and Transactions 5. Creating and Managing Schema Objects 6. Developing Stored Subprograms and Triggers 7. Building a Sample Application with Oracle Application Express 8. Managing Database and Database Storage 9. Moving Data between Oracle Databases 10. Upgrading Oracle Database 11g XE to Other Database Editions 11. Backup and Recovery 12. Tuning Oracle Database 11g XE Features Available with Oracle Database 11g XE

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image