Sunteți pe pagina 1din 5

8/8/2018 IBM Knowledge Center - onstat -g sql command: Print SQL-related session information

Home  Informix Servers 12.1  . . .  onstat -g monitoring options 

Anterior Siguiente

onstat -g sql command: Print SQL-related session


information
 Tabla de contenido Cambiar versión 
Search in all products

Buscar en este producto... 

IBM® Informix® 12.10

Use the onstat -g sql command to display SQL-related information about a session.

By default, only the DBSA can view onstat -g sql syssqltrace information. However, when
the UNSECURE_ONSTAT configuration parameter is set to 1, all users can view this
information.

Syntax:

>>-onstat-- -g--sql--sessionid---------------------------------><

You can specify one of the following invocations.

Invocation
Explanation
onstat -g sql 
Displays a one line summary for each session
onstat -g sqlsessionid
Displays SQL information for a specific session
https://www.ibm.com/support/knowledgecenter/es/SSGU8G_12.1.0/com.ibm.adref.doc/ids_adr_0579.htm#ids_adr_0579 1/5
8/8/2018 IBM Knowledge Center - onstat -g sql command: Print SQL-related session information
Displays SQL information for a specific session

Note

Encrypted passwords and password hint parameters in encryption functions are not
shown. The following figure displays an encrypted password in the Last parsed SQL
statement field.

Figure 1. onstat -g sql command output


onstat -g sql 22

Sess SQL Current Iso Lock SQL ISAM F.E.


Id Stmt type Database Lvl Mode ERR ERR Vers Ex
22 - test CR Not Wait 0 0 9.03 Of
Last parsed SQL statement :
select id, name, decrypt_char(ssn, 'XXXXXXXXXX') from emp

Output description

Sess id
The session identifier
SQL Stmt type
The type of SQL statement
Current® Database
Name of the current database of the session
ISO Lvl
Isolation level

DR
Dirty Read
CR
Committed Read
CS
Cursor Stability
https://www.ibm.com/support/knowledgecenter/es/SSGU8G_12.1.0/com.ibm.adref.doc/ids_adr_0579.htm#ids_adr_0579 2/5
8/8/2018 IBM Knowledge Center - onstat -g sql command: Print SQL-related session information
Cursor Stability
DRU
Dirty Read, Retain Update Locks
CRU
Committed Read, Retain Update Locks
CSU
Cursor Stability, Retain Update Locks
LC
Committed Read, Last Committed
LCU
Committed Read Last Committed with Retain Update Locks
RR
Repeatable Read

NL
Database Without Transactions
Lock mode
Lock mode of the current session
SQL Error
SQL error number encountered by the current statement
ISAM Error
ISAM error number encountered by the current statement
F.E. Version
The version of the SQLI protocol used by the client program
Explain
SET EXPLAIN setting
Current Role
Role of the current user

Parent topic:
 onstat -g monitoring options

Please note that DISQUS operates this forum. When you sign in to comment, IBM will provide your
email, first name and last name to DISQUS. That information, along with your comments, will be
governed by DISQUS’ privacy policy. By commenting, you are accepting the DISQUS terms of service.

https://www.ibm.com/support/knowledgecenter/es/SSGU8G_12.1.0/com.ibm.adref.doc/ids_adr_0579.htm#ids_adr_0579 3/5
8/8/2018 IBM Knowledge Center - onstat -g sql command: Print SQL-related session information

Iniciar sesión

0 Comments IBM Knowledge Center

Sort by Best
 Recommend ⤤ Share

Nothing in this discussion yet.

✉ Subscribe d Add Disqus to your siteAdd DisqusAdd


🔒

More topics

onstat -g act command: Print active threads

onstat -g afr command: Print allocated memory fragments

onstat -g all command: Print diagnostic information

onstat -g aqt command: Print data mart and accelerated query table information

onstat -g arc command: Print archive status

onstat -g ath command: Print information about all threads

onstat -g bth and -g BTH: Print blocked and waiting threads

onstat -g buf command: Print buffer pool profile information

onstat -g cac command: Print information about caches

onstat -g ckp command: Print checkpoint history and configuration recommendations

onstat -g cfg command: Print the current values of configuration parameters

 Imprimir este tema


 [Beta] Descargar esta página
 [Beta] Descargar esta sección

https://www.ibm.com/support/knowledgecenter/es/SSGU8G_12.1.0/com.ibm.adref.doc/ids_adr_0579.htm#ids_adr_0579 4/5
8/8/2018 IBM Knowledge Center - onstat -g sql command: Print SQL-related session information

 Ayuda
 Seleccione un producto

 Abrir una incidencia y descargar arreglos de IBM Support Portal


Buscar un tutorial técnico en developerWorks

Buscar práctica recomendada para la integración de tecnologías en IBM Redbooks

 Explorar, aprender y tener éxito con cursos de formación de IBM Skills Gateway

Contacto Privacidad Condiciones de uso Accesibilidad Comentarios Preferencias de cook

Español 

https://www.ibm.com/support/knowledgecenter/es/SSGU8G_12.1.0/com.ibm.adref.doc/ids_adr_0579.htm#ids_adr_0579 5/5

S-ar putea să vă placă și