Hi All,
I am using Oracle database version 11.2.0.3.0 Enterprise Edition. This is new environment setup hosted on Linux. I have noticed there is no snapshot generated in this database. I have verified DBA_HIST_WR_control and see the snap_interval which is set on default only ( 1 hr). Also DB parameters like statistics_level=typical, times_statistics set to true and control_management_pack_access= DIAGNOSTIC+TUNING. I tried to generate snapshot manually but failed with below error. Parent key not found, how this possible? there is no change done after configure this environment. Can any one help me how to fix this ?
SQL> exec DBMS_WORKLOAD_REPOSITORY.create_snapshot();
BEGIN DBMS_WORKLOAD_REPOSITORY.create_snapshot(); END;
*
ERROR at line 1:
ORA-13509: error encountered during updates to a AWR table
ORA-02291: integrity constraint (ORA-02291: integrity constraint
(SYS.WRM$_SNAPSHOT_FK) violated - parent key not found
.) violated - parent key not found
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 99
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 122
ORA-06512: at line 1
Thanks,
Suchi