dbTalk Databases Forums  

how to export public synonyms from one to another oracle database

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss how to export public synonyms from one to another oracle database in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom
 
Posts: n/a

Default how to export public synonyms from one to another oracle database - 02-21-2005 , 02:25 AM






I need to export public synonyms from one to another oracle database.

Since public synonyms are logical objects and owner 'PUBLIC' is also logical
a can't export those
owner through exp/imp utility..
example
exp system/manager (AT) pro (DOT) proliant from user = <public>
file=public_synonims.dmp

any idea???



Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: how to export public synonyms from one to another oracle database - 02-21-2005 , 03:45 AM






Tom wrote:
Quote:
I need to export public synonyms from one to another oracle database.

Since public synonyms are logical objects and owner 'PUBLIC' is also logical
a can't export those
owner through exp/imp utility..
example
exp system/manager (AT) pro (DOT) proliant from user = <public
file=public_synonims.dmp

any idea???


Don't - create a script instead.

--
Regards,
Frank van Bortel


Reply With Quote
  #3  
Old   
Tom
 
Posts: n/a

Default Re: how to export public synonyms from one to another oracle database - 02-21-2005 , 06:50 AM



And script looks like???
can you please write some example?

"Frank van Bortel" <fvanbortel (AT) netscape (DOT) net> wrote

Quote:
Don't - create a script instead.



Reply With Quote
  #4  
Old   
GreyBeard
 
Posts: n/a

Default Re: how to export public synonyms from one to another oracle database - 02-21-2005 , 07:09 AM



On Mon, 21 Feb 2005 13:50:17 +0100, Tom wrote:

Quote:
And script looks like???
can you please write some example?
Use the following steps to get an example:

1) start a browser such as Internet Explorer or Firefox
2) in the URL are, enter: http://www.google.com
3) in the text box enter: "oracle script to export public synonyms"
4) in the results page, select the first displayed link

Use the skills to decide when to use the enter key or submit button.

(By the way, the search resulted in about 4,760 results, the first of
which was to gennick.com/extract_synonyms.html)

lol/FGB


Reply With Quote
  #5  
Old   
Mark C. Stock
 
Posts: n/a

Default Re: how to export public synonyms from one to another oracle database - 02-21-2005 , 07:11 AM




"Tom" <mail (AT) yahoo (DOT) com> wrote

Quote:
And script looks like???
can you please write some example?

"Frank van Bortel" <fvanbortel (AT) netscape (DOT) net> wrote in message
news:cvcag5$iit$2 (AT) news3 (DOT) 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




Reply With Quote
  #6  
Old   
Tom
 
Posts: n/a

Default Re: how to export public synonyms from one to another oracle database - 02-22-2005 , 02:55 AM



so funny!!!! thanks anyway!!


"GreyBeard" <Fuzzy.GreyBeard (AT) gmail (DOT) com> wrote

Quote:
On Mon, 21 Feb 2005 13:50:17 +0100, Tom wrote:


And script looks like???
can you please write some example?

Use the following steps to get an example:

1) start a browser such as Internet Explorer or Firefox
2) in the URL are, enter: http://www.google.com
3) in the text box enter: "oracle script to export public synonyms"
4) in the results page, select the first displayed link

Use the skills to decide when to use the enter key or submit button.

(By the way, the search resulted in about 4,760 results, the first of
which was to gennick.com/extract_synonyms.html)

lol/FGB



Reply With Quote
  #7  
Old   
Tom
 
Posts: n/a

Default Re: how to export public synonyms from one to another oracle database - 02-22-2005 , 03:00 AM



yes, t.o.a.d is the best tool for running queries..and lot's of other
things...
i "copy" synonyms from one database to other, by writing my own script...

"Mark C. Stock" <mcstockX@Xenquery .com> wrote

Quote:
"Tom" <mail (AT) yahoo (DOT) com> wrote in message
news:cvcle4$skh$1 (AT) ls219 (DOT) htnet.hr...
And script looks like???
can you please write some example?

"Frank van Bortel" <fvanbortel (AT) netscape (DOT) net> wrote in message
news:cvcag5$iit$2 (AT) news3 (DOT) 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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.