db2ts CLEANUP FOR TEXT command

Cleans up Db2® Text Search collections within an instance or within a database. When a cleanup operation is executed for a database, invalid text indexes and their associated collections are dropped. When a cleanup operation is executed for the instance, obsolete collections are removed. A collection can become obsolete if a database containing text search indexes is dropped before Db2 Text Search has been disabled for the database.
Note: While the commands operate on text search indexes, text search server tools operate on text search collections. A text search collection refers to the underlying representation of a text search index. The relationship between a text search index and its associated collections is 1:1 in a non-partitioned setup and 1:n in a partitioned setup, where n is the number of data partitions. Query the SYSIBMTS.TSCOLLECTIONNAMES catalog table to determine the text search collections for a text search index. For additional information, see the topic about Administration Tool for Db2 Text Search.

For execution, the command needs to be prefixed with db2ts at the command line.

Authorization

To issue the command on instance level, you must be the owner of the text search server process. For the integrated text search server, this is the instance owner.

To issue the command on database level, the privileges held by the authorization ID of the statement must include the SYSTS_ADM role and the DBADM authority.

Required connection

This command must be issued from the Db2 database server.

Command syntax

Instance level
Read syntax diagramSkip visual syntax diagramCLEANUP FOR TEXT
Database level
Read syntax diagramSkip visual syntax diagramCLEANUP FOR TEXT connection-options

Command parameters

None