« Oracle: read the entries from alert log | Home | Oracle: long running queries »

Oracle: PERFSTAT.STATS$MUTEX_SLEEP_PK violated

There is a known problem with Oracle statspack report in 10g, which could cost You at least one lost statspack snapshot.

The following message is written into the alert log:


ORA-00001: unique constraint (PERFSTAT.STATS$MUTEX_SLEEP_PK) violated
ORA-06512: at "PERFSTAT.STATSPACK", line 5264
ORA-06512: at "PERFSTAT.STATSPACK", line 104
ORA-06512: at line 1

There is a Note 382993.1 in Metalink, which describes this bug.

The workaround is simple:

ALTER TABLE perfstat.stats$mutex_sleep disable constraint STATS$MUTEX_SLEEP_PK;

CREATE INDEX perfstat.STATS$MUTEX_SLEEP_PK ON
STATS$MUTEX_SLEEP(SNAP_ID,DBID,INSTANCE_NUMBER,MUTEX_TYPE,LOCATION);

... and check the Metalink for the news, if the bug was fixed.

Topics: Oracle, error, perfstat, statistics | Submitter: checkthis

Comments

You must be logged in to post a comment.

Keep on coding