1.在给表授权的时候.报错ORA-25191

检查该表为IOT 表 .

--因为不是按照单表方式授予权限,而是按照用户的方式授予权限,所以该表的父亲表都在该用户下,所以这个报错可以忽略。

2/

在参考了Using DBMS_SYS_SQL Package to grant Privilege留言板里有朋友继续问道,出现了以下错误:

ORA-25191: cannot reference overflow table of an index-organized table
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1474
ORA-06512: at line 9

查一下Oracle手册,我们看到:

ORA-25191 cannot reference overflow table of an index-organized table

Cause: An attempt was made to directly access the overflow table of an index-organized table.
Action: Issue the statement against the parent index-organized table containing the specified overflow table.

意思是说,对于Overflow的IOT表,只需要对父表进行授权即可。简单动手自己试试看也可以:

SQL> connect eygle/eygle
Connected.
SQL> CREATE TABLE TEST_IOT
2 (id NUMBER PRIMARY KEY,
3 C1 VARCHAR2(50),
4 C2 VARCHAR2(10))
5 ORGANIZATION INDEX PCTTHRESHOLD 10 OVERFLOW; Table created. SQL> col object_name for a30
SQL> select object_name,object_type from user_objects where object_name like '%IOT%'; OBJECT_NAME OBJECT_TYPE
------------------------------ ------------------
SYS_IOT_OVER_7370 TABLE
SYS_IOT_TOP_7370 INDEX
TEST_IOT TABLE SQL> grant select on SYS_IOT_OVER_7370 to scott;
grant select on SYS_IOT_OVER_7370 to scott
*
ERROR at line 1:
ORA-25191: cannot reference overflow table of an index-organized table SQL>

最新文章

  1. IMEI串号
  2. 【Beta】团队协作模式探讨试行
  3. EOS单向N对1关联
  4. 【未解决】CImage::Save / Load 导致“线程 0xc224 已退出,返回值为 1 (0x1)”
  5. mongodb数据库设计原则
  6. ubuntu 12.10无法用apt-get安装软件 Err http://us.archive.ubuntu.com quantal-updates/main Sources 404 Not
  7. Oracle ORA-00119和ORA-00132的解决方案
  8. [置顶] [VS2010]逸雨清风 永久稳定音乐外链生成软件V0.1
  9. winform C#屏幕右下角弹出消息框并自动消失
  10. Python4Delphi也是与VCL密切相关,所以才能相互调用,绝对有研究价值!
  11. ansible不配ssh连接,用户密码登录
  12. java阅读器hdfs单纯demo
  13. 用C++实现的八皇后问题
  14. 关于flask自带web应用服务器Werkzeug 使用requests请求时出现的错误。
  15. RCNN 目标识别基本原理
  16. 在pycharm中进行ORM操作
  17. 11.SolrCloud集群环境搭建
  18. Java 集合基础知识 List/Set/Map
  19. [2017BUAA软工]第2次个人作业
  20. 人工智能(Machine Learning)—— 机器学习

热门文章

  1. 线程安全 对StringBuilder抛出ArrayIndexOutOfBoundsException的探究
  2. 深度学习入门-4.1 AND.py 源码分析
  3. Ruby中任务构建工具rake的入门学习教程
  4. ie9浏览器中h标签的嵌套问题
  5. oracle问题系列 : ORA-02290: 违反检查约束条件
  6. webpack与grunt/glub 的比较
  7. 关于animate的一些属性
  8. BM算法模式匹配——字符串与KMP比较
  9. python-----删除列表中某个元素的3种方法
  10. http基础知识摘录