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

Home -> Community -> Usenet -> c.d.o.server -> Re: SYNONYMS and view ALL_SYNONYMS

Re: SYNONYMS and view ALL_SYNONYMS

From: Martijn Tonies <m.tonies_at_upscene-removethis.nospam.com>
Date: Thu, 30 Dec 2004 16:04:22 +0100
Message-ID: <10t865i19pg9saf@corp.supernews.com>


Hello,

> You woul dneed to join the query to dba_objects or user_objects to find
> out the object_type.
>
> SQL> l
> 1 select s.table_name,s.table_owner,o.object_type,s.synonym_name
> 2 from dba_synonyms s,dba_objects o
> 3 where o.owner=s.table_owner
> 4 and o.object_name=s.table_name
> 5* and s.owner='PUBLIC'

Yeah, that's pretty much what I came up with as well... Thanks for the confirmation.

-- 
With regards,

Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server
Upscene Productions
http://www.upscene.com
Received on Thu Dec 30 2004 - 09:04:22 CST

Original text of this message

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