多创建了一个用户,想要给它删除掉
一 上执行过程,确实删除成功了
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> DROP USER c##xyt CASCADE;
DROP USER c##xyt CASCADE
*
第 1 行出现错误:
ORA-01940: 无法删除当前连接的用户
SQL> select saddr,sid,serial#,paddr,username,status from v$session where username = 'c##xyt';
未选定行
SQL> ALTER USER C##XYT account LOCK;
用户已更改。