Use these steps to install Statepack
- Execute the command : export Oracle_SID=qdmsprod
- Login into Oracle with the sys user.
- Create a tablespace Statspack with a size of approximately 150-250 Mb. This is used for collecting the database statistics.
SQL>create tablespace statspack datafile ‘<datafile-path>/stats01.ora’ size 250m; - Install Statspack. Execute spdrop.sql if statspack is already installed.
SQL> @<oracle_home>/rdbms/admin/spdrop.sql
Execute spcreate.sql to install statspack
SQL> @<oracle_home>/rdbms/admin/spcreate.sql
Enter the following values for the different items it prompts:
i) Password for the user perfstat – quarkdms
ii) Default Tablespace – statspack
iii) Temporary Tablespace – Any Temporary tablespace of the database
- Connect with the user perfstat:
SQL> conn perfstat/quarkdms
Execute the script spauto.sql to automate the collection of statspack statistics every hour
SQL>@<oracle_home>/rdbms/admin/spauto.sql
Important Note: Please note the Job ID of the job.
Priyanka Bhotika
Comments