How to setup/install StatsPack

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

SPCPKG complete. Please check spcpkg.lis for any errors.
SQL> show user;

-- script to install statspack, login as sysdba