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 synchronization between 2 servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-09, 11:37
arun26081983 arun26081983 is offline
Registered User
 
Join Date: Sep 2009
Posts: 7
Db2 synchronization between 2 servers

Hi,

in our environment, we have 2 Solaris servers with DB2 V 9.1 fp 7.
There is a process which writes data into DB2, but the second server being just a backup server for all the applications of first server (including DB2) there is no data written into second DB2.
The structure and tablespace of both machines are same except for the DB mount file system.
Here I need to have all the data on the first machine to be replicated to second machine once in a day.
Being a newbie to Db2 the concept is very difficult for me to implement with, can I set up HADR or need to write some db2 commands to get the data from first server and populate to second server???

Could you please help me in achieving this?


Thanks,
Arun
Reply With Quote
  #2 (permalink)  
Old 09-28-09, 12:53
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Looks like a case for HADR to me.
Reply With Quote
  #3 (permalink)  
Old 09-28-09, 13:24
arun26081983 arun26081983 is offline
Registered User
 
Join Date: Sep 2009
Posts: 7
Hi Nick, thank you very much for the response, would you be able to help me in setting up this HADR. Being Solaris I believe there are not clients for DB2, but I have DB2 client setup on Windows machine on the same network where I have catalogued both of the Solaris servers db2 to see over the console client. now please guide me....
Reply With Quote
  #4 (permalink)  
Old 09-28-09, 14:18
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by arun26081983
now please guide me....
Certainly. Where do I send the invoice?

As an alternative, you can guide yourself for free: DB2 Database for Linux, UNIX, and Windows
Reply With Quote
  #5 (permalink)  
Old 09-29-09, 05:30
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
this is all you need to know :
DB2 High Availability Disaster Recovery (HADR) commands
the rest is self explanatory
__________________
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
  #6 (permalink)  
Old 09-29-09, 05:30
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
this is all you need to know :
DB2 High Availability Disaster Recovery (HADR) commands
the rest is self explanatory
__________________
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
  #7 (permalink)  
Old 09-29-09, 11:13
arun26081983 arun26081983 is offline
Registered User
 
Join Date: Sep 2009
Posts: 7
Looks like need to buy HADR license for this, which might take time for the process. So is it possible anyway using db2 commands/scripts though I know that it would not be efficient? objective is to synchronize once in a day not ncessarily immediately, so any ways?
Reply With Quote
  #8 (permalink)  
Old 09-29-09, 11:41
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Reply With Quote
  #9 (permalink)  
Old 09-29-09, 15:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by arun26081983
Looks like need to buy HADR license for this, which might take time for the process. So is it possible anyway using db2 commands/scripts though I know that it would not be efficient? objective is to synchronize once in a day not ncessarily immediately, so any ways?
HADR is included for free in ESE (Enterprise Server Edition), and starting with version 9.5 it is also included for free in WSE (Workgroup Server Edition).
__________________
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
  #10 (permalink)  
Old 09-30-09, 04:55
arun26081983 arun26081983 is offline
Registered User
 
Join Date: Sep 2009
Posts: 7
that sounds good but mine is DB2 V 9.1 fp 7, so I think HADR will not be included for free. I will look at the option of log shipping. meanwhile any other ways using any commands?
Reply With Quote
  #11 (permalink)  
Old 10-02-09, 07:29
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Reply With Quote
  #12 (permalink)  
Old 10-07-09, 13:27
arun26081983 arun26081983 is offline
Registered User
 
Join Date: Sep 2009
Posts: 7
I have attached the db2 configuration from both machines, could somebody help me in doing the log shipping for replication/synchronization of DB2 servers.
Attached Files
File Type: txt db2_primary.txt (6.9 KB, 67 views)
File Type: txt db2_secondary.txt (6.9 KB, 41 views)
Reply With Quote
  #13 (permalink)  
Old 10-07-09, 19:04
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by dr_te_z
Doesn't quite work as advertised. IBM was on the verge of buying Xkoto, but found out at the last minute that there are a bunch of SQL statements not supported.

IBM may announce other options shortly.
__________________
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
  #14 (permalink)  
Old 10-07-09, 20:52
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by Marcus_A
IBM may announce other options shortly.
Do you know if this will replace xkoto?
Reply With Quote
  #15 (permalink)  
Old 10-08-09, 03:46
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by db2girl
Do you know if this will replace xkoto?
Not exactly. That is all I can say at the moment.
__________________
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