dbTalk Databases Forums  

duplicate schema on the same base

comp.databases.oracle.server comp.databases.oracle.server


Discuss duplicate schema on the same base in the comp.databases.oracle.server forum.



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

Default duplicate schema on the same base - 05-18-2011 , 07:44 AM






Hi,

some one could tel me how can i do to duplicate schema (no rows) onto
the same base ?

thank's

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: duplicate schema on the same base - 05-18-2011 , 07:56 AM






On Wed, 18 May 2011 05:44:57 -0700, eliot06 wrote:

Quote:
Hi,

some one could tel me how can i do to duplicate schema (no rows) onto
the same base ?

thank's
Create new schema, export only metadata and import into the new schema.



--
http://mgogala.byethost5.com

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

Default Re: duplicate schema on the same base - 05-18-2011 , 08:13 AM



On 18 mai, 14:56, Mladen Gogala <gogala.mla... (AT) gmail (DOT) com> wrote:
Quote:
On Wed, 18 May 2011 05:44:57 -0700, eliot06 wrote:
Hi,

some one could tel me how can i do to duplicate schema (no rows) onto
the same base ?

thank's

Create new schema, export only metadata and import into the new schema.

--http://mgogala.byethost5.com
usualy i use networklink into impdp like :

impdp system DIRECTORY=data_pump_dir schemas=USER1
content=METADATA_ONLY logfile=impdp.log network_link=REMOTE

and it is not necessary to create an export dump !!but the remote is
not the same base

Reply With Quote
  #4  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: duplicate schema on the same base - 05-18-2011 , 08:30 AM



On Wed, 18 May 2011 06:13:24 -0700, eliot06 wrote:
Quote:
usualy i use networklink into impdp like :

impdp system DIRECTORY=data_pump_dir schemas=USER1
content=METADATA_ONLY logfile=impdp.log network_link=REMOTE

and it is not necessary to create an export dump !!but the remote is not
the same base
So? This time you can use the file.



--
http://mgogala.byethost5.com

Reply With Quote
  #5  
Old   
onedbguru
 
Posts: n/a

Default Re: duplicate schema on the same base - 05-19-2011 , 07:45 AM



On May 18, 9:30*am, Mladen Gogala <gogala.mla... (AT) gmail (DOT) com> wrote:
Quote:
On Wed, 18 May 2011 06:13:24 -0700, eliot06 wrote:
*usualy i use networklink into impdp like *:

*impdp system DIRECTORY=data_pump_dir schemas=USER1
content=METADATA_ONLY logfile=impdp.log network_link=REMOTE

and it is not necessary to create an export dump !!but the remote is not
the same base

So? This time you can use the file.

--http://mgogala.byethost5.com
impdp system DIRECTORY=data_pump_dir schemas=USER1
remap_schema=USER1:NEWUSER content=METADATA_ONLY logfile=impdp.log
network_link=REMOTE

creates newuser with the schema from USER1.

In this example, you need to create a database link called remote that
points to the database. System will need to be granted
DATAPUMP_{EXP,IMP}_FULL_DATABASE

Reply With Quote
  #6  
Old   
Meaganasfree2rhyme00@gmail.com
 
Posts: n/a

Default Re: duplicate schema on the same base - 05-29-2011 , 03:46 AM



On May 19, 5:45*am, onedbguru <onedbg... (AT) yahoo (DOT) com> wrote:
Quote:
On May 18, 9:30*am, Mladen Gogala <gogala.mla... (AT) gmail (DOT) com> wrote:

On Wed, 18 May 2011 06:13:24 -0700, eliot06 wrote:
*usualy i use networklink into impdp like *:

*impdp system DIRECTORY=data_pump_dir schemas=USER1
content=METADATA_ONLY logfile=impdp.log network_link=REMOTE

and it is not necessary to create an export dump !!but the remote is not
the same base

So? This time you can use the file.

--http://mgogala.byethost5.com

impdp system DIRECTORY=data_pump_dir schemas=USER1
remap_schema=USER1:NEWUSER content=METADATA_ONLY logfile=impdp.log
network_link=REMOTE

creates newuser with the schema from USER1.

In this example, you need to create a database link called remote that
points to the database. *System will need to be granted
DATAPUMP_{EXP,IMP}_FULL_DATABASE
meaganasfree2rhyme00 (AT) gmail (DOT) com the real adult child as orphaned
belonging to slipknot has been robbed for everything no hopes,
wishes,dreams or beliefs

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.