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 > Doubt in db2 SQL Replication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-08-11, 23:56
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Red face Doubt in db2 SQL Replication

Hi,

I wanted to configure SQL Replication my Databases(Source and Target),

It was successful, And i am able to see the data being replicated from one table to another table,

The table created in SourceDB is " RP"

But while replicating the table name was replicated in TARGETDB as " TGRP".

This exercise was done to ensure no user has access to SOURCEDB.

But how can i do that now cos name shown is different as what user is aware.

pl. share you suggestion and help me.
Reply With Quote
  #2 (permalink)  
Old 08-09-11, 02:08
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you can rename the table or create a view, if that is what you mean.
if renaming - the subscription tables have to be adapted to reflect the correct subscription members.
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-09-11, 02:23
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
ok i have made the changes in the subsription to have the correct name and proper table space ,

i have one more doubt, i have started the capture and apply both, so i don need to put that in schedule , cos it will be replicating till the db is up.

correct if i am wrong.
Reply With Quote
  #4 (permalink)  
Old 08-09-11, 02:28
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
in windows you can create services for capture and apply
in linux/unix you have to put this in autostart procedure
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 08-09-11, 02:39
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
how do i put this in autostart ...

just take the 1 liner and add it to the autostart script ???
Reply With Quote
  #6 (permalink)  
Old 08-09-11, 02:46
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
I am not a linux-unix expert, but I presume you create a script with start stop option and place it in /etc/init.d as we used todo before with s... k.. scripts. this is only for boot operation. for start-stop after db2stop/start .. create a script in crontab that is in loop and checks if db2 is up and starts capture/apply if not running..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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