If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Need Help with Export / Import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-11, 14:05
ab_yunus ab_yunus is offline
Registered User
 
Join Date: Aug 2011
Posts: 32
Need Help with Export / Import

Hi,

Our project has QA and a PRD (production) database schema. Now, we want to replicate / clone the data in PRD to QA for some tables. My list of steps were to 1. Export the table to .ixf from PRD and 2. Import that .ixf file to QA.

example:
1. In Production I will run, • Export to C:\temp\ BAS_ARTCL_UO_TEMP.ixf of ixf select * from BAS_ARTCL_UO where site_id = '7001' ;

and

2. In QA I will run, • Import from C:\temp\ BAS_ARTCL_UO_TEMP.ixf of ixf insert into BAS_ARTCL_UO ;

Now my peers want it to have replace values. There are some values present already in QA which meets the PRD criteria. So, to avoid duplicates they want to over write the table using import statement. But I had read that to replace the contents of a table, we will need to first drop the foreign keys and run the import and recreate the foreign kets again. Is this how the cloning can be achieved? Is there a way easy than this? How to drop and recreate the foreign key? Pl help. Thank you.
Reply With Quote
  #2 (permalink)  
Old 11-30-11, 16:11
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS are you using?

Can you elaborate on the question? What do you mean by "replace values"?

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On