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 > triggers & remote database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-04, 19:59
carrotwax carrotwax is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
Wink triggers & remote database

I'm on DB2 8.1 WG and I'm wondering about propagating data to a remote DB system that's already cataloged in the db directory. Is it possible to use a simple trigger to do this? If not, what's the best way to do this? DB2 replication?
Reply With Quote
  #2 (permalink)  
Old 04-19-04, 11:22
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
When you say that the remote DB is cataloged in the DB directory, do you mean through Ferderation or that there is just an entry in the DB catalog (LIST DB DIRECTORY). If the system is Federated then triggers will work for this. If not, the trigger would need a connection to the remote DB, which it cannot do. You will need to use Replication for this scenario.

If you potentially might have more than 1 remote DB to copy the data to, I would strongly suggest you use Replication.

Andy
Reply With Quote
  #3 (permalink)  
Old 04-19-04, 11:50
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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