Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: how can I get public synonym scripts without referencing dba_synonyms ?
You could try something like this
SET PAGESIZE 0
SET FEED OFF
SPO CRE_SYNS.SQL
select 'create public synonym '|| synonym_name ||' for '
||table_owner||'.'||table_name||';' from dba_synonyms
where owner = 'PUBLIC' and table_owner not in ('SYS','SYSTEM');SPO OFF @CRE_SYNS SET FEED ON
jdlee <jdlee_at_trigem.co.kr> wrote:
>as you know , we can get "create table, index, grants related scrits "
>using exp tool .
>
> for example ' exp scott/tiger indexes=y grants=y rows=n show=y '
>
>but how can I get public synonym scripts ?
>I want to get complete public synonym script
>
>not referencing to dba_synonyms
>without editing efforts.
>
> anyone knows easy method ?
>
>
Received on Sat Apr 11 1998 - 23:25:50 CDT