The onstat -g sql option prints SQL-related information about a session. You can specify one of the following invocations.
Figure 93 shows the output of the onstat -g sql option.
onstat -g sql 22 IBM Informix Dynamic Server Version 10.00.UC1 -- On-Line -- Up 00:07:38 -- 19456 Kbytes Sess SQL Current Iso Lock SQL ISAM F.E. Current Id Stmt type Database Lvl Mode ERR ERR Vers Explain Role 22 - test CR Not Wait 0 0 9.03 Off hr Last parsed SQL statement : select id, name, decrypt_char(ssn, 'XXXXXXXXXX') from emp
You can interpret the output from this option as follows: