Home » SQL & PL/SQL » SQL & PL/SQL » Make an End to a user session
Make an End to a user session [message #8895] Wed, 01 October 2003 13:33 Go to next message
Upperm
Messages: 95
Registered: July 2003
Member
Hello,
I'm an oracle 8.1.7.0.0 Newbie :)

I want to make an end to a user session.
These are the steps I've done:

Step 1:

SELECT SID FROM V$SESSION;
==> this gives me the value of the Session Id.

Step 2:
ALTER SYSTEM KILL SESSION value;

==> I got the following message error:

ORA-00026: ID session non valide ou abscent

My Question= What is wrong?

Thanks a lot Folks :)
Re: Make an End to a user session [message #8897 is a reply to message #8895] Wed, 01 October 2003 14:04 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
SQL> select sid,serial# from v$session where username='SCOTT';

SID SERIAL#
---------- ----------
15 784

SQL> alter system kill session '15,784';

System altered.

SQL> select sid,serial#,username,status from v$session where username='SCOTT';

SID SERIAL# USERNAME STATUS
---------- ---------- ------------------------------ --------
15 784 SCOTT KILLED
Re: Make an End to a user session [message #8902 is a reply to message #8897] Wed, 01 October 2003 17:48 Go to previous message
Upperm
Messages: 95
Registered: July 2003
Member
Thanks a lot THIRU.

Keep the smile during your shift hours :)

Thank you Again.
Previous Topic: Trigger
Next Topic: double value in one record
Goto Forum:
  


Current Time: Fri Apr 19 21:13:04 CDT 2024