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.

ORA-01940: cannot drop a connected user... No entries in v$session.

733892Mar 31 2010 — edited Apr 1 2010
Hi DBAs,

Its on Linux Ubuntu... I want to drop a user. Getting error as below. When I check for connected sessions, I find no entries in v$session. Any other alternative? Please help!!!

EGOVDBA@qadb> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

EGOVDBA@qadb> drop user egov_integrated cascade;
drop user egov_integrated cascade
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected


EGOVDBA@qadb> select username, osuser, machine, terminal, sid, serial# from v$session where username='EGOV_INTEGRATED';

no rows selected

EGOVDBA@qadb> drop user egov_integrated cascade;
drop user egov_integrated cascade
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 29 2010
Added on Mar 31 2010
13 comments
33,251 views