oralce 新建用户grant dba 然后revoke DBA后为何还能登陆?

feng5796863 2011-08-25 03:21:39
是这样:我用system

create user opmadm identifier by opmadm;

grant dba to opmadm;

reovke dba from opmadm;



之后,我用sqldeveloper登陆 用户:opmadm:密码:opmadm; 身份:SYSDBA 竟然登陆进去了;而且用命令窗口sqlplus登陆 也可以以SYSDBA登陆。但是普通用户身份登陆不了。 之后我再一次grant dba,普通身份也可以登陆了。
对了,我上传的图片是问题出现后为了方便大家理解,重复操作了一遍,忘记了一步操作,commit;

但是问题出现那次操作我是做了commit 的,grant 和 revoke 后都有commit;
...全文
633 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
feng5796863 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 benchim888 的回复:]
你可以试验一下,这就是原因。

SQL code


C:\Documents and Settings\Administrator>sqlplus test/test as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 25 16:16:58 2011

Copyright (c) 1982, 2005,……
[/Quote]

试过了,谢谢
BenChiM888 2011-08-25
  • 打赏
  • 举报
回复
你可以试验一下,这就是原因。

C:\Documents and Settings\Administrator>sqlplus test/test as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 25 16:16:58 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

[SYS@myorcl] SQL>exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\Administrator>sqlplus adsasdasdasd/adadasdfedfdsfasd123 as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 25 16:17:06 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

[SYS@myorcl] SQL>exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\Administrator>sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 25 16:17:15 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

[SYS@myorcl] SQL>
feng5796863 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 benchim888 的回复:]
你的理解有问题,仔细看看我5楼的回答,你会豁然开朗的。
http://topic.csdn.net/u/20110801/10/e5940624-2661-4394-9d0e-e7ee8b6a918e.html
[/Quote]
"--说明一下,你的普通用户之所以能够以sys用户权限,原因为oracle默认采用的是操作系统认证
---他认证的是你的操作系统帐户,你可以随便输入用户名和密码都能进入
sqlplus asdasd/asdadasd as sysdba;
"
这就是原因? 有点不可思议。。。
BenChiM888 2011-08-25
  • 打赏
  • 举报
回复
你的理解有问题,仔细看看我5楼的回答,你会豁然开朗的。
http://topic.csdn.net/u/20110801/10/e5940624-2661-4394-9d0e-e7ee8b6a918e.html

17,382

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