Statspack ORA-00001 On STATS$SQL_SUMMARY_PK And/Or Slow Insert Into STATS$SQL_PLAN
(Doc ID 2460883.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Standard Edition - Version 12.1.0.1 and later Information in this document applies to any platform.
Symptoms
Statspack snap collection fails with ORA-00001 :
BEGIN statspack.snap(i_snap_level => 7); END;
* ERROR at line 1: ORA-00001: unique constraint (PERFSTAT.STATS$SQL_SUMMARY_PK) violated ORA-06512: at "PERFSTAT.STATSPACK", line 4380 ORA-06512: at "PERFSTAT.STATSPACK", line 5728 ORA-06512: at "PERFSTAT.STATSPACK", line 105
Statspack may also be slow while performing an INSERT into STATS$SQL_PLAN.
Changes
Normal installation of Statspack
Cause
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!