IBM Support

IT06905: 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 fixed if next.

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:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * See SYSROUTE APARs to see where this APAR is addressed       *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT06905

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-02-02

  • Closed date

    2017-05-08

  • Last modified date

    2017-05-08

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

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

    IT15265

Fix information

Applicable component levels

  • RA50 PSN

       UP

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

Document Information

Modified date:
08 May 2017