IBM Support

IT21534: SQL1476N ERROR WHEN RUNNING SELECT QUERY WITH JDBC WRAPPER NICKNAME

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When running select query with JDBC wrapper nickname, the query
    may get 1476N error
    like the following reproduction scenario.
    This can happen on AIX environment.
    
    $ db2 -tvf create_server.db2
    drop wrapper jdbc
    DB20000I  The SQL command completed successfully.
    
    create wrapper jdbc
    DB20000I  The SQL command completed successfully.
    
    create server iadb type jdbc version 3.0 wrapper jdbc options (
    driver_package '/home/db2inst1/oracle/ojdbc6.jar' , driver_class
    'oracle.jdbc.OracleDriver' , url
    'jdbc:oracle:thin:@DORY:1521/iadb' , jdbc_log 'Y' )
    DB20000I  The SQL command completed successfully.
    
    create user mapping for user server iadb options ( remote_authid
    'scott' , remote_password 'tiger' )
    DB20000I  The SQL command completed successfully.
    
    create nickname nick.dept for iadb.scott.dept
    DB20000I  The SQL command completed successfully.
    
    $ db2 "select count(*) from nick.dept"
    
    1
    -----------
              4
    
      1 record(s) selected.
    
    SQL1476N  The current transaction was rolled back because of
    error "-430".
    SQLSTATE=40506
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 V11.1 AIX                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V11.1 FP3                                     *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT21534

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-07-21

  • Closed date

    2018-03-16

  • Last modified date

    2018-03-16

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

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

Fix information

Applicable component levels

  • RB10 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 March 2018