IBM Support

IC79502: UPDATING INSTANCE FOR USER USING CSH GIVES "AMBIGUOUS OUTPUT REDIRECT" ERROR

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When executing db2iupdt for a user instance that runs in csh, we
    get the following output:
    ------
    + return 0
    + /usr/bin/chmod ugo+w /db2/db2gbt/sqllib/ctrl/.cleandpf
    + /opt/IBM/db2/V9.7_2/instance/db2iexec db2gbt
    /db2/db2gbt/sqllib/bin/rah ";/db2/db2gbt/sqllib/adm/db2iclean
    2>&1
    1>/dev/null " 2>&1 1>/dev/null
    Not a terminal
    Not a terminal
    Ambiguous output redirect.
    ------
    
    db2iupdt calls the db2iutil script.
    
    At line 2604 of db2iutil:
    ----------------------------------------------------------------
    ${DB2DIR?}/instance/db2iexec ${INSTNAME?}
    "${INSTHOME?}/sqllib/bin/rah
    \";${INSTHOME?}/sqllib/adm/db2iclean 2>&1 1>/dev/null \" 2>&1
    1>/dev/null"
    ----------------------------------------------------------------
    
    At line 83 of db2iexec:
    PROFILE="source ${USERHOME?}/${SQLLIB?}cshrc >& /dev/null; $* "
    
    And at line 87 of db2iexec:
    /usr/bin/su - ${INSTNAME?} -c "${PROFILE?}"
    
    So the "2>&1" syntax is passed as is to a csh session where it
    cannot be parsed.
    

Local fix

  • Modify "2>&1 1>/dev/null" to ">& /dev/null" at 2604 Line of
    db2iutil file as below.
    
    <Original command>
    ${DB2DIR?}/instance/db2iexec ${INSTNAME?}
    "${INSTHOME?}/sqllib/bin/rah
    \";${INSTHOME?}/sqllib/adm/db2iclean 2>&1 1>/dev/null \" 2>&1
    1>/dev/null"
    
    <Modified command>
    ${DB2DIR?}/instance/db2iexec ${INSTNAME?}
    "${INSTHOME?}/sqllib/bin/rah
    \";${INSTHOME?}/sqllib/adm/db2iclean 2>&1 1>/dev/null \" >&
    /dev/null"
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Running db2iupdt for a user using csh                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to v9.7 FP6                                          *
    ****************************************************************
    

Problem conclusion

  • Error will no longer occur in v9.7 FP6
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC79502

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-10-27

  • Closed date

    2012-06-13

  • Last modified date

    2012-06-13

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IC79859

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC79502

Modified date: 13 June 2012