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 > export/import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-08, 05:05
david_david david_david is offline
Registered User
 
Join Date: Jan 2008
Posts: 8
export/import

HI,
How can i export and import a db2 database , I am using db2 v8.1..

I have one database "test1". It has 10 tables.
How can I export tables from "test1" and import all these to a newly created database "test2".

I checked in http://www.ibm.com/developerworks/db...ham/index.html export/import command of table, but by using this we can exp/imp only single table data at a time. And also the table should me created in the new database.

In oracle We can export/import all tables,triggers,etc .

plz help me to do in DB2..thanks to all
Reply With Quote
  #2 (permalink)  
Old 01-17-08, 08:01
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You need to use db2look to get the ddl to create the tables:

http://publib.boulder.ibm.com/infoce...e/r0002051.htm

And db2move to copy the data:

http://publib.boulder.ibm.com/infoce...e/r0002079.htm

Andy
Reply With Quote
  #3 (permalink)  
Old 01-23-08, 08:06
david_david david_david is offline
Registered User
 
Join Date: Jan 2008
Posts: 8
let me check it ....
thanks .
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