Find the list of connected users using below query :
SELECT
vs.sid
, vs.serial#
, vs.status
, vp.spid
FROM
v$session vs
, v$process vp
WHERE
vp.addr(+) = vs.paddr;
If you would like to find the connected sessions for 1 specific user use below where condition :
and vs.username = '*****'
Note * Oracle is case sensitive, use CAPITAL letters only
Use below query to kill session of users, use input of SID/SERIAL from above query.
ALTER SYSTEM KILL SESSION '*SID*, *SERIAL*';
No comments:
Post a Comment