Question : getting error while configuring statspack for 10g

I upgrade my database to 10g.  My statspack stop working!   I did delete the perstat user all its objects  to I can start clean statspack config.  so I rin @?\RDBMS\ADMIN\SPCREATE.SQL and prompt me with tablespace, password then failed while creating public public synonym  TATS$DATABASE_INSTANCE  becuase already exist!  so I did remove the user and its objects again, and drop the public synonym  STATS$DATABASE_INSTANCE  manually then run the spcreate again, but still giving me the same error.  




... Creating STATS$SNAPSHOT_ID Sequence

Sequence created.


Synonym created.

... Creating STATS$... tables

Table created.

create public synonym  STATS$DATABASE_INSTANCE  for STATS$DATABASE_INSTANCE
                       *
ERROR at line 1:
ORA-00955: name is already used by an existing object

Answer : getting error while configuring statspack for 10g

Ensure the spdrop.sql file is run successfully before running spcreate.sql

1.  Sqlplus username/password
2.  @$ORACLE_HOME/rdbms/admin/spdrop.sql
3.  @$ORACLE_HOME/rdbms/admin/spcreate.sql
Random Solutions  
 
programming4us programming4us