Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

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

$
0
0
Cause:

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

 Solution:

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

       SID    SERIAL#
---------- ----------
       150   873

SQL> alter system kill session '150,873';

System altered.

SQL> drop user data;
drop user data
*
ERROR at line 1:
ORA-01922: CASCADE must be specified to drop 'DATA'


SQL> drop user data cascade;   

User dropped.

SQL> 

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>