Oracle StatsPack

General Information
Library Note Morgan's Library Page Header
The Library is currently in the process of being upgraded from Oracle Database Version to and version 18.0 is going to be available soon. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c and beyond.

Have you viewed the Library's main Table of Contents? If not ... [Click Here] ... scroll down the page and you will find links to the largest collection of Oracle Database demos on the net.
Purpose StatsPack is ...
Primary StatsPack Creation Scripts
Description Script
Create Script: calls spcusr.sql, spectab.sql, and spcpkg.sql ?/rdbms/admin/sbcreate.sql
Create User and Required Privileges ?/rdbms/admin/spcusr.sql
Create Required Tables ?/rdbms/admin/spctab.sql
Creates Statistics Package ?/rdbms/admin/sbcpkg.sql
Validate Installation conn perfstat/perfstat@orabase
Automates Statistics Collection ?/rdbms/admin/spauto.sql
Server Performance AWR RAC Report ?/rdbms/admin/spawrrac.sql
Purges a Range of Snapshots ?/rdbms/admin/sppurge.sql
Report Configuration ?/rdbms/admin/sprepcon.sql
Default StatsPack Report ?/rdbms/admin/spreport.sql (calls sprepins.sql)
Snapshot Instance Difference Report ?/rdbms/admin/sprepins.sql
Standard StatsPack Report ?/rdbms/admin/sprepsql.sql (calls sprsqins.sql)
Resource Usage, SQL Text & Plans Report ?/rdbms/admin/sprsqins.sql
Truncates the StatsPack Tables ?/rdbms/admin/sptrunc.sql
Drops the user, tables, and package ?/rdbms/admin/spdrop.sql
Drops StatsPack Tables ?/rdbms/admin/spdtab.sql
Drops StatsPack User ?/rdbms/admin/spdusr.sql
Standby StatsPack Creation Scripts
Description Script
Driver Create Script SQL> @?/rdbms/admin/sbcreate.sql (calls sbcusr.sql, sbctab.sql, and sbaddins.sql)
Create User and Required Privileges SQL> @?/rdbms/admin/sbcusr.sql
Create Required Tables SQL> @?/rdbms/admin/sbctab.sql
Add a Standby Database to the Configuration SQL> @?/rdbms/admin/sbaddins.sql (calls sbcpkg.sql)
Create Standby Statistics Package SQL> @?/rdbms/admin/sbcpkg.sql
List Standby Instances SQL> @?/rdbms/admin/sblisins.sql
Report Creation SQL> @?/rdbms/admin/sbreport.sql (calls sbrepcon.sql and sbrepins.sql)
Return Report Configuration SQL> @?/rdbms/admin/sbrepcon.sq
Report Creation SQL> @?/rdbms/admin/sbrepins.sql
Purge a Set of Snapshots SQL> @?/rdbms/admin/sbpurge.sql
Remove Standby Instance SQL> @?/rdbms/admin/sbdelins.sql
Drops the User and Tables SQL> @?/rdbms/admin/sbdrop.sql (calls sbdtab.sql and sbdusr.sql)
Drops the Tables SQL> @?/rdbms/admin/sbdtab.sql
Drops the User SQL> @?/rdbms/admin/sbdrop.sql
  c:\users\oracle>sqlplus sys@pdbdev as sysdba

SQL*Plus: Release Production on Sun Oct 11 17:50:43 2015

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Enter password:

Connected to:
Oracle Database 12c Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

Related Topics
ASH Report
Automated Workload Repository
AWR Report
What's New In 12cR1
What's New In 12cR2

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2017 Daniel A. Morgan All Rights Reserved