Identity Manager ORA-02291 Integrity Constraint Violation
search cancel

Identity Manager ORA-02291 Integrity Constraint Violation

book

Article ID: 202480

calendar_today

Updated On:

Products

CA Identity Governance CA Identity Manager CA Identity Portal CA Identity Suite

Issue/Introduction

Identity Manager may stop processing requests when the underlying Oracle database experiences an ORA-02291 integrity constraint violation. This error occurs because the database tables associated with event tracking have reached capacity, preventing the insertion of new records. This issue is often related to data growth exceeding the configured retention policy or a failure in automated archival processes.

Environment

Identity Manager

Cause

The error is caused by a violation of the FK_EVENT_OBJECT12_5_EVENT12_5 integrity constraint, triggered when the database cannot insert new records because the parent event record could not be created, typically due to the table/tablespace being full or unmanaged data growth.

Resolution

To resolve this issue, investigate the database capacity and implement an appropriate data retention policy:

  1. Check Tablespace Capacity: Verify if the tablespace associated with the Identity Manager schema has sufficient free space.
  2. Review Data Retention Policy: Determine if existing task session, event, and audit logs are being archived according to your organization's retention policy.
  3. Perform Data Archiving:
    • If tables are full, utilize the built-in database stored procedures to move records from active tables (tasksession12_5, object12_5, etc.) to archive tables.
    • Example logic for archival:
      -- Example of archiving by task IDEXEC archiveByTaskId('<task_session_id>');
    • Note: Ensure your DBA approves the archival script before execution in a production environment.
  4. Configure Maintenance: Ensure that the Identity Manager maintenance tasks are scheduled to run regularly to purge or archive old data, preventing table growth from violating integrity constraints.