Display information about transaction locks
The output of the onstat -k command contains details on the locks that a transaction holds.
To find the relevant locks, match the address in the userthread column in onstat -x output to the address in the owner column of onstat -k output.
onstat
-k and onstat -x output shows sample
output from onstat -x and the corresponding onstat
-k command. The
a335898
value in the userthread column
in the onstat -x output matches the value
in the owner column of the two lines of onstat -k output.
In the example in onstat
-k and onstat -x output,
a user is selecting a row from two tables. The user holds the following
locks:
- A shared lock on one database
- A shared lock on another database