Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Installing Oracle STATSPACK

Oracle Tips by Burleson Consulting
Don Burleson

The installation steps for STATSPACK are relatively simple and straightforward. This chapter will walk you, step by step, through the installation and configuration of STATSPACK. We will be including a complete description of the following steps:

  • Creating the perfstat tablespace

  • Creating the perfstat user

  • Creating the tables

  • Installing the packages

  • Collecting data

  • Scheduling data collection snapshots with dbms_job

  • Testing your installation

Let's begin by reviewing the functions of each of these files. Several of the files call subfiles, so it helps if we organize the files as a hierarchy:

?        spcreate.sqlThis is the first install script run after you create the tablespace. It calls several subscripts:

?        spcsr.sqlThis script creates a user called PERFSTAT with the required permissions.

?        spctab.sqlThis creates the STATSPACK tables and indexes, owned by the PERFSTAT user.

?        spcpkg.sqlThis creates the PL/SQL package called STATSPACK with the STATSPACK procedures.

?        spauto.sqlThis script contains the dbms_job.submit commands that will execute a STATSPACK snapshot every hour.

?        spdrop.sqlThis script is used to drop all STATSPACK entities. This script calls these subscripts:

?        spdtab.sqlThis drops all STATSPACK tables and indexes.

?        spdusr.sqlThis script drops the PERFSTAT user.

?        spdoc.txtThis is a generic read-me file explaining the installation and operation of the STATSPACK utility.

?        spreport.sqlThis is the shell for the only report provided in STATSPACK. It prompts you for the start and end snapshots, and then produces an elapsed-time report.

?        sprepins.sqlThis is the actual SQL that produces the STATSPACK report.

?        sppurge.sqlThis is a script to delete older unwanted snapshots.

?        spuexp.parThis is a export parameter file to export all of the STATSPACK data.

?        sptrunc.sqlThis is a script to truncate all STATSPACK tables.

?        spup816.sqlThis is a script to upgrade pre-8.1.7 STATSPACK tables to use the latest schema. Note that you must export the STATSPACK schema before running this script.

?        spup817.sqlThis is a script to upgrade to Oracle 8.1.7 from Oracle 8.1.6.



 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.