+ -
当前位置:首页 → 问答吧 → oracle创建用户时出错

oracle创建用户时出错

时间:2011-09-05

来源:互联网

我的oracle这是怎么了?为什么创建用户的时候有同名的用户,删除的时候却没有该用户?


----------------------------------------------------------------------------
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 9月 5 10:23:29 2011

Copyright (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 options

SQL> 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' 与另外一个用户名或角色名发生冲突

作者: xmubingo   发布时间: 2011-09-05

SQL code

-- role 下有同名的
select * from dba_roles where role = 'XMUBINGO';

drop role XMUBINGO;

create user xmubingo identified by 520;



作者: opps_zhou   发布时间: 2011-09-05