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:
-
lockdbase - a non-graphical host command.
-
INHIBIT-LOGONS - a Reality TCL command.
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:
-
unlockdbase - a non-graphical host command.
-
ENABLE-LOGONS - a Reality TCL command.
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.