DB2 Version 9.7 for Linux, UNIX, and Windows

SYSTS_ENABLE procedure - Enable current database for text search

This procedure enables DB2® Text Search for the current database.

This procedure must be issued successfully before text search indexes on columns in tables within the database can be created.

This procedure issues the ENABLE DATABASE FOR TEXT text search administration command on the database server.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-SYSTS_ENABLE--(--message_locale--,--message--)--------------><

The schema is SYSPROC.

Procedure parameters

message_locale
An input argument of type VARCHAR(33) that specifies the locale to be used for any error message returned. If the argument is null or an empty string, or the message files for the specified locale are not available on the server, 'en_US' is used.
message
An output argument of type VARCHAR(32K) that specifies a warning or informational message for a successfully completed operation.

Authorization

The user must have DBADM privilege to execute the ENABLE DATABASE command.

Examples

Example 1: Enable the database for text search and return any error messages in English.

  CALL SYSPROC.SYSTS_ENABLE('en_US', ?)
The following example is a sample output for this query.
  Value of output parameters
  --------------------------
  Parameter Name  : MESSAGE
  Parameter Value : Operation completed successfully.

  Return Status = 0

Example 2: In the following example, SYSTS_ENABLE is called on a database that is already enabled for text search. This results in an error message to the caller.

  CALL SYSPROC.SYSTS_ENABLE('en_US', ?)
The following example is a sample output for this query.
  SQL20427N An error occurred during a text search administration 
  procedure or command. The error message from the text search 
  product is "CIE00322 Specified or default database already 
  enabled for text. ". SQLSTATE 38H14

Usage notes