Sunteți pe pagina 1din 26

STAT PACK deployment.

SQL> CREATE TABLESPACE perfstat


2 DATAFILE '/oracle/MRSQ/oradata3/perfstat01.dbf' SIZE 1000M REUSE
3 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K
4 SEGMENT SPACE MANAGEMENT AUTO
5 PERMANENT
6 ONLINE;

Tablespace created.

SQL> select * from global_name;

GLOBAL_NAME
--------------------------------------------------------------------------------
MRSQ

SQL> @$ORACLE_HOME/rdbms/admin/catdbsysn.sql
SP2-0310: unable to open file "/oracle/RS1/102_64/rdbms/admin/catdbsysn.sql"
SQL> @$ORACLE_HOME/rdbms/admin/catdbsysn.sql
SP2-0310: unable to open file "/oracle/RS1/102_64/rdbms/admin/catdbsysn.sql"
SQL> !ls -lrt /oracle/RS1/102_64/rdbms/admin/catdb*
-rwxrwxr-x 1 orars1 dba 4696 May 28 2001 /oracle/RS1/102_64/rdbms/admin/catdbsyn.sql
-rwxrwxr-x 1 orars1 dba 12253 May 25 2005 /oracle/RS1/102_64/rdbms/admin/catdbfus.sql

SQL> @/oracle/RS1/102_64/rdbms/admin/catdbsyn.sql
create or replace synonym DBA_CATALOG for SYS.DBA_CATALOG
*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_CLUSTERS for SYS.DBA_CLUSTERS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_CLU_COLUMNS for SYS.DBA_CLU_COLUMNS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_COL_COMMENTS for SYS.DBA_COL_COMMENTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_CROSS_REFS for SYS.DBA_CROSS_REFS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object
create or replace synonym DBA_DATA_FILES for SYS.DBA_DATA_FILES
*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_DB_LINKS for SYS.DBA_DB_LINKS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_EXP_FILES for SYS.DBA_EXP_FILES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_EXP_OBJECTS for SYS.DBA_EXP_OBJECTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_EXP_VERSION for SYS.DBA_EXP_VERSION


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_EXTENTS for SYS.DBA_EXTENTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_FREE_SPACE for SYS.DBA_FREE_SPACE


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_INDEXES for SYS.DBA_INDEXES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_IND_COLUMNS for SYS.DBA_IND_COLUMNS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_OBJECTS for SYS.DBA_OBJECTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SEQUENCES for SYS.DBA_SEQUENCES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TAB_COLUMNS for SYS.DBA_TAB_COLUMNS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TAB_COMMENTS for SYS.DBA_TAB_COMMENTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TAB_PRIVS for SYS.DBA_TAB_PRIVS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_ROLLBACK_SEGS for SYS.DBA_ROLLBACK_SEGS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SEGMENTS for SYS.DBA_SEGMENTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SYNONYMS for SYS.DBA_SYNONYMS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TABLESPACES for SYS.DBA_TABLESPACES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TABLES for SYS.DBA_TABLES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TS_QUOTAS for SYS.DBA_TS_QUOTAS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_USERS for SYS.DBA_USERS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_VIEWS for SYS.DBA_VIEWS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_COL_PRIVS for SYS.DBA_COL_PRIVS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_TRIGGERS for SYS.DBA_TRIGGERS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_ROLE_PRIVS for SYS.DBA_ROLE_PRIVS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SYS_PRIVS for SYS.DBA_SYS_PRIVS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_CONSTRAINTS for SYS.DBA_CONSTRAINTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_CONS_COLUMNS for SYS.DBA_CONS_COLUMNS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object
create or replace synonym DBA_OBJ_AUDIT_OPTS for SYS.DBA_OBJ_AUDIT_OPTS
*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_STMT_AUDIT_OPTS for SYS.DBA_STMT_AUDIT_OPTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_PRIV_AUDIT_OPTS for SYS.DBA_PRIV_AUDIT_OPTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_AUDIT_TRAIL for SYS.DBA_AUDIT_TRAIL


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_AUDIT_SESSION for SYS.DBA_AUDIT_SESSION


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_AUDIT_STATEMENT for SYS.DBA_AUDIT_STATEMENT


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_AUDIT_OBJECT for SYS.DBA_AUDIT_OBJECT


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_AUDIT_EXISTS for SYS.DBA_AUDIT_EXISTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_2PC_PENDING for SYS.DBA_2PC_PENDING


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_2PC_NEIGHBORS for SYS.DBA_2PC_NEIGHBORS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_DEPENDENCIES for SYS.DBA_DEPENDENCIES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_ERRORS for SYS.DBA_ERRORS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_OBJECT_SIZE for SYS.DBA_OBJECT_SIZE


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SOURCE for SYS.DBA_SOURCE


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_PROFILES for SYS.DBA_PROFILES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_ROLES for SYS.DBA_ROLES


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SNAPSHOTS for SYS.DBA_SNAPSHOTS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

