.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
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
Reply:     1     2     3     4  


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>&nbsp;<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>