Object Views Not Compared Correctly
jonnoct
Posts: 5
Morning,
Schema Compare for Oracle 3.1.0.137 isn't comparing object views correctly.
http://docs.oracle.com/cd/B19306_01/app ... #sthref663
For example here's what DBMS_METADATA will produce...
Schema Compare for Oracle will produce something invalid like...
Any views in USER_VIEWS with a non-null VIEW_TYPE column would be impacted. Example:
Thanks,
Jon
Schema Compare for Oracle 3.1.0.137 isn't comparing object views correctly.
http://docs.oracle.com/cd/B19306_01/app ... #sthref663
For example here's what DBMS_METADATA will produce...
CREATE OR REPLACE FORCE VIEW "SCHEMA1234"."VIEW1234_V" OF "SCHEMA1234"."MY_OBJECT_TYP" WITH OBJECT IDENTIFIER (ID_NUM,SEQUENCE_NUM) AS select ...
Schema Compare for Oracle will produce something invalid like...
CREATE OR REPLACE FORCE VIEW iron3731.random_eligibility_v (id_num, sequence_num, attribute1, attribute2,sys_nc_rowinfo$,sys_nc_oid$) AS select ...
Any views in USER_VIEWS with a non-null VIEW_TYPE column would be impacted. Example:
select * from user_views where view_type = 'MY_OBJECT_TYP';Other than this so far it's a great tool. Let us know if you need more examples or have questions.
Thanks,
Jon
Comments
Our object type support at the moment is pretty weak and it's something we want to work on as we get good examples from customers and what they need from it.
Project Manager
Red Gate Software Ltd
Support has been very responsive and I have sent in a simpler example. I'll post it here just in case anyone is curious.
Since TYPE_TEXT is not null Schema Compare should be using the OBJECT_VIEW_CLAUSE (https://docs.oracle.com/database/121/SQ ... m#i2122282)
TYPE_TEXT OBJECT_IDENTIFIER_TEXT
hr.department_t id_num