| |
|
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.
|
 |

08-22-11, 03:25
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
|
HADR Question
|
|
Hello friends!
I have a question:
I installed two servers with DB2 V9.5 and HADR Functionality. Automatic Client Routing and Takeover function works fine. But there havent been any loads on my primary database.
To avoid an occuring problems, i want to know, what can i do to make my database highly available, even if there will be some loads on my primary.
The IBM Information Center is not totally clear about it. Can anyone explain me this?
Thanks in advance.
|
|

08-22-11, 04:25
|
|
Registered User
|
|
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
|
|
we have been using hadr and tsa intensively on our systems
we use load - oltp ..
there have only been issues with tsa during test-failover and test-disasters
what do you mean exactly - can you be more precise ?
__________________
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
|
|

08-22-11, 04:29
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
|
|
My HADR runs with HACMP.
I just want to know what can I do, in case there will be a load on my primary database, to avoid a problem.
Right now I understood the Load HADR Problem like this:
If there is a load on my Primary database, DB2 is not able to replicate the data to the standby.
That would mean that, after a load happened on the primary, I have to make an Offline Backup ( which means downtime ) of my primary, restore the standby database and run HADR Process again...
Can I avoid this downtime somehow?
|
|

08-22-11, 04:32
|
|
Registered User
|
|
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
|
|
you have to use load with copy yes option
put the copy file on a shared filesystem between prim and standby or use tsm if available
__________________
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
|
|

08-22-11, 04:34
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
that means if i have two aix systems, i mount from standby one folder on primary where the copy file is in.
and then i run " db2 load from file.ixf of of ixf copy yes" on primary
Right?
|
|

08-22-11, 05:05
|
|
Registered User
|
|
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
|
|
|
|

08-22-11, 05:53
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
Quote:
Originally Posted by DB_N00b
My HADR runs with HACMP.
I just want to know what can I do, in case there will be a load on my primary database, to avoid a problem.
Right now I understood the Load HADR Problem like this:
If there is a load on my Primary database, DB2 is not able to replicate the data to the standby.
That would mean that, after a load happened on the primary, I have to make an Offline Backup ( which means downtime ) of my primary, restore the standby database and run HADR Process again...
Can I avoid this downtime somehow?
|
The easiest way is use IMPORT instead of LOAD. IMPORT uses INSERT logic, so they will be logged and show up on the HADR standby. IMPORT will take longer than LOAD, but unless you have hundreds of million rows it is usually not too bad. Make sure you set COMMITCOUNT to about 5000 on the IMPORT command or else you will run out of log space.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

08-26-11, 03:46
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Okay that helped me ...
I will see then if its possible to use the Import Command instead of the Load Utilitiy :-)
Thank you guys. 
|
|

08-26-11, 03:54
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Just one more question: if Import is not possible, what is the easiest way do make my HADR ready for any loads?
Does anyone have a "best practise"?
|
|

08-26-11, 04:13
|
|
Registered User
|
|
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
|
|
as indicated before - change db cfg setting to log index build and use copy yes option with load.. the infocenter explains this in detail.. (see for hadr)
__________________
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
|
|

09-01-11, 05:25
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|