Server alias name

You can use a server alias name to assign a meaningful name to a server.

Each text search server is uniquely identified by column SERVERID in catalog QSYS2.SYSTEXTSERVERS. The SERVERID column is an incrementally generated integer by database.

The ALIASNAME column in QSYS2.SYSTEXTSERVERS is provided to allow a meaningful alias name to be assigned to each server. Server alias names can be used to refer to servers in SYSTS_START, SYSTS_STOP and SYSTS_CREATE , SYSTS_SHUTDOWN and SYSTS_CLEAR_INDEXES procedures.

Note: Server alias name can be changed directly in the QSYS2.SYSTEXTSERVERS catalog table by updating the ALIASNAME value.

Assign server number 1 an alias name of "PRIMARY_LOCAL_SERVER".

UPDATE QSYS2.SYSTEXTSERVERS 
SET ALIASNAME = 'PRIMARY_LOCAL_SERVER' 
WHERE SERVERID = 1

To remove an alias name from a server, set the column to NULL.

Remove an alias name from server number 1.

UPDATE QSYS2.SYSTEXTSERVERS 
SET ALIASNAME = NULL 
WHERE SERVERID = 1