You can execute the functions provided by the Locking Service using shell commands. You can use this method as an alternative to SAP NetWeaver Administrator.
Connect a Telnet client to AS Java as described in Administration Using Telnet and use the JUMP command to get a connection to a server process.
In the command line in the Telnet console, enter man . This displays all the shell commands groups and associated commands that are available to the shell environment.
To add the LOCKING shell commands group to the environment, enter add locking .
Enter man again to display the list of commands available to the LOCKING group. These commands are as follows:
Command |
Description |
Input Parameters |
---|---|---|
SHOW_LOCKS |
Display all locks. |
name, argument, user (none or any combination 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 existing 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 statistic 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 |
ENABLE_LOCKINGSTAT |
Switch on locking statistics. |
none |
DISABLE_LOCKINGSTAT |
Switch off locking statistics. |
none |
ENABLE_SERVER_LOGGING |
Switch on Enqueue logging (SAP Note 125041 ). |
none |
DISABLE_SERVER_LOGGING |
Switch off Enqueue logging (SAP Note 125041 ). |
none |
You get a short description for each command by entering <command> -help .
You can also access some of these functions in SAP NetWeaver Administrator. They are described in Managing Locks . The lock operations ADD_LOCK and REMOVE_ * are described in Creating and Releasing Locks .