Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Fw: tables with no synonyms

Fw: tables with no synonyms

From: Nigel Thomas <nigel_cl_thomas_at_yahoo.com>
Date: Wed, 7 Feb 2007 12:56:01 -0800 (PST)
Message-ID: <378065.36010.qm@web58702.mail.re1.yahoo.com>


>How can this query to find objects ( owned by User A) that have no >private synonyms (for User B) be improved upon Joe Assuming I've understood the question correctly, you can just take the objects (including program units) that are owned by user A, and subtract (MINUS) the synonyms owned by B that reference those objects in A. select object_name, owner from dba_objects where owner = 'A' minus select table_name,table_owner from dba_synonyms where owner = 'B' / Regards Nigel

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Feb 07 2007 - 14:56:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US