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 on different db2 version

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-11, 04:31
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
HADR on different db2 version

Hi all,
Is there a way to set up HADR when primary db is in version 8.2
and the standby db is version 9.5 ?

When i take an ofline backup from the primary db and restore it to the standby db ,it is not in rollforward pending state and i get error message:

$ db2 RESTORE DATABASE xxx FROM . REPLACE HISTORY FILE WITHOUT PROMPTING
SQL2555I The restored database was successfully migrated to the current
release.

db2 UPDATE DB CFG FOR ......

db2 START HADR ON DATABASE xxx AS STANDBY
SQL1767N Start HADR cannot complete. Reason code = "1".

Thanks !!
Reply With Quote
  #2 (permalink)  
Old 08-23-11, 05:52
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
rc=1 means db is not in rollforward pending mode
try connect : you should see the message if in rf mode
otherwise regular prompt
see message :
1 The database was not in roll forward-pending or roll forward-in-progress state when the START HADR AS STANDBY command was issued.

doc indicates :
The primary and standby databases must have the same operating system version and the same version of the DB2 database system, except for a short time during a rolling upgrade.
__________________
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
  #3 (permalink)  
Old 08-23-11, 06:02
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
Ok Guy,
Tks,
Reply With Quote
  #4 (permalink)  
Old 08-23-11, 06:13
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
They can be different DB2 fixpacks, but not different DB2 versions, since the transaction log formats are usually not indentical between different DB2 releases.
__________________
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
  #5 (permalink)  
Old 08-23-11, 07:20
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
Just a small remark Marcus. Logs are not being shipped - only logbuffer..
and how about rolling upgrade .. you can not break a hadr when active ..
it is not permanent, only untill both servers have been upgraded ..
__________________
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 08-23-11, 11:02
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by przytula_guy View Post
Just a small remark Marcus. Logs are not being shipped - only logbuffer..
and how about rolling upgrade .. you can not break a hadr when active ..
it is not permanent, only untill both servers have been upgraded ..
I am not sure what is the distinction between log buffer and logs on disk. The format of the logs usually changes from one release to another.

I don't understand your other remarks. One can upgrade the standby to a later DB2 fixpack in the same release and then HADR takeover to the standby, and then repeat on primary server. I have done this many times.

Without getting into all the details, the following basic steps can be used:
  • explicitly deactivate standby database
  • stop instance
  • upgrade instance
  • start instance
  • activate database
  • if database does not automatically go into HADR peer state when activated, then do a start hadr on db as standby, and it should go back into peer state when catch-up is done
__________________
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