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 > Migrating data from one db2instance to another

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-05, 23:42
arulmani arulmani is offline
Registered User
 
Join Date: Jan 2005
Posts: 1
Migrating data from one db2instance to another

I have two db2 instances (inst1, inst2) each with its own set of tables. Is there a way of migrating data from one db2 instance to another?

What I would eventually like to do is something like :

Code:
INSERT INTO inst2.table2 SELECT * FROM inst1.table1
Is this possible in DB2. If so, how can I do it?

Thanks & regards
Arulmani
Reply With Quote
  #2 (permalink)  
Old 03-04-05, 01:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You would have to setup DB2 Federated support if you have an SQL statement which needs to recognize a table in an different database than the one you are connected to. This is true regardless of whether the database is in the same instance or a different instance.

You could also do exports and imports of the data. If you want to automate the export and import of a large group of tables, you can use db2move command.

You can also do a redirected restore of a backup.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 03-04-05, 01:46
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
You can with Websphere Information Integrator. But if it's infrequent, investigate the db2move utility.

James Campbell
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