Locking and Unlocking a Database

Locking a Database

Locking a database prevents further users from logging on, although current users are not affected. Two alternative commands are provided, one entered at the host command prompt and the other entered at TCL in Reality. They are:

These commands are equivalent and interchangeable.

Unlocking a Database

Alternative commands are provided to unlock a database, one issued from the host environment and the other issued from within the Reality database. They are:

These commands are also equivalent and interchangeable.

Example

For example, to lock the database 'dbase1', enter:

lockdbase dbase1

at the host command prompt.

To unlock dbase1 again, you can, either enter:

unlockdbase dbase1

at the host command prompt, or logon to dbase1 under the database owner's user-id, then enter:

ENABLE-LOGONS

at TCL.