Using VS 2022 and ODT 2019. Created new Project of type “Oracle Database Project Version2”. Did “Import Schema”. Then, did Oracle Schema Compare between the Project (source) and the source Schema (Target).
- What is the meaning of “Not Compared”? Are there certain things (like use of synonyms, db links, XMLTABLE()) that cause this? If so do you have a complete list?
- Why would it say “Only in Target” for a stored procedure, when it exists in both places? Again, are the certain SQL constructs that might cause this?
Apparently XMLTABLE() is at least one problem - for example, here is a stored procedure that compares as "Identical":
CREATE OR REPLACE PROCEDURE "TEST_SCHEMA"."TEST_PROC"
as
myval varchar2 (100);
BEGIN
select min (val) into myval
from
(select cast (X.COLUMN_VALUE as varchar2 (100)) as val
from (select 'A' as column_value from dual
union all
select 'B' from dual
) X
)
;
dbms_output.put_line (myval);
end;
And here is one that compares as “Only in Target”.
CREATE OR REPLACE PROCEDURE "TEST_SCHEMA"."TEST_PROC2"
as
myval varchar2 (100);
BEGIN
select min (val) into myval
from
(select cast (X.COLUMN_VALUE as varchar2 (100)) as val
from xmltable (('"A","B"')) X
)
;
dbms_output.put_line (myval);
end;