Pages

Wednesday, July 10, 2019

Query to find Active users and killing their sessions

Query to find of "Active users" :


SELECT  SID, Serial#, UserName, Status, SchemaName, Logon_Time
FROM  V$Session
WHERE
Status=‘ACTIVE’ AND
UserName IS  NOT  NULL ;
SELECT * FROM V$SESSION;
--------------------------------------------------------------------------------


The basic syntax for killing a session is shown below :


SQL> ALTER SYSTEM KILL SESSION 'sid,serial#';


--------------------------------------------------------------------------------

1 comment:

  1. What is merit casino? - DACCASINO.COM
    What 코인카지노 도메인 is merit casino? A 더킹카지노 조작 casino 메리트 카지노 쿠폰 where you can earn a commission on 메리트카지노 회원가입 a slot by playing a video slot. The casino 라이트닝 바카라 is an online casino,

    ReplyDelete