Having only the UNIX process ID, how can I identify in the V $ session or v $ process session id and serial, so that you can kill the session?
Kill Oracle session having only UNIX PID
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
I think here http://download-west.oracle.com/docs/cd ... #sthref628
is a good place to start.
Gilberto
is a good place to start.
Gilberto
- dr_gori
- Moderador
- Posts: 5026
- Joined: Mon, 03 May 2004 3:08 pm
- Location: Portland, OR USA
- Contact:
Thomas F. G
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
Try the following:
OS_Process_ID is the UNIX PID:
With these values, you can kill
Now, can kill in only using
but you should not kill the process in just without first killing in Oracle.
: -O
OS_Process_ID is the UNIX PID:
Select SID,SERIAL#
from v$session where paddr in (select addr from v$process where spid='OS_PROCESS_ID');
alter system kill session '<SID>,<SERIAL#>';
kill -9 <pid>
: -O
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
Good Thomas! In this you was faster than me! : lol:
Look at this query to check the SID and the serial:
select d.sid,d.serial#,b.spid,d.status,decode(a.block,1,'SIM',0,'não') BLOCK,
c.object_name,d.osuser,d.schemaname,d.program
from v$lock a,dba_objects c, v$session d, v$process b
where a.sid=d.sid and
d.paddr=b.addr
and a.id1=c.object_id(+)
and d.osuser is not null
and d.schemaname <> 'SYS'
order by 1,6
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest