Display statistics on user sessions
The output of the onstat -u command contains statistics on user sessions.
You can find the session-id of the transaction by matching the address in the userthread column of the onstat -x output with the address column in the onstat -u output. The sessid column of the same line in the onstat -u output provides the session id.
a335898
in the userthread column
of the onstat -x output. The output line in onstat
-u with the same address shows the session id 15
in
the sessid column. For a transaction executing in loosely coupled mode, the first
position of the flags column in theonstat -u output
might display a value of T
. This T
value
indicates
that one branch within a global transaction is waiting for another
branch to complete. This situation could occur if two different branches
in a global transaction, both using the same database, tried to work
on the same global transaction simultaneously.
For a transaction executing in tightly coupled mode, this T
value
does not occur because the database server shares one transaction
structure for all branches that access the same database in the global
transaction. Only one branch is attached and active at one time and
does not wait for locks because the transaction owns all the locks
held by the different branches.