我的oracle这是怎么了?为什么创建用户的时候有同名的用户,删除的时候却没有该用户?
----------------------------------------------------------------------------
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 9月 5 10:23:29 2011Copyright (c) 1982, 2010, Oracle.  All rights reserved.请输入用户名:  SYS/root as sysdba连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> drop user xmubingo cascade;
drop user xmubingo cascade
          *
第 1 行出现错误:
ORA-01918: 用户 'XMUBINGO' 不存在
SQL> create user xmubingo identified by 520;
create user xmubingo identified by 520
            *
第 1 行出现错误:
ORA-01920: 用户名 'XMUBINGO' 与另外一个用户名或角色名发生冲突

解决方案 »

  1.   


    -- role 下有同名的
    select * from dba_roles where role = 'XMUBINGO';drop role XMUBINGO;create user xmubingo identified by 520;
      

  2.   

    有可能是角色重复,也有可能是用户名XMUBINGO 真的存在。
    oracle 是可以同时存在大小写用户名一样的。
    比如:
    create user xmubingo identified by 520;
    将创建一个 XMUBINGO 的用户名。你还可以create user “xmubingo” identified by 520;
    创建一个小写的用户名 xmubingo
      

  3.   

    如果角色重复的话也会报此错误的。
    如果真的不存在的话,重新建立用户xmbingo
    create user xmbingo identified by 520;
      

  4.   

    select sid,serial# from v$session where username='xmbingo'; 
    alter system kill session 'xmbingo'; 
    先查看有没有连接有酒先kill掉然后在执行删除语句,
    drop user xmubingo cascade;
    drop user xmubingo cascade;
    如果还删不掉的话,我的意见把数据库重启一下,或许就已近不存在了。