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 setup basic simple steps through command

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-09, 11:17
ranjandba ranjandba is offline
Registered User
 
Join Date: Mar 2006
Posts: 20
db2 replication setup basic simple steps through command

current task - setup sql replication 2 db2 servers. difficulty i m facing (replication through gui control centre is pretty slow.) new to db2

can any body help in explaining in simple steps how to setup replication throguh command line.

to make it simple i've the below env db2 on unix enviorment.

have server A , database dbsource , table A column a
server B , database dbdestination , table A column a.

wanted server B should get sync with server A every 5 miutes.

question -
#1> is it possible to setup replication through command line ie syntax

#2> what are the steps i need to do ie what sould be my first step , 2nd step etc ,if i want to setup throguh command line.

#3> is it possibel to write SP / avaiable , which will take input parameter (source server,db,table , destination server,db,table etc )& will setup the repication.

#4> how to create monitoring jobs which will check & alert if replication is in sync ?

appriciate you're time & inclination help ...hope to get a solution.

thanks
ranjan
Reply With Quote
  #2 (permalink)  
Old 07-01-09, 20:20
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,007
When I needed replicaiton command line scripts, I always generated the commands via the GUI (and then Show SQL) and then saved the commands so I could run them again. It is very complicated to try and do without the GUI the first time.
__________________
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 07-02-09, 10:32
ranjandba ranjandba is offline
Registered User
 
Join Date: Mar 2006
Posts: 20
replication setup through command line

replication gui screen gets hung while setting up the replication.

is there any other alternative to gui replication setup...?

if any body have the script similar to this setup ... ?
Reply With Quote
  #4 (permalink)  
Old 07-03-09, 03:32
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,578
You can use the "asnclp" script to set up replication.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools
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