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

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

Oracle 11g Physical Standy Setup

Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01

Oracle to Postgres

Execution_Explain Plan

Active Session History Analysis

General Queries

Fragmentation & Re-organisation

OEM patches & vulnerabilities