How Long is an Oracle session inactive?

Oracle Database Administration
Post Reply
User avatar
jimb
Site Admin
Posts: 6146
Joined: Thu Jan 19, 2012 1:10 pm
Location: New Delhi, India
Contact:

How Long is an Oracle session inactive?

Post by jimb »

To check how long a certain Oracle session is inactive or idle, use the below query:

set lines 100 pages 999
select username
, floor(last_call_et / 60) "Minutes"
, status
from v$session
where username is not null
order by last_call_et
/


Sample Output:

Code: Select all

SQL> set lines 100 pages 999
select username
,      floor(last_call_et / 60) "Minutes"
,      status
from   v$session
where  username is not null
order by last_call_et
/
SQL>   2    3    4    5    6    7
USERNAME                Minutes STATUS
-------------------- ---------- --------
SYS                           0 ACTIVE
SQL>
Oracle Database Administration Forums
http://www.oracle-forums.com/
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: How Long is an Oracle session inactive?

Post by xaeresis »

xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: How Long is an Oracle session inactive?

Post by xaeresis »

Post Reply