Re-enabling Change Data Capture Fails with ORA-31514 on APPLY Transaction Failure. (Doc ID 1385420.1)

Last updated on MAY 07, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.2 [Release 10.1 to 11.2]
Information in this document applies to any platform.

Symptoms

Re-enabling change data capture fails with ORA-31514 on APPLY transaction failure

BEGIN
2 DBMS_CDC_PUBLISH.ALTER_CHANGE_SET(
3 change_set_name => 'CHANGE1',
4 enable_capture => 'y');
5 END;
6 /
BEGIN
*
ERROR at line 1:
ORA-31514: change set CHANGE1 disabled due to capture error
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 739


- RECOVER_AFTER_ERROR set to Y throws actual error reported in DBA_APPLY_ERROR.

BEGIN
2 DBMS_CDC_PUBLISH.ALTER_CHANGE_SET(
3 change_set_name => 'CHANGE1',
4 recover_after_error => 'y',
5 enable_capture => 'y');
6 END;
7 /
BEGIN
*
ERROR at line 1:
ORA-01438
ORA-06512: at "SYS.DBMS_APPLY_ERROR", line 153
ORA-06512: at "SYS.DBMS_APPLY_ERROR", line 312
ORA-06512: at "SYS.DBMS_APPLY_ADM", line 499
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 739
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 949
ORA-06512: at line 2

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms