Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Termination of DBAccess Server

To terminate DBAccess Server, start the administration program with the command

/START-SESDBA-ADMINISTRATION

In the same ways as the server, the administration program uses an initialization file (see section "Initialization file (start parameters)") whose name is read from SYSDTA. The default name is SYSDAT.SESDBA.091.INIT. If the default name is to be used, you simply have to press the DUE key or enter an empty line in procedures.

The program then requests a command from SYSDTA. All commands and parameters may also be entered using lowercase characters. The following commands can be used to terminate the server:

CLOSE

DBAccess Server (main task and free server tasks) is terminated. Active server tasks continue to run. Active clients retain their connection; but no more clients can log on.
Administration is still available.
Warning: Before the server can be restarted, the administration program must also be terminated using CLOSE ALL.

CLOSE ALL

DBAccess Server is terminated completely (including the administration program). Even active server tasks are terminated, i.e. open transactions are rolled back. The administration program then terminates.

CLOSE_ALL

This command continues to be supported for reasons of compatibility. It cannot be abbreviated. It has the same effect as CLOSE ALL.

END

The administration program is terminated.

The administration program can be started either interactively, in a procedure or as a batch job. In procedures and batch jobs the command to be executed can be specified in the procedure.

The termination of the server can take a few minutes when the SessionLog=True option is activated because in this case the server tasks which exist write an end message (serially) into the SessionLog. A subsequent restart of the server should take place only when all the server tasks of the preceding run have terminated.

Example of a command sequence in a procedure

(IN)  /ASSIGN-SYSDTA TO-FILE=*SYSCMD
(IN)  /START-SESDBA-ADMINISTRATION
(OUT) Enter Name of INI-file (default is SYSDAT.SESDBA.091.INIT):
(OUT) Enter administration command:
(IN)  CLOSE ALL