Ora-1 ''Unique Constraint (System.Logmnr_session_uk1) Violated'' During Streams Config (Doc ID 413774.1)

Last updated on MAY 12, 2017

Applies to:

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

Symptoms

We have two parallel streams in production. We have dropped the two streams and
trying to recreate them.

When trying to recreated capture processes using  add_ table_rules it failed with  Ora-1


BEGIN
DBMS_STREAMS_ADM.ADD_TABLE_RULES(
table_name => 'STAB002.ACCT_FEE',
streams_type => 'CAPTURE',
streams_name => 'ASPB_STG_CAPTURE',
queue_name => 'STRMADMIN.ASPB_STG_CAPTURE_QUEUE',
include_dml => TRUE,
include_ddl => FALSE,
source_database => NULL,
inclusion_rule => true);
END;
/ 2 3 4 5 6 7 8 9 10 11 12
BEGIN
*
ERROR at line 1:
ORA-00001: unique constraint (SYSTEM.LOGMNR_SESSION_UK1) violated
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 369
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 309
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