Lock Administration and Monitoring with the Console 
As an alternative to the Visual Administrator, you can also manage the Locking Service using shell commands.
Connect a Telnet client to AS Java as described in Connecting and Working with Telnet, and use the JUMP command to establish a connection to a server process.
Enter man in the command line of the Telnet console. This displays all the shell command groups and the associated commands that are available to the shell environment.
To add the LOCKING shell command group to the environment, enter add locking.
Enter man again to display the list of commands available to the LOCKING group. They are the following:
Command |
Description |
Input Parameters |
|---|---|---|
SHOW_LOCKS |
Display all locks. |
name, argument, user or none of the above |
ADD_LOCK |
Set new lock. |
owner, lock mode, lock name, lock argument (all required) |
REMOVE_LOCK |
Remove lock. |
owner, lock mode, lock name, lock argument (all required) |
REMOVE_ALL_LOCKS |
Remove all of an owner's locks. |
owner |
REMOVE_LOCK_COMPLETELY |
Remove lock completely, i.e. set cumulative counter to 0. |
owner, lock mode, lock name, lock argument (all required) |
RESET_LOCKING_STAT |
Reset locking statistics (delete existing statistics data) Only for SAP Support! |
none |
SHOW_LOCKING_STAT |
Display locking statistics. Only for SAP Support! |
none or -d or -detail: for more detailed statistics |
GEN_UNIQUE_NUMBER |
Display a system-wide unique increasing number Only for SAP Support! |
none |
RUN_LOCKING_TESTS |
Run locking tests. Only for SAP Support! |
-d or -detail: Display detailed results -nf or –nofunctional: Do not run the functional tests -nl or –noload: Do not run the load tests |
Note
You get a short description for each command by entering <command> -help.
You can also access all these functions in the Visual Administrator. They are described in Managing Locks. The lock operations ADD_LOCK and REMOVE_ * are described in Creating and Releasing Locks.
You can find information on owners, cumulation, and other concepts in the following documentation: SAP Lock Concept