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 comments:
Excellent comment, very helpful. That's exactly the problem I faced today and I found the answer right away in your blog. Thanks and keep on the good job.
Excellent comment, very helpful. That's exactly the problem I faced today and I found the answer right away in your blog. Thanks and keep on the good job.
Thank you, i just need that.
Thanks a lot, that was the solution for me!!!
Yep, you've helped me too. Exactly what I needed.
Saved me a lot of trouble. Thanks.
Finally; thanks.
Excellent you have saved my day
Regards,
Sankar
Your blog helps us to resolved the issue, we thank you and continue with good work!!
Aweseome, thanks for help
Post a Comment