SETDBSTATEITEM

Defines database settings by number, providing more options than SETDBSTATE.

It is most efficient to load the required database before you run the SETDBSTATE command, then stop and restart the database for the command to take effect.

Note:

When changing sizes, valid size-entry units in ESSCMD are bytes (b), kilobytes (k), metabytes (m), gigabytes (g), or terabytes (t). Example: 8192b, 8k, 1m, ng, nt. If no size unit is given, the default unit is bytes (b).

Syntax

SETDBSTATEITEM [optionNumber] ["appName"] ["dbName"] ["values"]
ParameterDescription

optionNumber

An integer between 0 and 27, inclusive. This number corresponds to the options listed below. Enter 99 to be prompted for all options (in interactive mode).

appName

Name of the application. Omit if the application is already selected using the SELECT command.

dbName

Name of the database; required if appName is specified.

values

Acceptable value or values; these vary from option to option. See Values for Values Parameter

Notes

Values for Values Parameter

Example

The following example enables Committed access and Pre-image access, and specifies indefinite wait time:

SETDBSTATEITEM 18 "JTEMP" "JTEMPDB" "1" "Y" "1";

The following example allocates up to 4 GB on Volume E, sets a maximum file size of 1 GB, and specifies that data files should be stored only on E:

SETDBSTATEITEM 23 "SAMPLE" "BASIC" "1" "E" "4G" "2" "1G"

The following examples set the data cache value to 45000000 bytes. In the first example, the SELECT command was used to select the application and database. In the second example, the application and database are specified in the SETDBSTATEITEM command line instead.

Example 1 (SETDBSTATEITEM)

LOGIN "machinename" "admin" "password";
SELECT "Sample" "Basic";
SETDBSTATEITEM 5 45000000;
LOGOUT;
EXIT;

Example 2 (SETDBSTATEITEM)

LOGIN "machinename" "admin" "password";
SETDBSTATEITEM 5 sample basic 45000000;
LOGOUT;
EXIT;

See Also

  • SELECT