Copy from The Oracle (tm) Users
set pages
set feedback off
spool constraint
col parent format a
col child format a
col key format a
select a
b
column_name Key
substr(position
from
user_constraints a
where
nstraint_name = b
and nstraint_name = nstraint_name
order by
spool off
From:http://tw.wingwit.com/Article/program/Oracle/201311/18360.html