Recreate Comparison With Same Name using DBMS_COMPARISON Fails After Dropping User (Doc ID 1382584.1)

Last updated on MAY 07, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Information in this document applies to any platform.

Symptoms

Recreate a comparison with same name using DBMS_COMPARISON fails with the error ORA-23627 even after dropping user.


For e.g.,
SQL> BEGIN
2 DBMS_COMPARISON.CREATE_COMPARISON
( comparison_name => 'COMPARE_ORA_TST'
3 4 , schema_name => 'test'
, object_name => 'TEST1'
5 6 , index_schema_name => 'test'
7 , index_name => 'tst1_pk'
8 , dblink_name => null
-- , column_list => 'kol1,kol2'
9 10 , remote_schema_name => 'test'
11 , remote_object_name => 'TEST2'
);
12 13 END;
14 /
BEGIN
*
ERROR at line 1:
ORA-23627: Comparison object "TEST"."COMPARE_ORA_TST" already existed.
ORA-06512: at "SYS.DBMS_COMPARISON", line 4220
ORA-06512: at "SYS.DBMS_COMPARISON", line 420
ORA-06512: at line 2

Changes

User is dropped as SYSTEM user.


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