create or replace synonym DBA_SNAPSHOT_LOGS for SYS.DBA_SNAPSHOT_LOGS


*
ERROR at line 1:
ORA-01471: cannot create a synonym with same name as object

SQL> desc DBA_SNAPSHOT_LOGS


Name Null? Type
----------------------------------------- -------- ----------------------------
LOG_OWNER VARCHAR2(30)
MASTER VARCHAR2(30)
LOG_TABLE VARCHAR2(30)
LOG_TRIGGER VARCHAR2(30)
ROWIDS VARCHAR2(3)
PRIMARY_KEY VARCHAR2(3)
OBJECT_ID VARCHAR2(3)
FILTER_COLUMNS VARCHAR2(3)
SEQUENCE VARCHAR2(3)
INCLUDE_NEW_VALUES VARCHAR2(3)
CURRENT_SNAPSHOTS DATE
SNAPSHOT_ID NUMBER(38)

SQL> desc DBA_SNAPSHOTS


Name Null? Type
----------------------------------------- -------- ----------------------------
OWNER NOT NULL VARCHAR2(30)
NAME NOT NULL VARCHAR2(30)
TABLE_NAME NOT NULL VARCHAR2(30)
MASTER_VIEW VARCHAR2(30)
MASTER_OWNER VARCHAR2(30)
MASTER VARCHAR2(30)
MASTER_LINK VARCHAR2(128)
CAN_USE_LOG VARCHAR2(3)
UPDATABLE VARCHAR2(3)
REFRESH_METHOD VARCHAR2(11)
LAST_REFRESH DATE
ERROR NUMBER
FR_OPERATIONS VARCHAR2(10)
CR_OPERATIONS VARCHAR2(10)
TYPE VARCHAR2(8)
NEXT VARCHAR2(200)
START_WITH DATE
REFRESH_GROUP NUMBER
UPDATE_TRIG VARCHAR2(30)
UPDATE_LOG VARCHAR2(30)
QUERY LONG
MASTER_ROLLBACK_SEG VARCHAR2(30)
STATUS VARCHAR2(7)
REFRESH_MODE VARCHAR2(8)
PREBUILT VARCHAR2(3)

SQL> show user


USER is "SYS"
SQL> @$ORACLE_HOME/rdbms/admin/dbmspool.sql

Package created.

Grant succeeded.

View created.

Package body created.


SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
% pwd
/oracle/MRSQ
% cd ..
% more ./dbpass
./dbpass: A file or directory in the path name does not exist.
% more .dbpass
###PRODUCTION SYSTEMS Should use different password
###
TP1:system:rin#33ger
PHUB:system:rin#33ger
PINF:system:rin#33ger
MWP:system:rin#33ger
MRSP:system:rin#33ger
MART:system:rin#33ger
###
###Non-PROD SYSTEMS
###
TD1:system:dash#40er
TQ1:system:dash#40er
TQ2:system:dash#40er
TS1:system:dash#40er
TT3:system:dash#40er
MART2:system:dash#40er
QHUB:system:dash#40er
QINF:system:dash#40er
DHUB:system:dash#40er
DINF:system:dash#40er
MRSD:system:dash#40er
MRSQ:system:dash#40er
RCAT:rman8018e:run#77ner
RCAT:rman8013e:run#77ner
RCAT:rmanlpar1:run#77ner
RCAT:rman:run#77ner
% cd $ORACLE_HOME/rdbms/admin
% pwd
/oracle/RS1/102_64/rdbms/admin
% sqlplus /nolog

SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 24 20:18:46 2010

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

SQL> connect sys/dash#40er


ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER

SQL> exit
% sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 24 20:19:20 2010


Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> start spcreate.sql

Choose the PERFSTAT user's password


-----------------------------------
Not specifying a password will result in the installation FAILING

Enter value for perfstat_password: perfstat


perfstat

Choose the Default tablespace for the PERFSTAT user


---------------------------------------------------
Below is the list of online tablespaces in this database which can
store user data. Specifying the SYSTEM tablespace for the user's
default tablespace will result in the installation FAILING, as
using SYSTEM for performance data is not supported.

Choose the PERFSTAT users's default tablespace. This is the tablespace


in which the STATSPACK tables and indexes will be created.

TABLESPACE_NAME CONTENTS STATSPACK DEFAULT TABLESPACE


------------------------------ --------- ----------------------------
INDX PERMANENT
MERAK_DATA PERMANENT
MERAK_INDEXES PERMANENT
MERAK_MICRO_DATA PERMANENT
MERAK_MICRO_INDEXES PERMANENT
PERFSTAT PERMANENT
SYSAUX PERMANENT *
TOOLS PERMANENT
USERS PERMANENT

Pressing <return> will result in STATSPACK's recommended default


tablespace (identified by *) being used.

Enter value for default_tablespace: perfstat

Using tablespace PERFSTAT as PERFSTAT default tablespace.

Choose the Temporary tablespace for the PERFSTAT user


-----------------------------------------------------
Below is the list of online tablespaces in this database which can
store temporary data (e.g. for sort workareas). Specifying the SYSTEM
tablespace for the user's temporary tablespace will result in the
installation FAILING, as using SYSTEM for workareas is not supported.

Choose the PERFSTAT user's Temporary tablespace.


TABLESPACE_NAME CONTENTS DB DEFAULT TEMP TABLESPACE
------------------------------ --------- --------------------------
TEMP TEMPORARY *

Pressing <return> will result in the database's default Temporary


tablespace (identified by *) being used.

Enter value for temporary_tablespace: temp

Using tablespace temp as PERFSTAT temporary tablespace.

... Creating PERFSTAT user

... Installing required packages

... Creating views

... Granting privileges

NOTE:
SPCUSR complete. Please check spcusr.lis for any errors.

