Hi,
Sometimes there are some sessions hanged and need to kill them off. But how to get their sql statements (to know whether is doing SELECT,UPDATE,DELETE, etc...)?
I know there is a table v$sqlarea, and below is my simple query:
SQL> select executions, disk_reads, buffer_gets, sql_text from v$sqlarea where address='&address'
Is that correct ?
Thanks in advanced.
Sometimes there are some sessions hanged and need to kill them off. But how to get their sql statements (to know whether is doing SELECT,UPDATE,DELETE, etc...)?
I know there is a table v$sqlarea, and below is my simple query:
SQL> select executions, disk_reads, buffer_gets, sql_text from v$sqlarea where address='&address'
Is that correct ?
Thanks in advanced.