Run Environment file — to connect to the correct database
[oracle@erpdb ~]$ . env.sh
Launch SQLPLUS as sysdba user
[oracle@erpdb ~]$ sqlplus / as sysdba
<SQL> select
substr(a.spid,1,9) pid,
substr(b.sid,1,5) sid,
substr(b.serial#,1,5) ser#,
substr(b.machine,1,6) box,
substr(b.username,1,10) username,
— b.server,
substr(b.osuser,1,8) os_user,
substr(b.program,1,30) program
from
v$session b,
v$process a
where
b.paddr = a.addr
and type=’USER’
and b.SID=’1234′
order by spid;
give blocking session Stuck SID number in above query where b.SID=’1234’
This query will provide you PID
Copy that PID go to Database server putty
[oracle@erpdb ~]$ ps –ef|grep <PID>
Suppose PID is 567
([oracle@erpdb ~]$ ps –ef|grep 567)
Now kill that session
[oracle@erpdb ~]$ kill -9 <grep 567 number>

About the author
Leave Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

clear formSubmit