

Please comment here for your any query related to above content.I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. Your suggestions/feedback are most welcome from. I hope my written content will helped you. Using spid you can killed sessions at OS Level. SQL> alter system kill session '1944,294' immediate Using sid and serial# you can killed sessions at Database Level. During this case you’ll be able to see all inactive sessions using below query : SQL> Set lines 400 pages 400

And requested to kill all inactive sessions which are inactive quite half-hour. When, Database performance is to much slow then user requested to take care for the issue. Using below commands we will understand spid and kill a KILLED session:Ģ94 279 ORAKLDBA ORAKLDBA ~]$ kill -9 ~]$ kill -9 ~]$ kill -9 50020 Note: SQL> select a.sid, a.serial#,a.username, a.osuser, b.spid from v$session a, v$process bģ and a.sid in (select a.sid from v$session a, v$sqlarea b, v$process cĤ where a.sql_address=b.address and a.sql_hash_value=b.hash_valueĢ94 279 ORAKLDBA ORAKLDBA ~]$ kill -9 ~]$ kill -9 ~]$ kill -9 50020

Using below commands we are able to discover spid and kill a INACTIVE session: SQL> Set lines 400 pages 400 We will killed a session at OS Level using spid. SQL> alter system kill session '564,279' immediate SQL> select 'alter system kill session '''||sid||','||serial#||''' immediate ' from v$session where status='KILLED' Īlter system kill session '564,279' immediate Īlter system kill session '683,6167' immediate Īlter system kill session '1044,7191' immediate SQL> select USERNAME, SID, SERIAL#, STATUS, SQL_ID from v$session where status='KILLED' Using below commands we are able to be told and kill a KILLED session: SQL> alter system kill session '12,19428' immediate 'ALTERSYSTEMKILLSESSION'''||SID||','||SERIAL#||'''IMMEDIATE 'Īlter system kill session '12,19428' immediate Īlter system kill session '13,31126' immediate Īlter system kill session '15,53334' immediate Īlter system kill session '17,50020' immediate SQL> select 'alter system kill session '''||sid||','||serial#||''' immediate ' from v$session where status='INACTIVE' SQL> select USERNAME, SID, SERIAL#, STATUS, SQL_ID from v$session where status='INACTIVE'

Using below commands we will be told and kill a INACTIVE session: SQL> set lines 400 pages 400 We will kill a session at Database Level using sid and serial#.
