Use the -k option to display information about active locks.
IBM Informix Dynamic Server Version 10.00.UC1 -- On-Line -- Up 03:55:17 -- 15360 Kbytes Locks address wtlist owner lklist type tblsnum rowid key#/bsiz a095f78 0 a4d9e68 0 HDR+S 100002 203 0 1 active, 2000 total, 2048 hash buckets, 0 lock table overflows
You can interpret output from this option as follows:
If a user thread is waiting for this lock, the address of the lock appears in the wait field of the onstat -u (users) output.
This address corresponds to the address in the address field of onstat -u (users) output.
The rowid provides the following lock information:
If this field contains 'K-' followed by a value, it is a key lock. The value identifies which index is being locked. For example, K-1 indicates a lock on the first index defined for the table.
The maximum number of locks available is specified as LOCKS in the ONCONFIG file.