暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

What's mean ORA-25191?

原创 eygle 2005-05-09
1338
在参考了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>
复制

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论