Statspack can be installed by executing the following script, it will prompt for password for user PERFSTAT, the tablespace for PERFSTAT and temporary tablespace for PERFSTAT.
-- script to install statspack, the script writes output to spckpg.lis and after the script you are logged in as user PERFSTAT
@?/rdbms/admin/spcreate.sql
…
NOTE:
SPCPKG complete. Please check spcpkg.lis for any errors.
SQL> show user;
USER is “PERFSTAT”
-- script to install statspack, login as sysdba
@?/rdbms/admin/spdrop.sql
You must log in to post a comment.