dbTalk Databases Forums  

Refresh Schema - Table Data Only

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


Discuss Refresh Schema - Table Data Only in the comp.databases.oracle.misc forum.



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

Default Refresh Schema - Table Data Only - 08-28-2008 , 02:04 PM






10gR2
I want to refresh a shema - data only

If I'm to use expdp to export "scott" from Production and use impdp to
import to "scott" on Test....

What is the best approach on the import ?

1) Should I drop all tables under "scott" ? or truncate them ?
2) What about existing table constraints/Ref. Integrities...how do I
deal with them ?

thanks

Reply With Quote
  #2  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 02:24 PM






On Thu, 28 Aug 2008 12:04:55 -0700 (PDT), klabu <klabu76 (AT) gmail (DOT) com>
wrote:

Quote:
10gR2
I want to refresh a shema - data only

If I'm to use expdp to export "scott" from Production and use impdp to
import to "scott" on Test....

What is the best approach on the import ?

1) Should I drop all tables under "scott" ? or truncate them ?
2) What about existing table constraints/Ref. Integrities...how do I
deal with them ?

thanks
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #3  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 02:24 PM



On Thu, 28 Aug 2008 12:04:55 -0700 (PDT), klabu <klabu76 (AT) gmail (DOT) com>
wrote:

Quote:
10gR2
I want to refresh a shema - data only

If I'm to use expdp to export "scott" from Production and use impdp to
import to "scott" on Test....

What is the best approach on the import ?

1) Should I drop all tables under "scott" ? or truncate them ?
2) What about existing table constraints/Ref. Integrities...how do I
deal with them ?

thanks
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #4  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 02:24 PM



On Thu, 28 Aug 2008 12:04:55 -0700 (PDT), klabu <klabu76 (AT) gmail (DOT) com>
wrote:

Quote:
10gR2
I want to refresh a shema - data only

If I'm to use expdp to export "scott" from Production and use impdp to
import to "scott" on Test....

What is the best approach on the import ?

1) Should I drop all tables under "scott" ? or truncate them ?
2) What about existing table constraints/Ref. Integrities...how do I
deal with them ?

thanks
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #5  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 02:24 PM



On Thu, 28 Aug 2008 12:04:55 -0700 (PDT), klabu <klabu76 (AT) gmail (DOT) com>
wrote:

Quote:
10gR2
I want to refresh a shema - data only

If I'm to use expdp to export "scott" from Production and use impdp to
import to "scott" on Test....

What is the best approach on the import ?

1) Should I drop all tables under "scott" ? or truncate them ?
2) What about existing table constraints/Ref. Integrities...how do I
deal with them ?

thanks
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA


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

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 05:02 PM



Quote:
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA
thanks that was so helpful



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

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 05:02 PM



Quote:
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA
thanks that was so helpful



Reply With Quote
  #8  
Old   
noobuntu
 
Posts: n/a

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 05:02 PM



Quote:
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA
thanks that was so helpful



Reply With Quote
  #9  
Old   
noobuntu
 
Posts: n/a

Default Re: Refresh Schema - Table Data Only - 08-28-2008 , 05:02 PM



Quote:
1) the documentation for impdp in the Oracle Utilities Manual outlines
various commandline options dealing with exactly this.
As I don't know them by heart, and would need to reread the
documentation, you'd better do this.

--
Sybrand Bakker
Senior Oracle DBA
thanks that was so helpful



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.