Hi Y'all!
We had a long transaction rollback on a test system. Here's the report in the message.log:
01/21/2026 15:42:10 Aborting Long Transaction: tx: 0x1d298fba8 ID: 847 username: reubens uid: 5168
01/21/2026 15:42:10 Rollback For Long Transaction 847 Started.
...
01/21/2026 15:42:11 Rollback For Long Transaction 847 Completed. Rollback Duration: 1 Second
01/21/2026 15:42:11 Long Transaction 847 Aborted. (LSN 3052874:0x7ef36ec)
Had I been monitoring it at the time I might have run onstat -x to grep for the transaction ID. But I would have gotten nothing because that kind of number just ain't on onstat -x.. Here's a sample of onstat -x, filtered for a actual starting address:
onstat -x|awk '$5 != "-" {print}'
IBM Informix Dynamic Server Version 14.10.FC8D4 -- On-Line -- Up 35 days 23:30:08 -- 14843904 Kbytes
2026-01-21 16:07:00
Transactions
est.
address flags userthread locks begin_logpos current logpos isol rb_time retrys coord
1231641a8 A-B-- 1be3c7d28 24 3052846:0x4ff4018 3052846:0x9820018 DIRTY 00:00:00 0
125f9a428 A-B-- 1abb4f728 24 3052855:0x29c91b4 3052855:0x652a018 DIRTY 00:00:-2 0
12627f4a8 A-B-- 123127528 24 3052922:0x19b01b8 3052924:0x99a6174 DIRTY 00:00:00 0
126526c28 A-B-- 1dd5e4b28 4 3052905:0x9b59358 3052905:0x9b59390 DIRTY 00:00:00 0
148495c28 A-B-- 1be3d2828 36 3052922:0xae1e018 3052923:0x701b354 DIRTY 00:00:00 0
1d2994c28 A-B-- 1dd5e8a28 1 3052925:0x30dc018 3052925:0x30dc31c COMMIT 00:00:00 0
OK, so what is the transaction id number in that output? Isn't it the address? Nothing up there that could have been 847. If I were monitoring with sysmaster:systrans I would see a simple integer column: tx_id. But that does not show in the onstat command. So LTX message is kinda useless for quick diagnosis, before it's gone from memory.
I am probably reinventing a wheel, trying to compose an SQL that connects systrans <=> syssessions to give the DBA something to chase (besides his own tail.) There is surely a documented intermediary table/view that has one column to join systrans and another to join with syssessions. HMMmmm... This might just be the bottom line of my question: How to connect systrans with syssessions.
Ideas, please? Thanks!
------------------------------
+-----------------------------------------------------------+
| I am pleased to report that I had no problems today. |
| I had only issues, opportunities, challenges and valuable |
| learning experiences. |
+------------------------------------------ Jacob S --------+
------------------------------