'ORA-00001: unique constraint (SYS.WRH$_OPTIMIZER_ENV_PK)' Violated When AWR Snapshots Creation
Last updated on JULY 05, 2017
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 and later
Information in this document applies to any platform.
ORA-00001: unique constraint (SYS.WRH$_OPTIMIZER_ENV_PK) violated error happpend,
is occurring at the moment of AWR snapshots creation.
・AWR Snapshots creation is sucessful.
・From DBA_HIST_SNAP_ERROR/WRM$_SNAP_ERROR shows ERROR_NUMBER is 1:
After applying DATABASE BUNDLE PATCH: 22.214.171.124.170117 (24732088)
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms