The 2 DML Queries that get fired:
1).
begin
begin
select user, table_name into :table_owner, :table_name
from sys.user_tables where table_name = :name;
exception when no_data_found then
begin
select user, view_name into :table_owner, :table_name
from sys.user_views where view_name = :name;
exception when no_data_found then
begin
select table_owner, table_name into :table_owner, :table_name
from sys.user_synonyms where synonym_name = :name;
exception when no_data_found then
begin
select table_owner, table_name into :table_owner, :table_name
from sys.all_synonyms where owner = 'PUBLIC' and synonym_name = :name;
exception when no_data_found then
:table_owner := null; :table_name := null;
end;
end;
end;
end;
end;
2).
select constraint_name, column_name from sys.all_cons_columns
where owner =
wner and table_name = :table_name
and constraint_name not like 'SYS_C%'
order by constraint_name, position