Tuesday, September 17, 2013

Session Info from given SID

----------------------------------
-Session Info from SID
-File Name: sid.sql
-Usage : @sid
-----------------------------------

set line 200
col program for a16
col MODULE for a16
col action for a30
col 'Time Hrs' for 999999.99
col user@machine  for a30
col (SID,SERIAL#)  for a13
set line 200
col SPID for a10

select b.spid,a.sid||','||a.serial# "(SID,SERIAL#)",a.status,a.last_call_et/3600 "Time Hrs",a.username||'@'||a.machine as "user@machine",a.program,a.module,a.action,a.type 
from gv$session a,gv$process b where a.sid=&SID and a.paddr=b.addr
/

No comments:

Post a Comment

NLS boot file not found or invalid opmnctl ping – EBS 12.2 ADCFGCLONE FAIL

Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...