Here's
the script that I use to get the session & the current SQL
statement:
define
sid = &1
column client_info format A30 trunc column program format A40 trunc break on sql_address on sql_hash_value column sql_address noprint new_value _addr column sql_hash_value noprint new_value _hash set verify off set linesize 132 spool /ora1/pid.lis select spid, sid, v$session.status, client_info, v$session.program, sql_address, sql_hash_value from v$session, v$process where paddr = addr and spid = '&sid' and v$session.username is not null; select
sql_text
from v$sqltext_with_newlines where address = '&_addr' and hash_value = &_hash order by piece; undef sid spool off exit Dick
Goulet
|
- How to Determine Oracle Session ID given UNIX PID... Sam Bootsma
- RE: How to Determine Oracle Session ID given... Jacques Kilchoer
- Re: How to Determine Oracle Session ID given... Ray Stell
- Re: How to Determine Oracle Session ID given... Gaja Krishna Vaidyanatha
- Goulet, Dick