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 IC98813 Status: Closed

DB2V10_START.KSH SCRIPT HANGS IN CASE OF REMOTELY CATALOGED DATABASES

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
The db2V10_start.ksh script might loop infinitely in 
activateDatabase function  in following while loop: 
 
 while [ $deact -eq 1 ]; 
     do 
         : 
         su - ${DB2INSTANCE?} -c "db2 activate database ${db?}" 
& 
        log info "su - ${DB2INSTANCE?} -c db2 activate database 
${db?}" 
         sleep 5 
        deact=$(su - ${DB2INSTANCE?} -c "db2pd -db ${db?}" | 
grep "not activated" | wc -l) 
      done 
 
It might happen that  loop forever in case the database is 
cataloged  remotely. The reason is that the script is using 
'Database name' in the activation command and it will not work 
for  remotely cataloged databases
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All users                                                    * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 v10.1 FP4.                                    * 
****************************************************************
Local Fix:
Modify the db2V10_start.ksh by changing the following part: 
 
 su - ${DB2INSTANCE?} -c "LANG=en_US db2 list database 
directory" | grep "Database name" \ 
   | tr "[a-z]" "[A-Z]" | awk '{print $4}' > ${dbFN?} 
 
to: 
 
su - ${DB2INSTANCE?} -c "LANG=en_US db2 list db directory" | awk 
'BEGIN{FS="=";} \ 
{if($1 ~ /Database name/)tmp=$2;else if(($1 ~ /Directory entry 
type/) && ($2 !~ /Remote/)) \ 
print tmp}' > ${dbFN?}
available fix packs:
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
Fixed in DB2 v10.1 FP4.
Workaround
Modify the db2V10_start.ksh by changing the following part: 
 
 su - ${DB2INSTANCE?} -c "LANG=en_US db2 list database 
directory" | grep "Database name" \ 
   | tr "[a-z]" "[A-Z]" | awk '{print $4}' > ${dbFN?} 
 
to: 
 
su - ${DB2INSTANCE?} -c "LANG=en_US db2 list db directory" | awk 
'BEGIN{FS="=";} \ 
{if($1 ~ /Database name/)tmp=$2;else if(($1 ~ /Directory entry 
type/) && ($2 !~ /Remote/)) \ 
print tmp}' > ${dbFN?}
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC99378 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
17.01.2014
07.07.2014
07.07.2014
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.4 FixList