Long Running Sessions
We can use view to check long running sessions.
RAC / Cloud RDS: sessions running more than 15 minutes.
select * from (select inst_id,sid,serial#,username,trunc(last_call_et/3600,2)||' hr' as last_call_et,sql_id,status,machine,osuser,logon_time from gv$session where last_call_et > 900 and username not like '%SYS%' and sql_id is not null) ;
NON-RAC / Cloud RDS: sessions running more than 15 minutes.
select *
from (select sid,serial#,username,trunc(last_call_et/3600,2)||' hr' as
last_call_et,sql_id,status,machine,osuser,logon_time from v$session where
last_call_et > 900 and username not like '%SYS%' and sql_id is not null) ;
Comments
Post a Comment