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 > How to insert data from differnet db ????

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-08, 03:30
jayshah7 jayshah7 is offline
Registered User
 
Join Date: Feb 2008
Posts: 35
How to insert data from differnet db ????

Hi all,
I want to schedule a script, which will periodically append the data from a differnt database. Except export import, is there any way to directly insert from tables to another where both are in different database. If yes, how ????
Reply With Quote
  #2 (permalink)  
Old 10-13-08, 04:23
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
you need federated system.

Manual: http://www-01.ibm.com/support/docvie...id=swg27009727
Download PDF file: Administration Guide for Federated Systems
Regards,
Grofaty
Reply With Quote
  #3 (permalink)  
Old 10-13-08, 05:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would recommend the export/import solution. Federation is not worth the trouble and costs extra in V9.5 (for all editions). You will need IBM Homogeneous Federation Feature in V9.5. Even if you are not using V9.5 now, you eventually will have to upgrade.

Another options is SQL replication, but again, it usually not worth the trouble unless you need the data to be in synch near real-time (within a few minutes).
__________________
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
  #4 (permalink)  
Old 10-13-08, 05:39
jayshah7 jayshah7 is offline
Registered User
 
Join Date: Feb 2008
Posts: 35
Sorry, I mean to say both tables from same RDBMS (DB2) but residing in different database. Like in Oracle, we can create database links to insert data !!!!
Reply With Quote
  #5 (permalink)  
Old 10-13-08, 07:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by jayshah7
Sorry, I mean to say both tables from same RDBMS (DB2) but residing in different database. Like in Oracle, we can create database links to insert data !!!!
We knew what you meant (both databases are DB2), and the answers above don't change.
__________________
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
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