   |  | | ORA-01940: cannot drop a user that is currently connected | ORA-01940: cannot drop a user that is currently connected 2006-07-05 - By Spears, Brian
Does the process show up in V$session. (Most people have scripts joining v$session and v$process to show sessions that will not show sessions because the show will only show sessions with process and you can miss some in other states.) Sometime app/web servers constantly relog in after being killed making it hard to drop the user. In those cases I shutdown /startup restrict, drop the user then take off the restricted session.
-- --Original Message-- -- From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] On Behalf Of John Dunn Sent: Wednesday, July 05, 2006 5:27 AM To: 'oracle-l digest users' Subject: ORA-01940 (See ORA-01940.ora-code.com): cannot drop a user that is currently connected
ORA-01940 (See ORA-01940.ora-code.com): cannot drop a user that is currently connected
I get this error on Oracle 10.2.0.1.0 but cannot see any sessions for the user.
I have rerun the drop, but now it just hangs.
Anything I can do but bounce the database?
John Dunn Product Consultant Direct Dial +44 (0) 117 373 6122 Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK. Tel: +44(0) 117 373 6114 Fax: +44 (0) 117 373 6115
www.sefas.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.21"> <TITLE>RE: ORA-01940 (See ORA-01940.ora-code.com): cannot drop a user that is currently connected</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <BR>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000080" SIZE=2 FACE="Arial">< /FONT> <FONT COLOR="#000080" SIZE=2 FACE="Arial">D</FONT><FONT COLOR=" #000080" SIZE=2 FACE="Arial">oes</FONT> <FONT COLOR="#000080" SIZE=2 FACE="Arial ">the process show up in V$session. (Most people have scripts joining v$session and v$process to show sessions</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000080" SIZE=2 FACE="Arial"> that will not show< /FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000080" SIZE=2 FACE="Arial">session</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG= "en-us"><FONT COLOR="#000080" SIZE=2 FACE="Arial">s because the show will only show sessions with process and you can miss some in other states.)</FONT></SPAN ><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000080" SIZE=2 FACE ="Arial">Sometime app</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000080" SIZE=2 FACE="Arial">/web</FONT></SPAN><SPAN LANG="en-us">< /SPAN><SPAN LANG="en-us"><FONT COLOR="#000080" SIZE=2 FACE="Arial"> servers constantly relog in</FONT> <FONT COLOR="#000080" SIZE=2 FACE="Arial">after being killed</FONT> <FONT COLOR="#000080" SIZE=2 FACE="Arial">making it hard to </FONT> <FONT COLOR="#000080" SIZE=2 FACE="Arial">drop the user</FONT><FONT COLOR="#000080" SIZE=2 FACE="Arial">.</FONT></SPAN><SPAN LANG="en-us"></SPAN> <SPAN LANG="en-us"> <FONT COLOR="#000080" SIZE=2 FACE="Arial">In those cases I shutdown /startup restrict</FONT><FONT COLOR="#000080" SIZE=2 FACE="Arial">, drop the user then take off the r</FONT><FONT COLOR="#000080" SIZE=2 FACE= "Arial">estricted session.</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en -us"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"></SPAN><A NAME=""><SPAN LANG="en-us"></SPAN>< /A></P>
<P ALIGN=LEFT><SPAN LANG="en-us"></SPAN></P> <UL><UL> <P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">-- --Original Message-- --<BR> </FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE =2 FACE="Tahoma">From:</FONT></B></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en -us"><FONT SIZE=2 FACE="Tahoma"> oracle-l-bounce@(protected) [<A HREF="mailto :oracle-l-">mailto:oracle-l-</A></FONT><FONT SIZE=2 FACE="Tahoma">bounce @(protected)]</FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us" ><B> <FONT SIZE=2 FACE="Tahoma">On Behalf Of</FONT></B></SPAN><SPAN LANG="en-us" ></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Tahoma">John Dunn<BR> </FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE =2 FACE="Tahoma">Sent:</FONT></B></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en -us"><FONT SIZE=2 FACE="Tahoma"> Wednesday, July 05, 2006 5:27 AM<BR> </FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE =2 FACE="Tahoma">To:</FONT></B></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en -us"><FONT SIZE=2 FACE="Tahoma"> 'oracle-l digest users'<BR> </FONT></SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE =2 FACE="Tahoma">Subject:</FONT></B></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG= "en-us"><FONT SIZE=2 FACE="Tahoma"> ORA-01940 (See ORA-01940.ora-code.com): cannot drop a user that is currently connected</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">ORA-01940 (See ORA-01940.ora-code.com): cannot drop a user that is currently connected</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I get this error on Oracle</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 FACE="r_ansi">10.2.0.1.0</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en -us"><FONT SIZE=2 FACE="Arial"> but cannot see any sessions for the user. </FONT ></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I have rerun the drop, but now it just hangs.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Anything I can do but bounce the database?</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">John Dunn< /FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Product Consul </FONT><FONT SIZE=2 FACE="Courier New">tant</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Direct Dial +44 (0) 117 373 6122</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Sefas Innovation Ltd, CityPoint, Temple Gate, Bristol BS1 6PL, UK.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Tel: +44(0) 117 373 6114</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Fax: +44 (0) 117 373 6115</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">www.sefas.com< /FONT></SPAN></P> <BR> <BR> </UL></UL> </BODY> </HTML>
|
|
 |