473,409 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Prove HADR

DB2 v8.2 for win2k3 server

I configurated HADR and now I am trying it. Inside the manage option in
the control center is an option named takeover that switch the roles of
the dbs. That work perfect.

Now reading about HADR I saw that using alternate server for db using
hostname ip port # the automating reroute will start. I got a java web
application running on tomcat. The configuration parameters in tomcat
show the ip address of the machine that runs the database.

How can I automate the rerouting proces in that case?
Someone told me about virtual IP but where can I find information about
configurating that for win2k3?

Thanks
Juan

Nov 12 '05 #1
4 1963
ju********@gmail.com wrote:
DB2 v8.2 for win2k3 server

I configurated HADR and now I am trying it. Inside the manage option in
the control center is an option named takeover that switch the roles of
the dbs. That work perfect.

Now reading about HADR I saw that using alternate server for db using
hostname ip port # the automating reroute will start. I got a java web
application running on tomcat. The configuration parameters in tomcat
show the ip address of the machine that runs the database.

How can I automate the rerouting proces in that case?
Someone told me about virtual IP but where can I find information about
configurating that for win2k3?

Thanks
Juan

I'm far from an expert on this topic, but AFAIK you need to set up
"automatic client reroute". Time too google information center :-)

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2

Client reroute can be configured at the server or via the universal
JDBC driver (if you're using that). In neither case is the IP address
failed over.

http://publib.boulder.ibm.com/infoce...n/c0011976.htm

http://publib.boulder.ibm.com/infoce...d/cjvclrrt.htm

Regards,
- Steve P.
-----------------------------
DB2 UDB Development
Portland, OR

Nov 12 '05 #3
Steve, I saw the links that you put and the second one seems pretty
good to me, because I am using JDBC.

Now in the text says:

"...DB2 Universal JDBC Driver client reroute support causes the
underlying connection to be rerouted to an alternate location where a
failover replica of the database resides..."

"...Alternates are propagated from the server to the client dynamically
when the client issues a CONNECT or CONNECT RESET. This dynamically
propagated alternate server information is stored in global driver
memory, and is also updated in the JNDI store of DB2 active servers..."
From that I understood that using UPDATE ALTERNATE SERVER command I am configurating the JDBC am I right?

Any examples for that?

Thanks

Serge Rielau wrote: ju********@gmail.com wrote:
DB2 v8.2 for win2k3 server

I configurated HADR and now I am trying it. Inside the manage option in
the control center is an option named takeover that switch the roles of
the dbs. That work perfect.

Now reading about HADR I saw that using alternate server for db using
hostname ip port # the automating reroute will start. I got a java web
application running on tomcat. The configuration parameters in tomcat
show the ip address of the machine that runs the database.

How can I automate the rerouting proces in that case?
Someone told me about virtual IP but where can I find information about
configurating that for win2k3?

Thanks
Juan

I'm far from an expert on this topic, but AFAIK you need to set up
"automatic client reroute". Time too google information center :-)

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab


Nov 12 '05 #4

Caveat: I am not expert in the JDBC driver.
From what I've been told, the driver can have alternative server

information set up for it in two different ways:

- via a specific API of the driver, the client on its own can set up
alternate server information

- upon connecting to the server, if the server has alternate server
info defined, it will be passed back to the client; in this case, it
will overwrite (update) any value that the client had initially set on
its own

Some additional information is here:
http://publib.boulder.ibm.com/infoce...2130.htm#wq460

(For some reason, IE won't go directly to the internal location #wq40
for me. If same holds for you, you may end up at the top of
"Documentation updates" page. Search down for "Rerouting DB2 Universal
JDBC driver clients".)

I'm not sure what examples you may be wanting. There is an example of
the UPDATE ALTERNATE SERVER command in the first topic link in my prior
reply. There are some examples having to do with the universal driver
under the other link in my first reply and the link just above in this
reply.

Regards,
- Steve P.
--------------------------------
DB2 UDB Development
Portland, OR

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bruce M | last post by:
Is there a way to run the db2-generated HADR-create script outside of DB2CC beyond the obvious? My DB2CC generates the HADR script and then abends because of a java error meaning I can't finish my...
3
by: bwmiller16 | last post by:
Why are 2 ports required for a HADR Pair? Environment: RH Linux AS3 UDB Express 8.2 with HADR Option Folks - Working with HADR and getting this setup to work right.
7
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the...
4
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
16
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
6
by: RayRay | last post by:
I was hoping I might be able to get an answer regarding DB2 and HADR. Let me preface this by saying that I know very little about networking and I'm not familiar with the HADR product or...
0
by: deshaipet | last post by:
Hi - We have primary and standby databases on different servers. Here is my /etc/service entry for HADR pair : On Primary : "vi /etc/services
0
DB2 Warlord
by: DB2 Warlord | last post by:
After countless time I was unabl to find the answer to my HADR questions and getting HADR to work in 9.5 via the Control Center. Please see my fix that seem strange but works. My error was as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.