If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

You may be trying to execute snapshot.snap procedure other than prefstat user/schema. it should be run only in prefstat schema. when you install statspack it creates prefstat user and grants necessary privileges to this user

Cause: The table or view entered does not exist, a synonym that is not allowed here was used, or a view was referenced where a table is required. Existing user tables and views can be listed by querying the data dictionary. Certain privileges may be required to access the table. If an application returned this message, the table the application tried to access does not exist in the database, or the application does not have access to it.

Action: Check each of the following:

the spelling of the table or view name.

that a view is not specified where a table is required.

that an existing table or view name exists.

Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.

Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted.

obviously you are missing all these grants, i.e you have not created perfstat properly

Code:

pcusr.sql:grant create session to PERFSTAT;
spcusr.sql:grant alter session to PERFSTAT;
spcusr.sql:grant create table to PERFSTAT;
spcusr.sql:grant create procedure to PERFSTAT;
spcusr.sql:grant create sequence to PERFSTAT;
spcusr.sql:grant create public synonym to PERFSTAT;
spcusr.sql:grant drop public synonym to PERFSTAT;
spcusr.sql:grant select on STATS$X_$KCBFWAIT to PERFSTAT;
spcusr.sql:grant select on STATS$X_$KSPPSV to PERFSTAT;
spcusr.sql:grant select on STATS$X_$KSPPI to PERFSTAT;
spcusr.sql:grant select on STATS$V_$FILESTATXS to PERFSTAT;
spcusr.sql:grant select on STATS$V_$TEMPSTATXS to PERFSTAT;
spcusr.sql:grant select on STATS$V_$SQLXS to PERFSTAT;
spcusr.sql:grant SELECT_CATALOG_ROLE to PERFSTAT;
spcusr.sql:grant select on V_$PARAMETER to PERFSTAT;
spcusr.sql:grant select on V_$SYSTEM_PARAMETER to PERFSTAT;
spcusr.sql:grant select on V_$DATABASE to PERFSTAT;
spcusr.sql:grant select on V_$INSTANCE to PERFSTAT;
spcusr.sql:grant select on V_$LIBRARYCACHE to PERFSTAT;
spcusr.sql:grant select on V_$LATCH to PERFSTAT;
spcusr.sql:grant select on V_$LATCH_MISSES to PERFSTAT;
spcusr.sql:grant select on V_$LATCH_CHILDREN to PERFSTAT;
spcusr.sql:grant select on V_$LATCH_PARENT to PERFSTAT;
spcusr.sql:grant select on V_$ROLLSTAT to PERFSTAT;
spcusr.sql:grant select on V_$ROWCACHE to PERFSTAT;
spcusr.sql:grant select on V_$SGA to PERFSTAT;
spcusr.sql:grant select on V_$BUFFER_POOL to PERFSTAT;
spcusr.sql:grant select on V_$SGASTAT to PERFSTAT;
spcusr.sql:grant select on V_$SYSTEM_EVENT to PERFSTAT;
spcusr.sql:grant select on V_$SESSION to PERFSTAT;
spcusr.sql:grant select on V_$SESSION_EVENT to PERFSTAT;
spcusr.sql:grant select on V_$SYSSTAT to PERFSTAT;
spcusr.sql:grant select on V_$WAITSTAT to PERFSTAT;
spcusr.sql:grant select on V_$ENQUEUE_STAT to PERFSTAT;
spcusr.sql:grant select on V_$SQLAREA to PERFSTAT;
spcusr.sql:grant select on V_$SQL to PERFSTAT;
spcusr.sql:grant select on V_$SQLTEXT to PERFSTAT;
spcusr.sql:grant select on V_$SESSTAT to PERFSTAT;
spcusr.sql:grant select on V_$BUFFER_POOL_STATISTICS to PERFSTAT;
spcusr.sql:grant select on V_$RESOURCE_LIMIT to PERFSTAT;
spcusr.sql:grant select on V_$DLM_MISC to PERFSTAT;
spcusr.sql:grant select on V_$UNDOSTAT to PERFSTAT;
spcusr.sql:grant select on V_$SQL_PLAN to PERFSTAT;
spcusr.sql:grant select on V_$DB_CACHE_ADVICE to PERFSTAT;
spcusr.sql:grant select on V_$PGASTAT to PERFSTAT;
spcusr.sql:grant select on V_$INSTANCE_RECOVERY to PERFSTAT;
spcusr.sql:grant select on V_$SHARED_POOL_ADVICE to PERFSTAT;
spcusr.sql:grant select on V_$SQL_WORKAREA_HISTOGRAM to PERFSTAT;
spcusr.sql:grant select on V_$PGA_TARGET_ADVICE to PERFSTAT;
spcusr.sql:grant select on V_$SEGSTAT to PERFSTAT;
spcusr.sql:grant select on V_$SEGMENT_STATISTICS to PERFSTAT;
spcusr.sql:grant select on V_$SEGSTAT_NAME to PERFSTAT;
spcusr.sql:grant execute on DBMS_SHARED_POOL to PERFSTAT;
spcusr.sql:grant execute on DBMS_JOB to PERFSTAT;

I've also found that if you want to reinstall statspack you need to comment out whenever sqlerror exit; out of spcusr.sql (called by spcreate.sql) because the drop script doesnt drop the x$ views and synonyms so falls over when you try and re-create them