home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT03716 Status: Closed

STARTING IN V10.1, DB2PD -DBCFG MIGHT RETURNS INCORRECT HADR ROLES

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
The reason is prior to v10.1, HADR role is stored in database 
configuration but in 10.1 code was changed to store information 
in the global structure which was not copied to database 
configuration file. Hence db2pd -dbcfg returned incorrect 
result. 
Primary: 
[test@Testmachine]/nfshome/test>db2pd -db drdb -dbcfg |grep -E 
"Description|role" 
Description                    Memory Value         Disk Value 
 
HADR database role             STANDARD             STANDARD 
 
 
[test@Testmachine]/nfshome/test>db2pd -db drdb -hadr 
 
Database Member 0 -- Database DRDB -- Active -- Up 0 days 
00:12:09 -- Date 2014-07-17-19.28.38.018023 
 
                            HADR_ROLE = PRIMARY 
                          REPLAY_TYPE = PHYSICAL 
                        HADR_SYNCMODE = SYNC 
                           STANDBY_ID = 1 
                        LOG_STREAM_ID = 0 
                           HADR_STATE = PEER 
                  PRIMARY_MEMBER_HOST = Testmachine 
                     PRIMARY_INSTANCE = test 
                       PRIMARY_MEMBER = 0 
                  STANDBY_MEMBER_HOST = gauss 
                     STANDBY_INSTANCE = test 
                       STANDBY_MEMBER = 0 
                  HADR_CONNECT_STATUS = CONNECTED 
             HADR_CONNECT_STATUS_TIME = 07/17/2014 
19:16:38.230848 (1405649798) 
          HEARTBEAT_INTERVAL(seconds) = 5 
                HADR_TIMEOUT(seconds) = 20 
        TIME_SINCE_LAST_RECV(seconds) = 5 
             PEER_WAIT_LIMIT(seconds) = 0 
           LOG_HADR_WAIT_CUR(seconds) = 0.000 
    LOG_HADR_WAIT_RECENT_AVG(seconds) = 0.000000 
   LOG_HADR_WAIT_ACCUMULATED(seconds) = 0.000 
                  LOG_HADR_WAIT_COUNT = 0 
SOCK_SEND_BUF_REQUESTED,ACTUAL(bytes) = 0, 16384 
SOCK_RECV_BUF_REQUESTED,ACTUAL(bytes) = 0, 87380 
            PRIMARY_LOG_FILE,PAGE,POS = S0000000.LOG, 0, 
40760046 
            STANDBY_LOG_FILE,PAGE,POS = S0000000.LOG, 0, 
40760046 
                  HADR_LOG_GAP(bytes) = 0 
     STANDBY_REPLAY_LOG_FILE,PAGE,POS = S0000000.LOG, 0, 
40760046 
       STANDBY_RECV_REPLAY_GAP(bytes) = 0 
                     PRIMARY_LOG_TIME = 07/01/2014 
18:20:59.000000 (1404264059) 
                     STANDBY_LOG_TIME = 07/01/2014 
18:20:59.000000 (1404264059) 
              STANDBY_REPLAY_LOG_TIME = 07/01/2014 
18:20:59.000000 (1404264059) 
         STANDBY_RECV_BUF_SIZE(pages) = 4300 
             STANDBY_RECV_BUF_PERCENT = 0 
           STANDBY_SPOOL_LIMIT(pages) = 0 
                 PEER_WINDOW(seconds) = 30 
                      PEER_WINDOW_END = 07/17/2014 
19:29:03.000000 (1405650543) 
             READS_ON_STANDBY_ENABLED = N 
 
[test@Testmachine]/nfshome/test>db2 connect to drdb 
 
   Database Connection Information 
 
 Database server        = DB2/LINUXX8664 10.1.4 
 SQL authorization ID   = test 
 Local database alias   = DRDB 
 
