ORA-01720:不存在“****.****"授权选项
来源:互联网 发布:招聘网络技术员图片 编辑:程序博客网 时间:2024/06/06 02:38
转自:http://blog.sina.com.cn/s/blog_68ea97d10101bpef.html
The HR user creates a view with this command:
SQL> CREATE VIEW emp_v AS SELECT * FROM scott.emp;
Now HR wants to grant the SELECT privilege on the EMP_V view to the JIM user.当HR 用户授权给JIM 用户的视图查询权限的时候,会发生什么呢?系统会给出ORA-01720错误,错误提示:ORA-01720:不存在“****.****"授权选项。如果想正常给JIM 授予视图的查询权限,需要在此步骤之前,在给SCOTT用户给HR 用户授予表scott.emp查询权限的语句中加上with grant option. 例如:grant select on scott.emp to hr with
grant option。 所以 HR needs the SELECT privilege on the EMP table with GRANT OPTION from SCOTT for this operation. 这样在用户HR给用户JIM授予视图查询权限的时候才能成功。 而做了一下操作:
SCOTT has to grant the SELECT privilege on the EMP table to JIM before this operation. 会发生什么呢?当你执行用户HR给用户JIM授予视图查询权限的时候还是收到ORA-01720错误。
原因:当用户B建了关于用户A的表的视图,然后B用户又将视图查询权限授予C用户,那么这意味着C用户必须拥有A用户表的查询权限,否则这个B用户又将视图查询权限授予C用户授权失败。因此在A用户给B用户授予A用户表的查询权限的时候,需要加上with grant option子句,然后在用户又将视图查询权限授予C用户的时候,将A用户表的权限给传递给C用户。
(可在数据库中建立用户test1,test2,test3用户来测试)
- ORA-01720:不存在“****.****"授权选项
- ORACLE-016:ora-01720 授权选项对于'xxxx'不存在
- 关于ORA-01720: 不存在 '+++' 的授权选项的错误解决方法
- ORA-01720: grant option does not exist for 'xxx.xxxx' (ORA-01720 ‘XXX’ 不存在授权选项)
- ORA-01932 选项未授权给角色'CONNECT'
- ORA-01932: ADMIN 选项未授权给角色 'CONNECT'
- ORA-02289: 序列不存在
- ORA-01006: 赋值变量不存在
- ORA-00959:表空间'...'不存在
- ORA-00959 表空间不存在
- 表空间不存在ora-00959???
- ORA-24010: QUEUE SMS_MT_QUEUE不存在
- ORA-00959 表空间不存在
- ORA-27101 && Oracle 数据库不存在
- android 4.0 "移动网络" 选项 不存在
- android 4.1 "Mobile networks" 选项 不存在
- win 7 右键 新建 选项 不存在
- android 4.0 "移动网络" 选项 不存在
- IOS8 扩展
- android组件measure过程
- spring security教程
- hdoj 1026 Ignatius and the Princess I 【BFS】
- mysql GTID主从复制
- ORA-01720:不存在“****.****"授权选项
- 第14周项目2-带姓名的成绩单
- windows API 开发飞机订票系统(二)
- Java 多线程之 TransferQueue
- SimpleJbdcTemplate类
- 如何运行linux shell程序
- eclipse中,Save Failed Negative time
- linux使用jconsole
- static对局部变量的作用