oracle 创建空间全文索引失败

本文介绍了如何确保目标用户具备在Oracle数据库中创建或重建Spatial索引所需的CREATETABLE和CREATESEQUENCE权限。若缺少这些权限,则会遇到一系列错误,如ORA-29855等。文章提供了检查及授予权限的具体SQL语句。

If you ever want to create or rebuild an oracle spatial index in another schema, you need to make sure that the target user has CREATE TABLE and CREATE SEQUENCE granted.

select privilege 
from DBA_SYS_PRIVS 
where privilege in ('CREATE TABLE', 'CREATE SEQUENCE' )
and grantee = 'TARGET_SCHEMA'


and if they don't have it

grant CREATE TABLE to target_schema;
grant CREATE SEQUENCE to target_schema;


otherwise you will get these errors, hope this helps someone :)

ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine 
ORA-13249: internal error in Spatial index: [mdidxrbd] 
ORA-13249: Error in Spatial index: index build failed 
ORA-13249: Error in R-tree: [mdrcrtscrt] 
ORA-13231: failed to create index table [MDRT_11CBE$] during R-tree creation 
ORA-13249: Stmt-Execute Failure: CREATE TABLE -----snip-----
ORA-29400: data cartridge error 
ORA-01031: insufficient privileges ORA-06512: at ""MDSYS.SDO_INDEX_METHOD_10I"", line 10 "
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值