SQL>
SQL> --
SQL> -- Build the tables and synonyms
SQL> connect perfstat/&&perfstat_password
Connected.
SQL> @@spctab
SQL> Rem
SQL> Rem $Header: spctab.sql 31-may-2005.14:05:43 cdgreen Exp $
SQL> Rem
SQL> Rem spctab.sql
SQL> Rem
SQL> Rem Copyright (c) 1999, 2005, Oracle. All rights reserved.
SQL> Rem
SQL> Rem NAME
SQL> Rem spctab.sql
SQL> Rem
SQL> Rem DESCRIPTION
SQL> Rem SQL*PLUS command file to create tables to hold
SQL> Rem start and end "snapshot" statistical information
SQL> Rem
SQL> Rem NOTES
SQL> Rem Should be run as STATSPACK user, PERFSTAT
SQL> Rem
SQL> Rem MODIFIED (MM/DD/YY)
SQL> Rem cdgreen 05/24/05 - 4246955
SQL> Rem cdgreen 04/18/05 - 4228432
SQL> Rem cdgreen 03/08/05 - 10gR2 misc
SQL> Rem vbarrier 02/18/05 - 4081984
SQL> Rem cdgreen 10/29/04 - 10gR2_sqlstats
SQL> Rem cdgreen 07/16/04 - 10gR2
SQL> Rem cdialeri 03/25/04 - 3516921
SQL> Rem vbarrier 02/12/04 - 3412853
SQL> Rem cdialeri 12/04/03 - 3290482
SQL> Rem cdialeri 11/05/03 - 3202706
SQL> Rem cdialeri 10/14/03 - 10g - streams - rvenkate
SQL> Rem cdialeri 08/05/03 - 10g F3
SQL> Rem cdialeri 02/27/03 - 10g F2: baseline, purge
SQL> Rem vbarrier 02/25/03 - 10g RAC
SQL> Rem cdialeri 11/15/02 - 10g F1
SQL> Rem cdialeri 09/27/02 - sleep4
SQL> Rem vbarrier 03/20/02 - 2143634
SQL> Rem vbarrier 03/05/02 - Segment Statistics
SQL> Rem cdialeri 02/07/02 - 2218573
SQL> Rem cdialeri 01/30/02 - 2184717
SQL> Rem cdialeri 01/11/02 - 9.2 - features 2
SQL> Rem cdialeri 11/30/01 - 9.2 - features 1
SQL> Rem cdialeri 04/22/01 - Undostat changes
SQL> Rem cdialeri 03/02/01 - 9.0
SQL> Rem cdialeri 09/12/00 - sp_1404195
SQL> Rem cdialeri 04/07/00 - 1261813
SQL> Rem cdialeri 03/20/00 - Support for purge
SQL> Rem cdialeri 02/16/00 - 1191805
SQL> Rem cdialeri 01/26/00 - 1169401
SQL> Rem cdialeri 11/01/99 - Enhance, 1059172
SQL> Rem cmlim 07/17/97 - Added STATS$SQLAREA to store top sql stmts
SQL> Rem gwood 10/16/95 - Version to run as sys without using many views
SQL> Rem cellis.uk 11/15/89 - Created
SQL> Rem
SQL>
SQL> set showmode off echo off;

If this script is automatically called from spcreate (which is


the supported method), all STATSPACK segments will be created in
the PERFSTAT user's default tablespace.

Using perfstat tablespace to store Statspack objects

... Creating STATS$SNAPSHOT_ID Sequence

Sequence created.

Synonym created.

... Creating STATS$... tables

Table created.

Synonym created.

Table created.

1 row created.
1 row created.

1 row created.

1 row created.

1 row created.

Commit complete.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.
Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.
Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.
Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Index created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.
Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.
Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.
Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.
Synonym created.

Table created.

Synonym created.

Table created.

Synonym created.

Table created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.
1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.
1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.
1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.
1 row created.

Commit complete.

Synonym created.

Synonym created.

NOTE:
SPCTAB complete. Please check spctab.lis for any errors.

SQL> -- Create the statistics Package


