dbmode

Set or display database mode

dbmode [-psmn]

Set or display database mode. Enables administrators to switch Lawson into one of three modes: single-user, multi-user, and no-new-user. This ensures that users do not access the system during maintenance tasks, for example, when running Build Dictionary (blddbdict) and Reorganize Database (dbreorg). When anyone executes the dbmode utility, their user ID is reported in ladb.log. Only the user who puts ladb into single-user mode or no-new-user mode can set the mode back to multi-user mode.

Option Description
p Print current database mode.
s Set single-user mode. If you are the only user on the database, you can specify single-user mode. No new users are allowed to access the database.
m Set multiuser mode.
n No new database users are allowed. Prevents any new database user processes from starting. Users with a database process running when this command is issued can continue to access the database.