The onstat -g ses option prints session-related information. You can specify one of the following invocations.
Figure 90 shows the output of the onstat -g ses option.
onstat -g ses IBM Informix Dynamic Server Version 10.00.UC3 -- On-Line -- Up 7 days 18:43:13 -- 38912 Kbytes session #RSAM total used dynamic id user tty pid hostname threads memory memory explain 24 informix - 0 - 0 12288 7936 off 23 informix - 17602 carson 1 57344 48968 off 3 informix - 0 - 0 12288 9168 off 2 informix - 0 - 0 12288 7936 off
Figure 91 shows the output of the onstat -g ses sessionid option.
IBM Informix Dynamic Server Version 10.00.UC3 -- On-Line -- Up 2 days 19:42:
11 -- 38912 Kbytes
session #RSAM total used dynamic
id user tty pid hostname threads memory memory explain
16 sitaramv 1 18523 carson 1 81920 71720 off
tid name rstcb flags curstk status
35 sqlexec a7ed9f4 Y--P--- 5488 cond wait(netnorm)
Memory pools count 1
name class addr totalsize freesize #allocfrag #freefrag
16 V afea020 81920 10200 119 13
name free used name free used
overhead 0 1648 scb 0 96
opentable 0 1768 filetable 0 336
log 0 21880 temprec 0 16200
keys 0 680 ralloc 0 5120
gentcb 0 1208 ostcb 0 2528
sqscb 0 13216 sql 0 40
rdahead 0 184 hashfiletab 0 280
osenv 0 1920 sqtcb 0 2024
fragman 0 208 udr 0 312
xatm 0 2072
sqscb info
scb sqscb optofc pdqpriority sqlstats optcompind directives
adff580 af93018 0 0 0 2 1
Sess SQL Current Iso Lock SQL ISAM F.E.
Id Stmt type Database Lvl Mode ERR ERR Vers Explain
16 - xabasicdb RR Not Wait 0 0 9.03 Off
Last parsed SQL statement :
EXECUTE FUNCTION xa2pc_mi_unregister("xads_t2_i2")
Xadatasources participated in this session :
Xadatasource name RMID Active
xabasicdb@atmol10:sitaramv.xads_t3_i1 6 YES
xabasicdb@atmol10:sitaramv.xads_t2_i1 4 YES
xabasicdb@atmol10:sitaramv.xads_t1_i3 3 YES
xabasicdb@atmol10:sitaramv.xads_t1_i2 2 YES
xabasicdb@atmol10:sitaramv.xads_t1_i1 1 YES
xabasicdb@atmol10:sitaramv.xads_t2_i2 5 NO
You can interpret the output from this option as follows:
Session section
Threads section
Position 1
Position 2
Position 3
Position 4
Position 5
Position 6
Position 7
Memory pools header section. The information is repeated for each session pool.
The memory pool section
The sqscb information section
The Last parsed SQL statement section has the same information as the onstat -g sql option. See The onstat -g sql Option.
Xadatasources participated in this session section shows information about the XA data sources that are available during the session, their resource manager identifiers, and whether they are currently active.