IBM Support

IT07511: EXECUTION OF AN SRA PROBE IN TPC MAY RESULT IN A SQLINTEGRITY CONSTRAINTVIOLATIONEXCEPTION WHILE SAVING PROBE RESUTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When the Data Server attempts to save a SRA's probe results, the
    save will generate a SqlIntegrityConstraintViolationException.
    
    When this error occurs, the SRV0713E error message will be found
     in the following files:
    
    TPCD_xxxxxx.log:
    
    STS0146E: Last prepared INSERT SQL statement:
    insert into t_res_physical_volume (physical_volume_id,
    vendor_id, serial_number\
    , model_id, manufacture_date, firmware_rev, device_type,
    use_count, multi_port\
    , flags, removable_medium, unsupported_model, discovered_time,
    storage_system_\
    type, subsystem_id, device_id, SYSTEM_NAMES_ID,
    subsystem_serial_number, name,\
    lunssid) values (?,?,?,?,?,?,?,0,?,?,?,?,?,?,-1,?, -1, ?, ?, ?)
    GEN0100E: Error processing request from host < host_name >,
    for service <Scheduler>, request(3, 1)
    SRV0713E: Group t_res_physical_volume was not saved because
    it already exists.
    SQLSTATE: 23505, Vendor error code: -803
    DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;
    TPC.T_RES_PHYSICAL_VOLUME, DRIVER=3.64.114
    
    ServerTrace.log and serverTrace.trace:
    
    EXCEPTION
      com.ibm.db2.jcc.am.SqlIntegrityConstraintViolationException:
     DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;
     TPC.T_RES_PHYSICAL_VOLUME, DRIVER=3.64.114
        at com.ibm.db2.jcc.am.bd.a(bd.java:675)
    
    EXCEPTION
      com.tivoli.itsrm.common.GeneralSQLException: SRV0713E
      at com.tivoli.itsrm.repository.SQLUtil.getGeneralSQLException
    (SQLUtil.java:1036)
    
    RECREATE STEPS:
    To recreate this error, the following criteria need to be met
    prior to executing an SRA probe:
    
    01. TPC 5.2.4 (or later)
    02. The T_RES_VENDOR table needs to contain multiple "Unknown"
    entries (e.g. "Unknown" and "UNKNOWN").
    02a. The "vendor_id" for the "UNKNOWN" entry in T_RES_VENDOR
    needs to be specified in T_RES_PHYSICAL_VOLUME's "vendor_id"
    field for the SRA agent being probed.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * TPC 5.2.4 and 5.2.5 users                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Execution of an SRA probe may result in a                    *
    * SqlIntegrityConstraintViolationException when the Data       *
    * Server attempts to save a SRA's probe results.               *
    *                                                              *
    * When this error occurs, the SRV0713E error message will be   *
    * found in the following files:                                *
    *                                                              *
    * TPCD_xxxxxx.log                                              *
    *                                                              *
    * STS0146E: Last prepared INSERT SQL statement:                *
    * insert into t_res_physical_volume (physical_volume_id,       *
    * vendor_id, serial_number\                                    *
    * , model_id, manufacture_date, firmware_rev, device_type,     *
    * use_count, multi_port\                                       *
    * , flags, removable_medium, unsupported_model,                *
    * discovered_time, storage_system_\                            *
    * type, subsystem_id, device_id, SYSTEM_NAMES_ID,              *
    * subsystem_serial_number, name,\                              *
    *  lunssid) values (?,?,?,?,?,?,?,0,?,?,?,?,?,?,-1,?, -1, ?,   *
    * ?, ?)                                                        *
    * GEN0100E: Error processing request from host < host_name >,  *
    * for service <Scheduler>, request(3, 1)                       *
    * SRV0713E: Group t_res_physical_volume was not saved because  *
    * it already exists.                                           *
    *                                      SQLSTATE: 23505, Vendor *
    * error code: -803                                             *
    *                                      DB2 SQL Error:          *
    * SQLCODE=-803, SQLSTATE=23505,                                *
    * SQLERRMC=1;TPC.T_RES_PHYSICAL_VOLUME, DRIVER=3.64.114        *
    *                                                              *
    * ServerTrace.log                                              *
    * serverTrace.trace                                            *
    *                                                              *
    * EXCEPTION                                                    *
    *                                                              *
    * com.ibm.db2.jcc.am.SqlIntegrityConstraintViolationException: *
    * DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505,                 *
    * SQLERRMC=1;TPC.T_RES_PHYSICAL_VOLUME, DRIVER=3.64.114        *
    *     at com.ibm.db2.jcc.am.bd.a(bd.java:675)                  *
    *     at com.ibm.db2.jcc.am.bd.a(bd.java:60)                   *
    *     at com.ibm.db2.jcc.am.bd.a(bd.java:127)                  *
    *     at com.ibm.db2.jcc.am.io.b(io.java:2373)                 *
    *     at com.ibm.db2.jcc.am.io.c(io.java:2356)                 *
    *     at com.ibm.db2.jcc.t4.ab.l(ab.java:373)                  *
    *     at com.ibm.db2.jcc.t4.ab.a(ab.java:62)                   *
    *     at com.ibm.db2.jcc.t4.p.a(p.java:50)                     *
    *     at com.ibm.db2.jcc.t4.rb.b(rb.java:220)                  *
    *     at com.ibm.db2.jcc.am.jo.nc(jo.java:3395)                *
    *     at com.ibm.db2.jcc.am.jo.b(jo.java:4358)                 *
    *     at com.ibm.db2.jcc.am.jo.fc(jo.java:774)                 *
    *     at com.ibm.db2.jcc.am.jo.executeUpdate(jo.java:756)      *
    *     at                                                       *
    * com.tivoli.itsrm.repository.RepositoryAccessor.executeUpdate *
    * (RepositoryAccessor.java:290)                                *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.repository.TResDevice.insertDev(TRes *
    * Device.java:1623)                                            *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.repository.TResDevice.saveDevices(TR *
    * esDevice.java:617)                                           *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr.saveDev *
    * ices(ProbeResultsHndlr.java:2367)                            *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr.saveRes *
    * ults(ProbeResultsHndlr.java:1067)                            *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr.handle( *
    * ProbeResultsHndlr.java:553)                                  *
    *     at                                                       *
    * com.tivoli.itsrm.server.RequestManager$RmThread.run(RequestM *
    * anager.java:500)                                             *
    * com.tivoli.itsrm.TStorm.repository.TResDevice saveDevices    *
    * AgentRequestHandler7                                         *
    * EXCEPTION                                                    *
    *   com.tivoli.itsrm.common.GeneralSQLException: SRV0713E      *
    *     at                                                       *
    * com.tivoli.itsrm.repository.SQLUtil.getGeneralSQLException(S *
    * QLUtil.java:1036)                                            *
    *     at                                                       *
    * com.tivoli.itsrm.repository.RepositoryAccessor.sqlError(Repo *
    * sitoryAccessor.java:875)                                     *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.repository.TResDevice.saveDevices(TR *
    * esDevice.java:661)                                           *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr.saveDev *
    * ices(ProbeResultsHndlr.java:2367)                            *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr.saveRes *
    * ults(ProbeResultsHndlr.java:1067)                            *
    *     at                                                       *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr.handle( *
    * ProbeResultsHndlr.java:553)                                  *
    *     at                                                       *
    * com.tivoli.itsrm.server.RequestManager$RmThread.run(RequestM *
    * anager.java:500)                                             *
    * com.tivoli.itsrm.TStorm.server.svp.ProbeResultsHndlr handle  *
    * AgentRequestHandler7                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply fix maintenance when available.                        *
    ****************************************************************
    

Problem conclusion

  • The fix for this APAR is targeted for the following maintenance
    package:
    
    | refresh pack | 5.2-TIV-TPC-RP0006 - target June 2014
    
    http://www-01.ibm.com/support/docview.wss?&uid=swg21320822
    
    The target dates for future refresh packs do not represent a
    formal commitment by IBM. The dates are subject to change
    without notice.
    
    | MDVREGR 5.2-TIV-TPC-RP0004 |
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT07511

  • Reported component name

    TPC

  • Reported component ID

    5608TPC00

  • Reported release

    524

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-03-09

  • Closed date

    2015-03-19

  • Last modified date

    2015-03-19

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

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

Modules/Macros

  • Data     Server   SRA      Agent
    

Fix information

  • Fixed component name

    TPC

  • Fixed component ID

    5608TPC00

Applicable component levels

  • R524 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS5R93","label":"IBM Spectrum Control"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"524","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
22 February 2022