Link to home
Start Free TrialLog in
Avatar of joaotelles
joaotellesFlag for United States of America

asked on

Oracle 10g - ORA-01940: cannot drop a user that is currently connected

Hi,

Im trying to drop a user but its failing and it doesnt have any entry in the v$session..

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


SQL> select sid, serial# from v$session where username = 'DPOWNERA';
no rows selected

===

Is there a way to drop the user and its session in the same command?

What can I do if there isnt any seesions in the v$session for this user...? Maybe look somewere else?
ASKER CERTIFIED SOLUTION
Avatar of David VanZandt
David VanZandt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of joaotelles

ASKER

Stray thought, perhaps dpownera owns tables, synonyms, or other objects that are in use by other schemas?
That was the case. Tks.