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

Home -> Community -> Usenet -> c.d.o.tools -> Re: creating public synonyms for a set of tables (newbie)

Re: creating public synonyms for a set of tables (newbie)

From: Reiner Neumann <reiner.neumann_at_messe.de>
Date: 2000/04/17
Message-ID: <8detk0$9td$1@mail.messe.de>#1/1

spool script.sql

select 'create public synonym ', table_name, ' for owner||'.'||table_name from user_tables;

(or from all_tables where owner = 'schema') spool off

...generates the file you have to use.
Hth, Reiner

"Carlos Lacasa" <clacasa_at_sestra.es> schrieb im Newsbeitrag news:8deohq$5k1$1_at_lola.ctv.es...
> Hi all,
>
> I want to generate public synonyms for a set of tables under a schema,
 and
> I need help to build an script to do so in one time.
>
> In pseudo-code, it would be something like:
>
> for each table in schema.Tables do
> {
> create public synonym table for schema.table;
> }
>
> Thanks in advance,
>
> Carlos Lacasa.
>
>
Received on Mon Apr 17 2000 - 00:00:00 CDT

Original text of this message

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