This content has been marked as final. Show 4 replies
based on this issue,is there any simple query to findout the missing records in parent table,i don't have access for child_table,parent_table views.
FYI- am using traditional imp/exp command to accomplish data import and export activities,i tried with the following query,but not getting any output
select 'select '||cc.column_name-
||' from '||c.owner||'.'||c.table_name-
||' a where not exists (select ''x'' from '-
||' where '||rc.column_name||' = a.'||cc.column_name||')'
from dba_constraints c,
where c.constraint_type = 'R'
and c.owner not in ('SYS','SYSTEM')
and c.r_owner = r.owner
and c.owner = cc.owner
and r.owner = rc.owner
and c.constraint_name = cc.constraint_name
and r.constraint_name = rc.constraint_name
and c.r_constraint_name = r.constraint_name
and cc.position = rc.position
and c.owner = '&table_owner'
and c.table_name = '&table_name'
and c.constraint_name = '&constraint_name'
can anyone suggest to fix it using some other option.