DOYENSYS Knowledge Portal




We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal




Thursday, September 29, 2016

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

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

Solution:

sql> drop user oracle;
drop user oracle
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected

sql> select sid, serial# from v$session where username = 'oracle';
SID    SERIAL#
-----  --------
17         37

sql> alter system kill session '17,37;
System altered.

sql> drop user oracle;
User dropped.

1 comment:

Sridevi K said...

Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at training@oracleappstechnical.com | +91 - 9581017828.