Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Forcing user to log off
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_01BFFC3D.83846B20
Content-Type: text/plain
Hi,
from the v$session look for the username you want to logoff forcibly and also his session id and the other details.The query looks like this.
select username,sid,serial# from v$session where username ='XXX';
Then try
alter system kill session 'sid,serial#' ;
Keep sid and serial # valus in single quotes. hope this will work.
Uma Shankar
> ----------
> From: Jaime Perez[SMTP:jaime_at_mail.laosb.org]
> Reply To: ORACLE-L_at_fatcity.com
> Sent: Tuesday, August 01, 2000 11:15 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Re: Forcing user to log off
>
> Yes there is a guy.
> Let me look at my books again.
> Can you make sure if nobody has helped you to remind me again.
> I am in the middle of training and I can't see the book cause it is at
> home.
>
> -jaime
>
>
> ----- Original Message -----
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Sent: Thursday, July 27, 2000 1:06 PM
>
>
> >
> > >From Oracle, how can you force a user to log off?
> >
> > This is Oracle 8.0.5/UNIX and I know I can kill the PID, but
> > is there a way to do it from Oracle?
> >
> > -----
> > Sent using MailStart.com ( http://MailStart.Com/welcome.html )
> > The FREE way to access your mailbox via any web browser, anywhere!
> >
> > --
> > Author:
> > INET: cemail_at_sprintmail.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
> >
>
> --
> Author: Jaime Perez
> INET: jaime_at_mail.laosb.org
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
------_=_NextPart_001_01BFFC3D.83846B20
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =charset=3Dus-ascii">
<TITLE>RE: Forcing user to log off</TITLE> </HEAD> <BODY>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Hi,</FONT> </P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">from the v$session = look for the username you want to logoff forcibly and also his session = id and the other details.The query looks like this.</FONT></P> <BR>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">select =
username,sid,serial# from v$session</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">where username =
=3D'XXX';</FONT>
</P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Then try </FONT> </P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">alter system kill =
session 'sid,serial#' ;</FONT>
</P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Keep sid and serial =
# valus in single quotes.</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">hope this will =
work.</FONT>
</P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Uma Shankar</FONT> </P> <BR> <BR> <BR> <BR> <BR> <BR> <UL> <P><FONT SIZE=3D1 FACE=3D"MS Sans Serif">----------</FONT> <BR><B><FONT SIZE=3D1 FACE=3D"MS Sans Serif">From:</FONT></B> = <FONT SIZE=3D1 FACE=3D"MS Sans Serif">Jaime =Perez[SMTP:jaime_at_mail.laosb.org]</FONT>
<P><FONT SIZE=3D2 FACE=3D"Arial">Yes there is a guy.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">Let me look at my books again.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">Can you make sure if nobody has =helped you to remind me again.</FONT>
<P><FONT SIZE=3D2 FACE=3D"Arial">-jaime</FONT> </P> <BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">----- Original Message -----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">To: Multiple recipients of list =
ORACLE-L <ORACLE-L_at_fatcity.com></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Sent: Thursday, July 27, 2000 1:06 =
PM</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> >From Oracle, how can you =
force a user to log off?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> This is Oracle 8.0.5/UNIX and I =
know I can kill the PID, but</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> is there a way to do it from =
Oracle?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">> -----</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">> Sent using MailStart.com =(</FONT><U> <FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"><A = HREF=3D"http://MailStart.Com/welcome.html" = TARGET=3D"_blank">http://MailStart.Com/welcome.html</A></FONT></U><FONT = SIZE=3D2 FACE=3D"Arial"> )</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">> --</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">> Author:</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">> INET: =cemail_at_sprintmail.com</FONT>
--------------------------------------------------------------------</FO=NT>
<P><FONT SIZE=3D2 FACE=3D"Arial">-- </FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">Author: Jaime Perez</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"> INET: =jaime_at_mail.laosb.org</FONT>
<P><FONT SIZE=3D2 FACE=3D"Arial">Fat City Network =
Services -- (858) 538-5051 FAX: (858) =
538-5051</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">San Diego, =
California -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">---------------------------------------------------------=-----------</FONT>