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

Home -> Community -> Usenet -> c.d.o.misc -> Re: how to export public synonyms from one to another oracle database

Re: how to export public synonyms from one to another oracle database

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Mon, 21 Feb 2005 08:11:28 -0500
Message-ID: <zY6dnaVvbtKVQ4TfRVn-uA@comcast.com>

"Tom" <mail_at_yahoo.com> wrote in message news:cvcle4$skh$1_at_ls219.htnet.hr...
> And script looks like???
> can you please write some example?
>
> "Frank van Bortel" <fvanbortel_at_netscape.net> wrote in message
> news:cvcag5$iit$2_at_news3.zwoll1.ov.home.nl...
>> Don't - create a script instead.
>
>

SQL*Plus scripts, that is -- or perhaps, TOAD.

Are you familiar with the data dictionary? The idea is to write a SQL statement that select data from the data dictionary to generate 'CREATE PUBLIC SYNONYM' SQL statements, save the generated statements to a file (the script file), and then execute the script file in the new environment.

You can automate this to a degree with the SQL*Plus SPOOL command and other formatting commands, are just cut and paste the results of your query into a file.

Have you used SQL*Plus or TOAD?

++ mcs Received on Mon Feb 21 2005 - 07:11:28 CST

Original text of this message

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