Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

unable to drop the user

user12115Feb 2 2011 — edited Feb 3 2011
Hi All,

I want to drop one user but it gives me error that its connected.

SQL> drop user test cascade;
drop user test cascade
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected

when I check through v$seesion for that particualr user it shows me "no rows selecteD"

SQL> select sid,serial#,osuser,machine from v$session where username='TEST;

no rows selected

when I check the what are the segments available of the test users's tablespace,
select count(0) FROM DBA_SEGMENTS where lower(tablespace_name) = 'test_tbs'

COUNT(0)
----------
302


I already bounce the database and try to drop but after bounce the database when run the drop user command it will not prompt after 20 mins, seems like hang.

If anybody ever face this situation then let me know.

Thanks...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2011
Added on Feb 2 2011
18 comments
3,194 views