OmniFind Text Search Server for DB2 for i (5733-OMF) is a no additional charge licensed product that was first released in IBM i 6.1. This product allows users to perform full text search on text DB2 columns using the CONTAINS and SCORE SQL built in functions. For example, if the search is for "the cat chased a mouse", the search would also find documents that contain the phrase "the cats were chasing some mice". In IBM i 7.1 the product added support for searching system objects not associated with a DB2 column, such as spooled files or IFS stream files. In the latest round of improvements, new stored procedures have been added to check the health of text search indexes and servers. This article covers those enhancements. You can get a general background for the OmniFind Text Search Server from the white paper included in the additional resources section of this article.
The OmniFind Text Search Server for DB2 for i health checker support provides a set of stored procedures that can be used to diagnose configuration problems with a text search server or index. These health checker stored procedures will verify if the text search servers or indexes are correctly functioning and return a report highlighting any problems that are detected.
The IBM OmniFind Text Search Server product itself also provides stored procedures for
the most common administrative functions, which makes it very easy for users to create
and maintain indexes. For example, the SYSPROC.SYSTS_CREATE() procedure can be called to create an index and
the SYSPROC.SYSTS_UPDATE() procedure can be used to update an index. However, sometimes these administrative stored procedures calls fail with errors such as:
- Unable to create an index due to limited authorities
- Failure to start a text server because no Java J2SE is installed
- The text search index doesn't include the latest data changes due to the automatic update scheduler has not started
- The search of an index not functioning properly because the text search server was shut down by mistake
In these cases, the health checker procedures can be used to diagnose the problems with
your IBM OmniFind installation. The stored procedure, SYSPROC.SYSTS_HC_USR_AUTH(), can be used to check if a user has
necessary authorities to create an index. The SYSPROC.SYSTS_HC_GENERAL() procedure can be used to verify that all of the required software is installed. The SYSPROC.SYSTS_HC_IDX() procedure can be used to determine if there are any problems with an index configuration and the SYSPROC.SYSTS_HC_SVR() procedure can be used to analyze if a text search server is functioning correctly. All of these health checker procedures report warnings and errors by returning a stored procedure result set. The contents of this result set can be used by users to identify and fix the problem or provide detailed information to IBM Support personnel for advanced diagnosis.
This new OmniFind health checker support is delivered with PTF SI44462 in IBM i 7.1. The health checker support requires the IBM Application Runtime Expert (ARE) for i product, which is part of IBM i OS (5770-SS1) in IBM i 7.1. Visit the IBM ARE Support website for information on the required software and fixes for installing the ARE product.
The DB2 stored procedure SYSPROC.SYSTS_HC_USR_AUTH() is used to report problems with the authorities of the invoking user. A result set is returned from this stored procedure.
If the parameter INFO_TYPE is omitted, SYSPROC.SYSTS_HC_AUTH() returns warning and error messages if there are any.
The stored procedure checks the following common problems:
*EXECUTEpermission on administrative stored procedures- User permission on administrative catalogs
- Job control special authority (for starting servers)
- Other required authorities
>>SYSTS_HC_USER_AUTH(------------)-----------------><
-----INFO_TYPE--- |
The schema qualifier is SYSPROC.
Specifies the information type to be returned. The data type of the parameter is CHAR(1), valid values are:
- 'I' – returns "Info" messages only
- 'W' – returns "Warning" messages only
- 'E' – returns "Error" messages only
- 'X' – returns "Warning" and "Error" messages
- 'A' – returns all messages
A result set is returned from the stored procedure. The result set is composed of the following columns:
TYPE– CHAR(1), the type of the message, i.e., 'I', 'W', or 'E'. The message types represents:- 'I' – Information message, it is not a warning or error
- 'W' – Warning message, if not corrected, it may cause problems
- 'E' – Error message, indicates an error is found. The error needs to be corrected for OmniFind to work correctly
CODE– INTEGER, the Info, Warning or Error code of the message. Code ranges are:- 100-299: information messages
- 300-499: warning messages
- 500-999: error messages
ITEM– VARCHAR(128), the specific item checked, e.g. SYSPROC.SYSTS_START() or QSYS2.SYSTEXTSERVERS.MESSAGE– VARCHAR(512), the detailed Info, Warning or Error message.
To return all health checking results for the authorities of the invoking user:
CALL SYSPROC.SYSTS_HC_USR_AUTH('A')
|
Sample output is like this:
| TYPE | CODE | ITEM | MESSAGE |
|---|---|---|---|
I
|
104
|
SYSTS_START()
|
EXECUTE permission on SYSTS_START() is granted.
|
I
|
104
|
SYSTS_START
|
EXECUTE permission on SYSTS_START is granted.
|
I
|
104
|
SYSTS_STOP()
|
EXECUTE permission on SYSTS_STOP() is granted.
|
I
|
104
|
SYSTS_STOP
|
EXECUTE permission on SYSTS_STOP is granted.
|
I
|
104
|
SYSTS_CREATE
|
EXECUTE permission on SYSTS_CREATE is granted.
|
I
|
104
|
SYSTS_UPDATE
|
EXECUTE permission on SYSTS_UPDATE is granted.
|
I
|
104
|
SYSTS_DROP
|
EXECUTE permission on SYSTS_DROP is granted.
|
I
|
104
|
SYSTS_ALTER
|
EXECUTE permission on SYSTS_ALTER is granted.
|
I
|
104
|
SYSTS_REMOVE
|
EXECUTE permission on SYSTS_REMOVE is granted.
|
I
|
202
|
SYSTEXTDEFAULTS
|
Authority list on table SYSTEXTDEFAULTS is (Read: true, Add: true, Update: true, Delete: true, Execute: true).
|
I
|
202
|
SYSTEXTSERVERS
|
Authority list on table SYSTEXTSERVERS is (Read: true, Add: true, Update: true, Delete: true, Execute: true).
|
I
|
202
|
SYSTEXTINDEXES
|
Authority list on table SYSTEXTINDEXES is (Read: true, Add: true, Update: true, Delete: true, Execute: true).
|
I
|
202
|
SYSTEXTCOLUMNS
|
Authority list on table SYSTEXTCOLUMNS is (Read: true, Add: true, Update: true, Delete: true, Execute: true).
|
I
|
202
|
SYSTEXTCONFIGURATION
|
Authority list on table SYSTEXTCONFIGURATION is (Read: true, Add: true, Update: true, Delete: true, Execute: true).
|
I
|
202
|
SYSTEXTSERVERHISTORY
|
Authority list on table SYSTEXTSERVERHISTORY is (Read: true, Add: true, Update: true, Delete: true, Execute: true).
|
I
|
205
|
*JOBCTL
|
"*JOBCTL" authority is granted.
|
To return the warning and error checking results for the authorities of the invoking user:
CALL SYSPROC.SYSTS_HC_USR_AUTH() |
Checking General Configurations
The DB2 stored procedure SYSPROC.SYSTS_HC_GENERAL() is used to check the general health of the OmniFind Text Search Server for DB2 for i product. The procedure checks the configuration of the product.
A result set is returned when the stored procedure has successfully completed. The result set reports issues with the product install or configuration that may need to be addressed by an administrator.
The following items are checked by this stored procedure:
- The installation of required LPPs (ICU, Java, QSH and etc.)
- PTFs that applied in the system
- The OmniFind administrative stored procedures
- The configuration of varyon and varyoff programs for Independent Auxiliary Storage Pools (iASP)
- Administrative catalogs
- OmniFind default values in QSYS2.SYSTEXTDEFAULTS
>>SYSTS_HC_GENERAL(-------------- )--------------------->< ---INFO_TYPE----- ---INFO_TYPE, AUTO_FIX----- |
The schema qualifier is SYSPROC.
INFO_TYPE
Specifies the information type to be returned, see INFO_TYPE in SYSTS_HC_AUTH().
Reserved for future use only, type SMALLINT. Currently the value is required to be 0. The server will not automatically perform fixes.
If parameter list is null, all warning and error messages are returned.
A result set is returned from the stored procedure. The result set is composed of the following columns:
TYPE– CHAR(1), the type of the message, see TYPE inSYSTS_HC_AUTH().CODE– INTEGER, the Info, see CODE inSYSTS_HC_AUTH().ITEM– VARCHAR(128), the specific item checked. For example: SYSPROC.SYSTS_START() or QSYS2.SYSTEXTSERVERS.MESSAGE– VARCHAR(512), the detailed Info, Warning or Error message.
To take the general health checking and return all messages:
CALL SYSPROC.SYSTS_HC_GENERAL('A', 0)
|
Sample output is like this:
| TYPE | CODE | ITEM | MESSAGE |
|---|---|---|---|
I
|
106
|
QShell
|
LPP QShell is installed.
|
I
|
106
|
IBM i Portable Application Solutions Environment (IBM i PASE
|
LPP IBM i Portable Application Solutions Environment (IBM i PASE) is installed.
|
I
|
106
|
International Components for Unicode
|
LPP International Components for Unicode is installed.
|
I
|
203
|
J2SE 5.0 32 bit, 5770JV1, Option 8
|
LPP J2SE 5.0 32 bit, 5770JV1, Option 8 not installed.
|
I
|
203
|
J2SE 5.0 64 bit, 5770JV1, Option 9
|
LPP J2SE 5.0 64 bit, 5770JV1, Option 9 not installed.
|
I
|
203
|
J2SE 6.0 32 bit, 5770JV1, Option 11
|
LPP J2SE 6.0 32 bit, 5770JV1, Option 11 not installed.
|
I
|
203
|
J2SE 6.0 64 bit, 5770JV1, Option 12
|
LPP J2SE 6.0 64 bit, 5770JV1, Option 12 not installed.
|
I
|
106
|
J2SE 5.0 32 bit, 5761JV1, Option 8
|
LPP J2SE 5.0 32 bit, 5761JV1, Option 8 is installed.
|
I
|
106
|
J2SE 5.0 64 bit, 5761JV1, Option 9
|
LPP J2SE 5.0 64 bit, 5761JV1, Option 9 is installed.
|
I
|
106
|
J2SE 6.0 32 bit, 5761JV1, Option 11
|
LPP J2SE 6.0 32 bit, 5761JV1, Option 11 is installed.
|
I
|
106
|
J2SE 6.0 64 bit, 5761JV1, Option 12
|
LPP J2SE 6.0 64 bit, 5761JV1, Option 12 is installed.
|
I
|
107
|
SYSTS_ALTER
|
Stored procedure SYSTS_ALTER exists.
|
I
|
107
|
SYSTS_CREATE
|
Stored procedure SYSTS_CREATE exists.
|
I
|
107
|
SYSTS_DROP
|
Stored procedure SYSTS_DROP exists.
|
I
|
107
|
SYSTS_REMOVE
|
Stored procedure SYSTS_REMOVE exists.
|
I
|
107
|
SYSTS_REPRIMEINDEX
|
Stored procedure SYSTS_REPRIMEINDEX exists.
|
I
|
107
|
SYSTS_START
|
Stored procedure SYSTS_START exists.
|
I
|
107
|
SYSTS_STOP
|
Stored procedure SYSTS_STOP exists.
|
I
|
107
|
SYSTS_UPDATE
|
Stored procedure SYSTS_UPDATE exists.
|
I
|
107
|
SYSTS_VALIDITYCHECK
|
Stored procedure SYSTS_VALIDITYCHECK exists.
|
I
|
204
|
SYSTS_START()
|
External PGM for stored procedure SYSTS_START() exists.
|
I
|
204
|
SYSTS_START
|
External PGM for stored procedure SYSTS_START exists.
|
I
|
204
|
SYSTS_STOP()
|
External PGM for stored procedure SYSTS_STOP() exists.
|
I
|
204
|
SYSTS_STOP
|
External PGM for stored procedure SYSTS_STOP exists.
|
I
|
204
|
SYSTS_CREATE
|
External PGM for stored procedure SYSTS_CREATE exists.
|
I
|
204
|
SYSTS_UPDATE
|
External PGM for stored procedure SYSTS_UPDATE exists.
|
I
|
204
|
SYSTS_DROP
|
External PGM for stored procedure SYSTS_DROP exists.
|
I
|
204
|
SYSTS_ALTER
|
External PGM for stored procedure SYSTS_ALTER exists.
|
I
|
204
|
SYSTS_REMOVE
|
External PGM for stored procedure SYSTS_REMOVE exists.
|
E
|
554
|
QDBTS_LISTINXSTS
|
User defined function QDBTS_LISTINXSTS is not installed.
|
I
|
109
|
QDBTSVRYON
|
Vary Program QDBTSVRYON registered.
|
I
|
109
|
QDBTSVRYOF
|
Vary Program QDBTSVRYOF registered.
|
I
|
110
|
CCSID
|
OmniFind System default value CCSID: Value = 1208, Type = 1.
|
I
|
111
|
CCSID
|
OmniFind system default value CCSID exists.
|
I
|
110
|
LANGUAGE
|
OmniFind System default value LANGUAGE: Value = en_US, Type = 1.
|
I
|
111
|
LANGUAGE
|
OmniFind system default value LANGUAGE exists.
|
I
|
110
|
FORMAT
|
OmniFind System default value FORMAT: Value = TEXT, Type = 1.
|
I
|
111
|
FORMAT
|
OmniFind system default value FORMAT exists.
|
I
|
110
|
UPDATEFREQUENCY
|
OmniFind System default value UPDATEFREQUENCY: Value = NONE, Type = 1.
|
I
|
111
|
UPDATEFREQUENCY
|
OmniFind system default value UPDATEFREQUENCY exists.
|
I
|
110
|
UPDATEMINIMUM
|
OmniFind System default value UPDATEMINIMUM: Value = 1, Type = 1.
|
I
|
111
|
UPDATEMINIMUM
|
OmniFind system default value UPDATEMINIMUM exists.
|
I
|
110
|
MINIMUMUPDATEINTERVAL
|
OmniFind System default value MINIMUMUPDATEINTERVAL: Value = 5, Type = 0.
|
I
|
111
|
MINIMUMUPDATEINTERVAL
|
OmniFind system default value MINIMUMUPDATEINTERVAL exists.
|
I
|
110
|
USEREXITTHREADS
|
OmniFind System default value USEREXITTHREADS: Value = 0, Type = 1.
|
I
|
111
|
USEREXITTHREADS
|
OmniFind system default value USEREXITTHREADS exists.
|
I
|
110
|
IGNOREEMPTYDOCS
|
OmniFind System default value IGNOREEMPTYDOCS: Value = 1, Type = 1.
|
I
|
111
|
IGNOREEMPTYDOCS
|
OmniFind system default value IGNOREEMPTYDOCS exists.
|
I
|
110
|
UPDATEAUTOCOMMIT
|
OmniFind System default value UPDATEAUTOCOMMIT: Value = 100, Type = 1.
|
I
|
111
|
UPDATEAUTOCOMMIT
|
OmniFind system default value UPDATEAUTOCOMMIT exists.
|
I
|
110
|
CJKSEGMENTATION
|
OmniFind System default value CJKSEGMENTATION: Value = NGRAM, Type = 1
|
I
|
111
|
CJKSEGMENTATION
|
OmniFind system default value CJKSEGMENTATION exists.
|
I
|
113
|
SYSTEXTDEFAULTSU1
|
Constraint SYSTEXTDEFAULTSU1 is ok
|
I
|
112
|
SYSTEXTDEFAULTS
|
Table SYSTEXTDEFAULTS is journaled.
|
I
|
113
|
SYSTEXTSERVERSP
|
Constraint SYSTEXTSERVERSP is ok
|
I
|
113
|
SYSTEXTSERVERSU1
|
Constraint SYSTEXTSERVERSU1 is ok
|
I
|
113
|
SYSTEXTSERVERAL
|
Constraint SYSTEXTSERVERAL is ok
|
I
|
112
|
SYSTEXTSERVERS
|
Table SYSTEXTSERVERS is journaled.
|
I
|
113
|
SYSTEXTINDEXESP
|
Constraint SYSTEXTINDEXESP is ok
|
I
|
113
|
SYSTEXTINDEXESU1
|
Constraint SYSTEXTINDEXESU1 is ok
|
I
|
113
|
SYSTEXTINDEXEF1
|
Constraint SYSTEXTINDEXEF1 is ok
|
I
|
113
|
SYSTEXTINDEXEF2
|
Constraint SYSTEXTINDEXEF2 is ok
|
I
|
112
|
SYSTEXTINDEXES
|
Table: SYSTEXTINDEXES is journaled.
|
I
|
113
|
SYSTEXTCOLUMNSP
|
Constraint SYSTEXTCOLUMNSP is ok
|
I
|
113
|
SYSTEXTCOLUMNSF1
|
Constraint SYSTEXTCOLUMNSF1 is ok
|
I
|
112
|
SYSTEXTCOLUMNS
|
Table: SYSTEXTCOLUMNS is journaled.
|
I
|
113
|
SYSTEXTCONFIGURATION
|
Constraint SYSTEXTCONFIGURATION is ok
|
I
|
113
|
SYSTEXTCONFIGURATIONF0
|
Constraint SYSTEXTCONFIGURATIONF0 is ok
|
I
|
112
|
SYSTEXTCONFIGURATION
|
Table: SYSTEXTCONFIGURATION is journaled.
|
I
|
113
|
SYSTEXTSERVERHISTORYU1
|
Constraint SYSTEXTSERVERHISTORYU1 is ok
|
I
|
112
|
SYSTEXTSERVERHISTORY
|
Table: SYSTEXTSERVERHISTORY is journaled.
|
To return all warning and error messages:
CALL SYSPROC.SYSTS_HC_GENERAL() |
The DB2 stored procedure SYSPROC.SYSTS_HC_IDX() is used to check a particular text index or all indexes in the current Independent Auxiliary Storage Pool (IASP) group, depending on the parameters given. If a qualified index name is given, the health checking report applies to the particular index; otherwise, all text indexes in the IASP group will be checked. A result set is returned when the stored procedure is successfully completed. The stored procedure SYSPROC.SYSTS_HC_IDX_SN() performs the same function but accepts index schema and index name as its parameters.
A list of the items checked by this procedure are:
- The base table for the index exists
- The index, column and configuration items are correct in catalogs
SYSTEXTINDEXES,SYSTEXTCOLUMNSandSYSTEXTCONFIGURATION - Records in
SYSTEXTSERVERHISTORYare valid - The collection directory of the index exists, if the index is defined in a local server
- The view for the index exists
- The server associated with the index is active
- The update scheduler is configured correctly
- The insert, update and delete triggers exist on the based table for the index
- The staging table for the index exists
- The owner of the triggers, staging table and index view are consistent
- The authorities of the index owner on the base table and administrative catalogs are correct
- The authority of the index owner includes the ability to modify the job scheduler entry used for the scheduled update
- The index owner has he special authority
*JOBCTL..
>>-SYSTS_HC_IDX(-------------- )------------------------>< ---INDEXSCHEMA, INDEXNAME, INFO_TYPE, AUTO_FIX ---INDEXSCHEMA, INDEXNAME, INFO_TYPE ---INFO_TYPE, AUTO_FIX ---INFO_TYPE >>SYSTS_HC_IDX_SN(INDEXSCHEMA,INDEXNAME)--------------->< |
The schema qualifier is SYSPROC.
INFO_TYPE
Specifies the information type to be returned. See INFO_TYPE in SYSTS_HC_AUTH().
AUTO_FIX
Reserved for future use only. See AUTOFIX in SYSTS_HC_GENERAL().
INDEXSCHEMA
Specifies the schema of the index to be checked. The type of the parameter is VARCHAR(128) and CCSID 1208. The value must be a valid SQL name. The index schema parameter is case sensitive and will not be folded to upper case automatically.
INDEXNAME
Specifies the name of the index to be checked. The type of the parameter VARCHAR(128) and CCSID 1208. The value must be a valid SQL name. The index name is case sensitive and will not be folded to upper case automatically.
If parameter list is empty, health checking is applied to all existing indexes, warning and error messages are returned and no auto fixing is applied.
A result set is returned from the stored procedure. The result set is composed of following columns:
- ID – INTEGER, the index ID.
- TYPE – CHAR(1), the type of the message, see TYPE in
SYSTS_HC_AUTH(). - CODE – INTEGER, the Info, see CODE in
SYSTS_HC_AUTH(). - ITEM – VARCHAR(128), the specific item checked, e.g. the staging table, the view for the index.
- MESSAGE – VARCHAR(512), the detailed Info, Warning or Error message.
To check the index TESTSCHEMA.TESTINDEX, returning all messages, no auto fix applied:
CALL SYSPROC.SYSTS_HC_IDX('TESTSCHEMA', 'TESTINDEX', 'A', 0)
|
Sample output is like this:
| ID | TYPE | CODE | ITEM | MESSAGE |
|---|---|---|---|---|
10,608
|
I
|
128
|
-
|
The column entry for the index exists.
|
10,608
|
I
|
129
|
-
|
The config entry for the index exists.
|
10,608
|
I
|
130
|
-
|
The history entry for the index exists.
|
10,608
|
I
|
131
|
-
|
The base table of the index exists.
|
10,608
|
I
|
206
|
-
|
Unique or primary key constraint exists in the based table.
|
10,608
|
I
|
121
|
-
|
Server is active.
|
10,608
|
I
|
117
|
-
|
Server path is valid.
|
10,608
|
W
|
316
|
-
|
Automatic update for the index is not started.
|
10,608
|
I
|
123
|
INSERT
|
The INSERT trigger exists.
|
10,608
|
I
|
124
|
INSERT
|
The INSERT trigger is enabled.
|
10,608
|
I
|
123
|
UPDATE
|
The UPDATE trigger exists.
|
10,608
|
I
|
124
|
UPDATE
|
The UPDATE trigger is enabled.
|
10,608
|
I
|
123
|
DELETE
|
The DELETE trigger exists.
|
10,608
|
I
|
124
|
DELETE
|
The DELETE trigger is enabled.
|
10,608
|
I
|
132
|
-
|
The staging table of the index exists
|
10,608
|
I
|
112
|
staging table
|
Table: staging table is journaled.
|
10,608
|
I
|
133
|
-
|
The view for the index exists.
|
10,608
|
I
|
126
|
-
|
The owners are consistent.
|
10,608
|
I
|
126
|
-
|
The owners are consistent.
|
10,608
|
I
|
126
|
-
|
The owners are consistent.
|
10,608
|
I
|
127
|
Job Scheduler
|
The user has the permission on Job Scheduler Entry.
|
10,608
|
I
|
127
|
the base table
|
The user has the permission on the base table.
|
10,608
|
I
|
127
|
SYSTEXTDEFAULTS
|
The user has the permission on SYSTEXTDEFAULTS.
|
10,608
|
I
|
127
|
SYSTEXTSERVERS
|
The user has the permission on SYSTEXTSERVERS.
|
10,608
|
I
|
127
|
SYSTEXTINDEXES
|
The user has the permission on SYSTEXTINDEXES.
|
10,608
|
I
|
127
|
SYSTEXTCOLUMNS
|
The user has the permission on SYSTEXTCOLUMNS.
|
10,608
|
I
|
127
|
SYSTEXTCONFIGURATION
|
The user has the permission on SYSTEXTCONFIGURATION.
|
10,608
|
I
|
127
|
SYSTEXTSERVERHISTORY
|
The user has the permission on SYSTEXTSERVERHISTORY.
|
10,608
|
I
|
205
|
*JOBCTL
|
"*OBJCTL" authority is granted.
|
To check the index TESTSCHEMA.TESTINDEX, returning only error messages:
CALL SYSPROC.SYSTS_HC_IDX('TESTSCHEMA', 'TESTINDEX', 'E')
|
To check all indexes and return warning and error messages:
CALL SYSPROC.SYSTS_HC_IDX() |
The DB2 stored procedure SYSTS_HC_SVR() is used to check the health of a specific local text server, or all local servers that have been configured. If a server ID is specified, the procedure checks only that text server, otherwise it checks all servers configured for the current Independent Auxiliary Storage Pool (IASP) group. A result set is returned from the stored procedure. The procedures SYSPROC.SYSTS_HC_SVR_T() and SYSPROC.SYSTS_HC_SVR_IT() perform the same function but accept different parameters for qualifying which servers are checked and what information is returned.
The stored procedure checks the following items for text servers:
- Authentication token is valid
- IP address is valid
- Server path is valid
- Server port is valid
For each active local server, additional checks are done to verify that the required server jobs are running and the server port can be contacted.
>>SYSTS_HC_SVR(---------------)----------------------->< ----SERVERID, INFO_TYPE, AUTO_FIX ---- ----SERVERID---- ----INFO_TYPE, AUTO_FIX---- >>SYSTS_HC_SVR_IT(SERVERID,INFO_TYPE)-------------------->< >>SYSTS_HC_SVR_T(INFO_TYPE)---------------------------->< |
The schema qualifier is SYSPROC.
SERVERID
Specifies the identifier of the text server to be checked. The server identifier for a specific server can be obtained by using the IBM Systems Director Navigator for i. Using Director Navigator to obtain server information and status is discussed in the InfoCenter.
This information can also be obtained from the system catalogs with an SQL query like this:
SELECT SERVERID, SERVERNAME, SERVERPATH, ALIASNAME FROM QSYS2.SYSTEXTSERVERS; |
Specifies the information type to be returned, see INFO_TYPE in SYSTS_HC_AUTH().
AUTO_FIX
Reserved for future use only, see AUTO_FIX in SYSTS_HC_GENERAL().
A result set is returned when the successful complete of the stored procedure. The result set is composed of following columns:
- ID – INTEGER, the server ID.
- TYPE – CHAR(1), the type of the message, see
TYPEinSYSTS_HC_AUTH(). - CODE – INTEGER, the Info, Warning or Error code of the message, see CODE in
SYSTS_HC_AUTH(). - ITEM – VARCHAR(128), the specific item checked, generally not used in server checking since the
MESSAGEgives very clear information. - MESSAGE – VARCHAR(512), the detailed Info, Warning or Error message.
To check the server with id 50 and return all messages:
CALL SYSPROC.SYSTS_HC_SRV(50, 'A', 0) |
Sample output is like this:
| ID | TYPE | CODE | ITEM | MESSAGE |
|---|---|---|---|---|
50
|
I
|
117
|
-
|
Server path is valid.
|
50
|
I
|
116
|
-
|
Server token is valid.
|
50
|
I
|
118
|
-
|
Server name is valid.
|
50
|
I
|
119
|
-
|
Server port is valid.
|
50
|
I
|
114
|
-
|
Server jobs are ok.
|
50
|
I
|
115
|
-
|
Stellent jobs are ok.
|
50
|
I
|
120
|
-
|
Server is connectable.
|
To check server with id 50 and return warning and error messages.
CALL SYSPROC.SYSTS_HC_SRV(50) |
The OmniFind health checker provides a set of DB2 stored procedures that can be invoked by users for checking general configurations, text servers and indexes. It can be used to return warning and/or error messages if there are any problems with the OmniFind Text Search Server for i. The information can then be used to understand the cause of a difficult problem quickly and take appropriate corrective action.