SQL> @@spcpkg
SQL> Rem
SQL> Rem $Header: spcpkg.sql 31-may-2005.14:07:53 cdgreen Exp $
SQL> Rem
SQL> Rem spcpkg.sql
SQL> Rem
SQL> Rem Copyright (c) 1999, 2005, Oracle. All rights reserved.
SQL> Rem
SQL> Rem NAME
SQL> Rem spcpkg.sql
SQL> Rem
SQL> Rem DESCRIPTION
SQL> Rem SQL*PLUS command file to create statistics package
SQL> Rem
SQL> Rem NOTES
SQL> Rem Must be run as the STATSPACK owner, PERFSTAT
SQL> Rem
SQL> Rem MODIFIED (MM/DD/YY)
SQL> Rem cdgreen 05/24/05 - 4246955
SQL> Rem cdgreen 04/18/05 - 4228432
SQL> Rem cdgreen 02/28/05 - 10gR2 misc
SQL> Rem vbarrier 02/18/05 - 4081984
SQL> Rem cdgreen 01/25/05 - 4143812
SQL> Rem cdgreen 10/29/04 - 10gR2_sqlstats
SQL> Rem cdgreen 10/25/04 - 3970898
SQL> Rem cdgreen 07/16/04 - 10g R2
SQL> Rem vbarrier 03/18/04 - 3517841
SQL> Rem vbarrier 02/12/04 - 3412853
SQL> Rem cdialeri 12/04/03 - 3290482
SQL> Rem cdialeri 11/05/03 - 3202706
SQL> Rem cdialeri 10/14/03 - 10g - streams - rvenkate
SQL> Rem cdialeri 08/05/03 - 10g F3
SQL> Rem cdialeri 07/31/03 - 2804307
SQL> Rem vbarrier 02/25/03 - 10g RAC
SQL> Rem cdialeri 01/28/03 - 10g F2: baseline, purge
SQL> Rem cdialeri 11/15/02 - 10g F1
SQL> Rem cdialeri 10/29/02 - 2648471
SQL> Rem cdialeri 09/11/02 - 1995145
SQL> Rem vbarrier 04/18/02 - 2271895
SQL> Rem vbarrier 03/20/02 - 2184504
SQL> Rem spommere 03/19/02 - 2274095
SQL> Rem vbarrier 03/05/02 - Segment Statistics
SQL> Rem spommere 02/14/02 - cleanup RAC stats that are no longer needed
SQL> Rem spommere 02/08/02 - 2212357
SQL> Rem cdialeri 02/07/02 - 2218573
SQL> Rem cdialeri 01/30/02 - 2184717
SQL> Rem cdialeri 01/09/02 - 9.2 - features 2
SQL> Rem cdialeri 11/30/01 - 9.2 - features 1
SQL> Rem hbergh 08/23/01 - 1940915: use substrb on sql_text
SQL> Rem cdialeri 04/26/01 - 9.0
SQL> Rem cdialeri 09/12/00 - sp_1404195
SQL> Rem cdialeri 04/07/00 - 1261813
SQL> Rem cdialeri 03/28/00 - sp_purge
SQL> Rem cdialeri 02/16/00 - 1191805
SQL> Rem cdialeri 11/01/99 - Enhance, 1059172
SQL> Rem cgervasi 06/16/98 - Remove references to wrqs
SQL> Rem cmlim 07/30/97 - Modified system events
SQL> Rem gwood.uk 02/30/94 - Modified
SQL> Rem densor.uk 03/31/93 - Modified
SQL> Rem cellis.uk 11/15/89 - Created
SQL> Rem
SQL>
SQL> set echo off;
Creating Package STATSPACK...

Package created.

No errors.
Creating Package Body STATSPACK...

Package body created.

No errors.

NOTE:
SPCPKG complete. Please check spcpkg.lis for any errors.

SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
% ls -lrt spcpkg.lis
-rw-r--r-- 1 oramrsq dba 195 Aug 24 20:21 spcpkg.lis
% view spcpkg.lis
"spcpkg.lis" [Read only] 14 lines, 195 characters
Creating Package STATSPACK...

Package created.

No errors.
Creating Package Body STATSPACK...

Package body created.

No errors.
NOTE:
SPCPKG complete. Please check spcpkg.lis for any errors.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
:q!
% sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 24 20:22:33 2010

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT * FROM stats$level_description ORDER BY snap_level;

SNAP_LEVEL
----------
DESCRIPTION
--------------------------------------------------------------------------------
0
This level captures general statistics, including rollback segment, row cache, S
GA, system events, background events, session events, system statistics, wait st
atistics, lock statistics, and Latch information

5
This level includes capturing high resource usage SQL Statements, along with all
data captured by lower levels
SNAP_LEVEL
----------
DESCRIPTION
--------------------------------------------------------------------------------
6
This level includes capturing SQL plan and SQL plan usage information for high r
esource usage SQL Statements, along with all data captured by lower levels

7
This level captures segment level statistics, including logical and physical rea
ds, row lock, itl and buffer busy waits, along with all data captured by lower l
evels

SNAP_LEVEL
----------
DESCRIPTION
--------------------------------------------------------------------------------
10
This level includes capturing Child Latch statistics, along with all data captur
ed by lower levels

SQL>

S-ar putea să vă placă și