Message-Id: <10570.112993@fatcity.com> From: "Koivu, Lisa" Date: Wed, 26 Jul 2000 08:01:39 -0400 Subject: RE: How to kill a user active session? This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF6F9.43B9C180 Content-Type: text/plain; charset="iso-8859-1" You can also kill the o/s pid if alter system kill session is not working and you are absolutely sure this is a runaway process. -----Original Message----- From: Anies Yahoo [mailto:anies_th@yahoo.com] Sent: Wednesday, July 26, 2000 3:34 AM To: Multiple recipients of list ORACLE-L Subject: RE: How to kill a user active session? > 1. Can any body please explain, why this above error came even when I can see the username, sid and status as active in v$session. when you see the session_id in v$session, you could kill that session > 2. Also, please, is there any other way to kill an active user session? use the instance manager (the one of utilities in enterprise manager). HTH, Anies. -----Original Message----- From: root@fatcity.com [mailto:root@fatcity.com]On Behalf Of Maheshwara Rao, L., Teki Sent: Wednesday, July 26, 2000 11:27 AM To: Multiple recipients of list ORACLE-L Subject: How to kill a user active session? Hi All, Environment : Solaris 2.6 : db version : 8.0.4 One of my developers was accessing the database thru SQL*NET. He was doing simple commands (like descry. Table structures, etc) in SQL PLUS. After some time his screen hung. He could not close the screen. He ended sql task through task manager on PC. After this, I queried the table v$session and the following are the details of v$session table query. Username - hall :::: sid -- 13 :::: serial# --5555 ::: status - active I gave the following command. ALTER SYSTEM KILL SESSION '13,5555'; Now, I got error ---- ORA - 00030 : user session ID does not exist I repeated the above sequence of actions after 5 minutes, i.e., querying the v$session and then giving the command --- alter system kill session. I got same error message as above. (while the above activity is going on, other developers were accessing db through SQL NET). QUESTIONS : 1. Can any body please explain, why this above error came even when I can see the username, sid and status as active in v$session. 2. Also, please, is there any other way to kill an active user session? Thanks in advance, Rao teki01@mediaone.net ------_=_NextPart_001_01BFF6F9.43B9C180 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Urgent: NT 8.0.5 restarted after 76 days, now slow
You=20 can also kill the o/s pid if alter system kill session is not working = and you=20 are absolutely sure this is a runaway process.
-----Original Message-----
From: Anies Yahoo=20 [mailto:anies_th@yahoo.com]
Sent: Wednesday, July 26, 2000 = 3:34=20 AM
To: Multiple recipients of list = ORACLE-L
Subject: RE:=20 How to kill a user active session?

 

> 1.      =20 Can=20 any body please explain,  why this=20 above error came even when I can see the username, sid and status as = active in=20 v$session.

 

when you see the session_id in v$session,=20 you could kill that session

 

> 2.      =20 Also,=20 please, is there any other way to kill an active user=20 session?

 

use=20 the instance manager (the one of utilities in enterprise=20 manager).

 

HTH,

 

Anies.

 

=

 

=

 

=

 = -----Original = Message-----
From:=20 root@fatcity.com [mailto:root@fatcity.com]On Behalf Of = Maheshwara Rao,=20 L., Teki
Sent: Wednesday, July 26, 2000 11:27 = AM
To:=20 Multiple recipients of list ORACLE-L
Subject: How to kill a = user=20 active session?

Hi=20 All,

 

=

Environment=20 : Solaris 2.6 : db version : = 8.0.4

 

=

One=20 of my developers was accessing the database thru SQL*NET.  He was doing simple = commands (like=20 descry. Table structures, etc) in SQL PLUS.  After some time his = screen=20 hung.  He could not = close the=20 screen.  He ended sql = task=20 through task manager on PC.  = After this, I queried the table v$session and the following = are the=20 details of v$session table = query.

 

=

Username=20 – hall   = :::: sid  -- 13  ::::  serial# --5555  :::  status -=20 active

 

=

  I gave the following=20 command.

 

=

        =20 ALTER SYSTEM KILL SESSION=20 ’13,5555’;

 

=

Now,=20 I got error ---- ORA – 00030 : user session ID does not=20 exist

 

=

I=20 repeated the above sequence of actions after 5 minutes, i.e., = querying the=20 v$session and then giving the command --- alter system kill=20 session.

 

=

I=20 got same error message as above. (while the above activity is going = on,=20 other developers were accessing db through SQL =20 NET).

 

=

QUESTIONS=20 :

 

=

1.      =20 Can=20 any body please explain,  why=20 this above error came even when I can see the username, sid and = status as=20 active in v$session.

 

=

2.      =20 Also,=20 please, is there any other way to kill an active user=20 session?

         =20

 Thanks in=20 advance,

 

=

Rao

 

=

teki01@mediaone.net