In many cases you need to check the list of inactive users or inactive sessions in your database.
The script below produces the list of inactive users and inactive sessions. Run the script using sysdba
set heading on feedback on pages 100 lines 140
column userinfo heading "ORACLE/OS User" format a19
column machine heading "Client Machine" format a20
column terminal heading "Terminal" format a10
column process heading "Parent|Process ID" format a10
column spid heading "Shadow|Process ID" format a10
column seq# heading "Wait|Sequence" format 99999990
select s.username||' '||s.osuser userinfo,s.machine, s.terminal, s.sid, s.serial#,
p.spid,
s.process , w.seq#
from v$session s, v$process p
,v$session_wait w
where p.addr = s.paddr
and s.sid = w.sid
and w.event = 'SQL*Net message from client'
and s.status = 'INACTIVE'
order by s.osuser, s.machine
/
Subscribe to:
Post Comments (Atom)
Wordpress - Local installation in Vmware
If you're interested in exploring website design with WordPress, this guide will help you set up a WordPress instance on your local mach...
-
[Tested On] CentOS Linux release 7.4.1708 (Core) # wget https://ftp.postgresql.org/pub/source/v9.6.6/postgresql-9.6.6.tar.gz # tar xvzf post...
-
# openssl s_client -connect localhost:443
-
[Tested On] Red Hat Enterprise Linux Server release 7.4 (Maipo) Note: For Windows Server, please make sure telnet client is installed. # tel...
No comments:
Post a Comment