compare user objects not able to show ddl diff on anonymous constraints

GDA

Member
It seems that the tool "compare user objects" is not able to show the DDL difference among tables in presence of "anonymous constraints" (i.e. when the name is not defined by the user but is system generated).

For example :

-- STEP 1 : On the source schema I create a table with anonymous PK-constraint
create table MYTEST_GDA
(
cab NUMBER not null,
sab NUMBER not null,
tab VARCHAR2(20)
)
;
alter table MYTEST_GDA
add primary key (CAB)
;
----------

-- STEP 2: I install the same table also on the target schema by running the above script and then I re-compare.
-- Of course the name of the constraint is not the same on the 2 schemas because it is sys-generated. But the compare-tool correctly assert no difference between source and target as the DDL is really the same => OK till now!

----------

-- STEP 3. I modify the constraint on the source schema by adding another field to the PK
drop constraint SYS_XXXXXX cascade;
alter table MYTEST_GDA
add primary key (CAB, SAB)

---------

-- STEP 4 : Now I re-compare the table between source and target schema => it will always show no diffs ! => * WRONG !!!*
 
Unnamed constraints are indeed not included in the "Compare User Objects" tool. This is on the list of enhancement requests.
 
I ' m new to this forum so I do not know if this issue is something already known to support team or not.

Can someone, please, let me have some comments on this.

Thanks in advance.

By the way The version I'm using is the following:
is PL/SQL Developer
Version 9.0.6.1665
 
Ok,

that will be great !

"Compare user objects" is already a powerful and very useful tool. I think that any enhancement to overcome current limits will be appreciated by all.

Thanks for your answer.
 
Back
Top