Neoview Command Interface (NCI) Guide (R2.5)
SRVRIDLETIMEOUT timeout-value
is the number of minutes an NDCS server waits in the available state for a connection before
it stops itself when the count of NDCS servers exceeds the AVAILSERVER count for the
data source. The default value is SYSTEM_DEFAULT, which is defined by NDCS (10 minutes).
Other valid values are "-1" for no timeout and an integer of one to a large number for
"num-minutes". Double quotes are required around a value of -1 or num-minutes; double
quotes are optional around SYSTEM_DEFAULT.
CONNTIMEOUT timeout-value
is the number of minutes a client-server connection remains idle before the NDCS server
terminates the connection and becomes available. The default value is SYSTEM_DEFAULT,
which is defined by NDCS (10 minutes). Other valid values are "-1" for no timeout and an
integer of one to a large number for "num-minutes". Double quotes are required around
a value of -1 or num-minutes; double quotes are optional around SYSTEM_DEFAULT.
Considerations
• To run this command in SQL mode, you must first run the CMDOPEN command. This
command does not run in CS mode.
• The command requires an SQL terminator.
• Only users associated with roles that have OPERATOR privileges can execute this command.
For more information, see the “ADD USER Command” (page 158) or “ALTER USER
Command” (page 167).
• The wild card (*) is not supported for the data source name, and the data source name is
case-sensitive.
• Parameters are optional and have default values.
• NDCS services see the data source as soon as it is created. After creation, the data source
has no EVARs defined. To define environment variables for the data source, see the “ADD
EVAR Command” (page 156).
• The data source is created in the stopped state and must be explicitly started on one or more
NDCS services. See the “START DS Command” (page 176). If you want the data source to
start automatically when its NDCS service is started, set the AUTOSTART option to ON in
the “ALTER DS Command” (page 159).
• An error while running the ADD DS command causes the data source to be removed
completely.
Example
This command creates the data source DDLTestDS:
SQL>add ds DDLTestDS, maxserver 10, availserver 2, initserver 2,
+>srvridletimeout "15", conntimeout system_default;
ADD EVAR Command
The ADD EVAR command adds an environment variable (EVAR) for the specified data source.
An environment variable defines a specific aspect of the NDCS server environment for the data
source. A set of environment variables defined for a data source affect operations after the client
has connected to the NDCS server. There are several types of environment variables, each with
a different syntax.
Syntax
ADD EVAR type, DSNAME data-source-name, VALUE "string"
type is:
0 | 1 | 2
156 Connectivity Commands