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 > db2 replication question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-09, 13:43
preetim preetim is offline
Registered User
 
Join Date: Jun 2003
Posts: 77
db2 replication question

We are using DB2 UDB 9.5 on windows server.

Looking at the option of creating a DB2 database Replica on another instance of db2 using replication center.
The question is -
Is it possible to link two databases thru db2 replication, but have only selective rows from the source table to go into the target tables (using some select SQL queries)? If yes, how can it be done?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 09-16-09, 14:01
preetim preetim is offline
Registered User
 
Join Date: Jun 2003
Posts: 77
I found that the filtering of rows can be done using Q replication. But is it also possible to do it in SQL Replication (without using webshere)?
Reply With Quote
  #3 (permalink)  
Old 09-16-09, 14:09
rdutton rdutton is offline
Registered User
 
Join Date: Dec 2008
Posts: 76
SQL replication uses queries to select the replicated data. You can modify the query to be anything you want - you do not have to do one to one table and row replication.

As to how, look in the Redbook section on the IBM site. They will have step by step how to guides.
__________________
RD
Reply With Quote
  #4 (permalink)  
Old 09-16-09, 20:25
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
And you can also replicate between views using SQL replication. So you only define the view to realize the filtering and then use the view as replication source.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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