DB2 - Problem description
| Problem IC99914 | Status: Closed |
HADRV97_MONITOR.KSH FAILING DUE TO .BASHRC ENTRIES | |
| product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problem description: | |
hadrV97_monitor.ksh calls "su -" here:
hdrRole=$(su - ${candidate_P_instance} -c "db2pd -hadr -db
${DB2HADRDBNAME?}" | egrep "^Primary |^Standby |not
activated|not active" | awk '{print $1}')
This will also trigger .bashrc/.kshrc/.profile.
In case, eg .bashrc contains a db2pd command too, like "db2pd
-db <dbname> -hadr", hdrRole will contain duplicate entries and
subsequent check
if [[ $hdrRole == "Primary" ]]; then
will fail.
The script needs to take into account that customer might have
outputs in their .bashrc that can conflict. | |
| Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL using HADR * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 9.7 Fix Pack 10 * **************************************************************** | |
| Local Fix: | |
| Solution | |
First fixed in DB2 Version 9.7 Fix Pack 10 | |
| Workaround | |
not known / see Local fix | |
| BUG-Tracking | |
forerunner : APAR is sysrouted TO one or more of the following: IC99915 IC99916 IT00561 follow-up : | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 07.03.2014 11.11.2014 11.11.2014 |
| Problem solved at the following versions (IBM BugInfos) | |
9.7.FP10 | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 9.7.0.10 |
|