[test@Testmachine]/nfshome/test>db2 get db cfg for drdb show 
detail|grep -E "Value|database role" 
 Description                                   Parameter 
Current Value              Delayed Value 
 HADR database role                                      = 
PRIMARY                    PRIMARY 
 
 
Standby: 
[test@gauss]/nfshome/test>db2pd -db drdb -dbcfg |grep -E 
"Description|role" 
Description                    Memory Value         Disk Value 
 
HADR database role             STANDARD             STANDBY 
 
 
[test@gauss]/nfshome/test>db2pd -db drdb -hadr 
 
Database Member 0 -- Database DRDB -- Standby -- Up 0 days 
00:21:24 -- Date 2014-07-17-19.36.47.318351 
 
                            HADR_ROLE = STANDBY 
                          REPLAY_TYPE = PHYSICAL 
                        HADR_SYNCMODE = SYNC 
                           STANDBY_ID = 0 
                        LOG_STREAM_ID = 0 
                           HADR_STATE = PEER 
                  PRIMARY_MEMBER_HOST = Testmachine 
                     PRIMARY_INSTANCE = test 
                       PRIMARY_MEMBER = 0 
                  STANDBY_MEMBER_HOST = gauss 
                     STANDBY_INSTANCE = test 
                       STANDBY_MEMBER = 0 
                  HADR_CONNECT_STATUS = CONNECTED 
             HADR_CONNECT_STATUS_TIME = 07/17/2014 
19:16:38.234573 (1405649798) 
          HEARTBEAT_INTERVAL(seconds) = 5 
                HADR_TIMEOUT(seconds) = 20 
        TIME_SINCE_LAST_RECV(seconds) = 4 
             PEER_WAIT_LIMIT(seconds) = 0 
           LOG_HADR_WAIT_CUR(seconds) = 0.000 
    LOG_HADR_WAIT_RECENT_AVG(seconds) = 0.000000 
   LOG_HADR_WAIT_ACCUMULATED(seconds) = 0.000 
                  LOG_HADR_WAIT_COUNT = 0 
SOCK_SEND_BUF_REQUESTED,ACTUAL(bytes) = 0, 16384 
SOCK_RECV_BUF_REQUESTED,ACTUAL(bytes) = 0, 87380 
            PRIMARY_LOG_FILE,PAGE,POS = S0000000.LOG, 0, 
40760046 
            STANDBY_LOG_FILE,PAGE,POS = S0000000.LOG, 0, 
40760046 
                  HADR_LOG_GAP(bytes) = 0 
     STANDBY_REPLAY_LOG_FILE,PAGE,POS = S0000000.LOG, 0, 
40760046 
       STANDBY_RECV_REPLAY_GAP(bytes) = 0 
                     PRIMARY_LOG_TIME = 07/01/2014 
18:20:59.000000 (1404264059) 
                     STANDBY_LOG_TIME = 07/01/2014 
18:20:59.000000 (1404264059) 
              STANDBY_REPLAY_LOG_TIME = 07/01/2014 
18:20:59.000000 (1404264059) 
         STANDBY_RECV_BUF_SIZE(pages) = 4300 
             STANDBY_RECV_BUF_PERCENT = 0 
           STANDBY_SPOOL_LIMIT(pages) = 0 
                 PEER_WINDOW(seconds) = 30 
                      PEER_WINDOW_END = 07/17/2014 
19:37:13.000000 (1405651033) 
             READS_ON_STANDBY_ENABLED = N 
 
[test@gauss]/nfshome/test>db2 get db cfg for drdb |grep -i role 
 HADR database role                                      = 
STANDBY
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All DB2 V10.5 Users                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 V10.5 Fix Pack 5 or higher.                   * 
****************************************************************
Local Fix:
Use 'db2pd -hadr' or 'db2 get db cfg' instead
Solution
Fixed in DB2 V10.5 Fix Pack 5.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
11.08.2014
16.04.2015
16.04.2015
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.5.0.5 FixList