IBM Support

IT15265: DB2TS CLEAR EVENTS DOES NOT WORK WHEN EVENTTABLLE HAS ROWS > 1000.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Trying to clear events from the text search events table results
    in SQL0607N.
    
    db2 "CALL SYSPROC.SYSTS_CLEAR_EVENTS('ONSITE',
    'FILES_FILE_NAME_TSINDEX','locale', ?) "
    
    SQL20427N  An error occurred during a text search administration
    procedure or
    command. The error message is "" SQL0607N  "DROP" is not defined
    for
    system objects.  SQLSTAT".  SQL".  SQLSTATE=38H14
    
    This only occurs if the number of rows to remove is > 1000
    rows.
    

Local fix

  • Get eventtableschemaName and eventtableName using :
                    db2 "select EVENTTABLESCHEMA,EVENTTABLENAME from
    sysibmts.systsindexes where  indexname =
    'FILES_FILE_NAME_TSINDEX'"
    
    Lock index to block other admin commands on index during change
    of eventview
              db2ts set command locks for index
    onsite.FILES_FILE_NAME_TSINDEX for text
    
    Trim the eventtable as below:
            db2 "delete from
    <eventtableschemaName>.<eventtableName>"
    
    Unlock the index for other admin operatin on index.
           db2ts clear command locks for index
    ionsite.FILES_FILE_NAME_TSINDEX for text
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Text Indexes                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 11 Fix Pack 1 or higher               *
    ****************************************************************
    

Problem conclusion

  •  First fixed in DB2 Version 11 Fix Pack 1 or higher
    

Temporary fix

  • Get eventtableschemaName and eventtableName using :
                    db2 "select EVENTTABLESCHEMA,EVENTTABLENAME from
    sysibmts.systsindexes where  indexname =
    'FILES_FILE_NAME_TSINDEX'"
    
    Lock index to block other admin commands on index during change
    of eventview
              db2ts set command locks for index
    onsite.FILES_FILE_NAME_TSINDEX for text
    
    Trim the eventtable as below:
            db2 "delete from
    <eventtableschemaName>.<eventtableName>"
    
    Unlock the index for other admin operatin on index.
           db2ts clear command locks for index
    onsite.FILES_FILE_NAME_TSINDEX for text
    

Comments

APAR Information

  • APAR number

    IT15265

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-05-12

  • Closed date

    2017-10-10

  • Last modified date

    2017-10-10

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

    IT06905

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 June 2020