DB2 Version 9.7 for Linux, UNIX, and Windows

CONTROL command

Lists and deletes full-text index locks managed by the Net Search Extender Instance Services.

Purpose

If the locking and update services are running, you can view their status as well as information on the activated cache.

In a partitioned database environment this only affects the current partition. The user is responsible for invoking the DB2® command db2_all for the desired partitions.

Authorization

To issue the command successfully, the user must be the DB2 instance owner with DBADM and DATAACCESS authority.

Required connection

This command must be issued from the DB2 database server.

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-CONTROL--+-CLEAR--|set-of-locks|------------------------+---><
            +-LIST--|set-of-locks|-------------------------+   
            +-SHOW-CACHE-STATUS-FOR--|index-specification|-+   
            '-STATUS---------------------------------------'   

set-of-locks

|--ALL-LOCKS-FOR--+-|database-specification|-+------------------|
                  '-|index-specification|----'   

index-specification

|--|database-specification|--INDEX------------------------------>

>--+------------------+--index-name-----------------------------|
   '-index-schema-"."-'               

Database-specification

|--DATABASE--database-name--------------------------------------|

Command parameters

CLEAR
Use CLEAR to force a cleanup for a set of locks. Use this command carefully after checking what leads to a locking problem.

Do not use the CLEAR command if any index administration commands, like an index update, are still active on the index you apply it to, because this could corrupt your index, requiring a complete rebuild.

LIST
Use LIST to get information about the current locks held for a specific index or database. If there is an update lock, the command also prints information about the number of documents that have been processed so far.

Note this is only for the time that the lock is holding the index.

When using a replication capture table, there are no update operations. Instead, insert operations can be either from an insert or an update operation on the source table the index was created on.

set-of-locks
Works with locks only in the specified database or index.
SHOW CACHE STATUS FOR
Shows the activation status for a cached table of the specified index. This can be either: "Not Activated" or "Currently Activated". If the cache is activated, it displays details about cache memory usage. For example, the maximum cache size (in megabytes), the maximum number of documents to insert, and the space left in the cache table (in kilobytes).
STATUS
By using the STATUS keyword, the command displays whether the locking and update Net Search Extender Instance Services are up and running.
DATABASE database-name
The name of the database on the server that is being used.
INDEX index-schema.index-name
The schema and name of the text index that is currently being used. This is specified in the CREATE INDEX command.

Usage notes

When an administration command error message indicates that there is a locking problem, ensure that no conflicting task is running. For example, attempting an ALTER command while an UPDATE command is running.

Use SHOW CACHE STATUS FOR for an incremental index update to check that the specified memory size is still large enough to hold all the update information during the next update, or to check if an activation has been done.