IBM Support

JR27848: JCC: DATABASEMETADATA GETUSERNAME() NOT RETURNING CORRECT RESULT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Using the JCC driver, the DatabaseMetaData getUserName()
    function is returning NULL or "dummy_" instead of the username.
    

Local fix

  • The desired results can be seen by reverting to the legacy JDBC
    driver at either the global (-g) or instance (-i) level.  This
    can be done by setting the registry variable
    DB2_USE_DB2JCCT2_JROUTINE equal to NO:
       * db2set -g DB2_USE_DB2JCCT2_JROUTINE=NO
    

Problem summary

  • Using the JCC driver, the DatabaseMetaData getUserName()
    function is returning NULL or "dummy_" instead of the username.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, FixPak 1
    

Temporary fix

  • As a temporary solution, the desired results can be seen by
    reverting to the legacy JDBC driver at either the global (-g) or
    instance (-i) level.  This can be done by setting the registry
    variable DB2_USE_DB2JCCT2_JROUTINE equal to NO:
       * db2set -g DB2_USE_DB2JCCT2_JROUTINE=NO
    

Comments

APAR Information

  • APAR number

    JR27848

  • Reported component name

    DB2 UDB EXE WIN

  • Reported component ID

    5724E4901

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-11-15

  • Closed date

    2008-05-05

  • Last modified date

    2008-05-05

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

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

Fix information

  • Fixed component name

    DB2 UDB EXE WIN

  • Fixed component ID

    5724E4901

Applicable component levels

  • R950 PSY

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950"}]

Document Information

Modified date:
07 October 2021