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 > HADR question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-07, 11:25
jsmit jsmit is offline
Registered User
 
Join Date: Mar 2007
Posts: 35
HADR question

we are using db2 v8.2.3 aix 5.2

is it possible I setup HADR in one serever between two databases that are located in different instances?

thank you for yourhelp.
Reply With Quote
  #2 (permalink)  
Old 08-13-07, 11:52
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I don't see why not
Reply With Quote
  #3 (permalink)  
Old 08-13-07, 12:52
jsmit jsmit is offline
Registered User
 
Join Date: Mar 2007
Posts: 35
Quote:
Originally Posted by n_i
I don't see why not
Thank you n_i for your answer,

I have read some article about HADR and all talking about primary and stand by servers, I know replication is possible but I did not know even HADR is possible.

how can I describe failover on stand by server? or rerout client to standby server? this practice is just for myself and I want to learn more about HADR.
Reply With Quote
  #4 (permalink)  
Old 08-13-07, 13:38
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Reply With Quote
  #5 (permalink)  
Old 08-13-07, 14:23
jsmit jsmit is offline
Registered User
 
Join Date: Mar 2007
Posts: 35
is it true in HADR we should have same name for instances and log files in primary and stand by servers?
Reply With Quote
  #6 (permalink)  
Old 08-13-07, 14:35
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Instance names don't have to be the same.

If you run both primary and standby on the same machine then obviously you cannot specify the same location for log files; they will have to be relative to the each database directory.

By the way, don't you think that running the primary and standby databases on the same server kind of defeats the purpose of HADR?
Reply With Quote
  #7 (permalink)  
Old 08-13-07, 14:46
jsmit jsmit is offline
Registered User
 
Join Date: Mar 2007
Posts: 35
Quote:
Originally Posted by n_i
Instance names don't have to be the same.

If you run both primary and standby on the same machine then obviously you cannot specify the same location for log files; they will have to be relative to the each database directory.

By the way, don't you think that running the primary and standby databases on the same server kind of defeats the purpose of HADR?
you are absolutly right, unfortunatly there are not two servers available in our environment and I want to setup that just for myself and I get some knowledge about this feature.
Reply With Quote
  #8 (permalink)  
Old 08-13-07, 23:19
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Initially, when Tivoli System Automation was released and included for free with HADR to automate HADR failovers, the instance names had to be separate in order for the HA scripts to work. But that is not longer true with TSA 2.1+.

Regardless of whether the instance names are the same, all the tablespace container paths have to be the same on both servers (so that create/alter tablespace SQL will replicate properly), which is easier if the instances are the same.

Also, there is an unusual situation where a C user defined function is executed in a stored procedure, and the load module of the function may not be found on the standby if the instance names are different (I ran into this problem). So making the instance names the same is definitely better.
__________________
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