select child.owner||'.'||child.table_name||'.'||child.column_name||' must exist in '||
parent.owner||'.'||parent.table_name||'.'||parent.column_name
from
all_cons_columns child
, all_cons_columns parent
, all_constraints c
where c.owner='T2IMGDEV'
and c.constraint_name='EMPR_ID_FK'
and child.owner=c.owner
and child.constraint_name=c.constraint_name
and parent.owner=c.r_owner
and parent.constraint_name=c.r_constraint_name
and child.position=parent.position
/
eg output:
CHILD.OWNER||'.'||CHILD.TABLE_NAME||'.'||CHILD.COLUMN_NAME||'MUSTEXISTIN'||PAREN
--------------------------------------------------------------------------------
T2IMGDEV.IMAGES.EMPR_ID must exist in T2MIFULL3.EMPLOYERS.ID
Search This Blog
Subscribe to:
Post Comments (Atom)
Transportable tablespace refresh
1.check tablespace for the user which need to refresh ------------------------------------------------------------------- SQL> select ...
-
Issue - When recovering database until SCN, recovery failed with error RMAN-03002 and RMAN-06556 using channel ORA_DISK_8 RMAN-00571: ...
-
Solution: a. Rename the data file so that it does not have spaces in it. b. FTP the file to a directory on your server without spaces in t...
-
Issue - Fatal NI connect error 12514, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abc.xyz.com)(PORT=9501))(CONNECT_DATA=(S...
No comments:
Post a Comment