IBM Books
(C) IBM Corp. 2000

DB2 Net Search Extender Administration and User's Guide


Introducing the db2text commands

Here is an example of a DB2 Net Search Extender command:

db2text ENABLE DATABASE FOR TEXT
Note

The db2text commands, such as db2text ENABLE DATABASE FOR TEXT and db2text CREATE INDEX, are also called commands.

Tip

For every create and index maintenance command, you can specify the database, user, and password.

db2text ... connect TO <database> USER <userID> USING <password>

Note that if you leave out the connect options in the db2text command, the environment variable DB2DBDFT specifies the database.

To display a list of commands, enter the following command:

db2text ?

To display the syntax of an individual command, enter the following command:

db2text ? command

For example, to display the syntax of the CREATE INDEX command, use the following command:

db2text ? CREATE INDEX

db2text returns 0 if the command has been processed successfully, and 1 if the command has not been processed. Note that if there are document errors but the index still updates, the db2text command returns 0.

Note

The system shell interprets special characters such as ?, (, ), *, !, and ". Therefore, if the command contains these characters, use quotation marks or an escape character.

Here is an example of a UNIX command that uses special characters:

db2 "SELECT * FROM sample WHERE CONTAINS (DESCRIPTION, '\"enable\"') = 1"


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]