I have tried by ORAKILL, but I got the following error. and unable to kill the process.
Firstly I have query for the process by the following query.
1 select sid, spid as thread, osuser, s.program
2 from sys.v_$process p, sys.v_$session s
3* where p.addr = s.paddr
SQL>/
1 193 SYSTEM ORACLE.EXE
2 263 SYSTEM ORACLE.EXE
3 267 SYSTEM ORACLE.EXE
4 216 SYSTEM ORACLE.EXE
5 254 SYSTEM ORACLE.EXE
6 259 SYSTEM ORACLE.EXE
7 233
8 250
9 257
10 290
13 113 DOMAIN\Administrator SQLPLUSW.EXE
Then I have tried to kill the process 13 and thread 113 by the following commands -
Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.
C:\>orakill 13 113
Could not attach to Oracle instance 13: err = 2
C:\>
and got the above error "Could not attach to Oracle instance 13: err = 2 "
Well i tried
orakill "instance_name" thread
it says
kill of thread id instance successfully signalled.
I did this for a user using sqlplus, but even after receining this message the user continued to use sqlplus and access the database without any hinderance for the same session !!!!!
I realize that Im novice but this code looks to me have more bugs than windows ME ...
1) there are really no such views as sys.v_$process p, sys.v_$session s
probably v$process & v$session are good choices
1 select sid, spid as thread, osuser, s.program
2 from v$process p, v$session s
3* where p.addr = s.paddr;
SQL> /
where p.addr = s.paddr;
*
ERROR at line 3:
ORA-00911: invalid character
since it quite late I said I have enough with bugging this script (for exam Ill remember
ALTER SYSTEM KILL SESSION 'SID, THREAD#';
Thnx but no THANKS!!
Originally posted by sreddy Win NT/2000 is a thread based Operating System and not process based Operating System like Unix. Oracle user and background processes are not multiple processes but, threads with in oracle.exe process. 'orakill' is oracle provided utility to kill a particular resource intensive thread under oracle.exe process. For help type in at the DOS prompt C:\>orakill /?
The following query can be used to get the sid, thread id of a particular resource intensive thread.
SQL> select sid, spid as thread, osuser, s.program
2 from sys.v_$process p, sys.v_$session s
3 where p.addr = s.paddr;
So when u execute the above command, that particular process for user scott will be termintaed... But is the user scott still supposed to be connected to the database and can work with the same sql plus session ?
I tried the above but could still work in my sql session.
Could some one please explain
what is happening.
--A
-- Anurag.
OCP Application Developer
---------------------------------------------------------
"Be not afraid of growing slowly. Be afraid only of standing still."
Bookmarks