Skip to main content
Question

Oracle spatial Index


raphael
Participant
Forum|alt.badge.img
Hello,

 

 

How can i choose my tablespace when i create my spatial index with FME 2013 ?

 

 

Thank you

 

 

Raphael

8 replies

david_r
Celebrity
  • July 11, 2013
Hi,

 

 

under the Writer feature type, go to properties and "Format parameters". You can specify the "Spatial index name" there, try doing it on the form MYSCHEMA.MYINDEXNAME, where MYSCHEMA has the desired index tablespace as default tablespace.

 

 

I haven't tested it, but it might / should work...

 

 

David

raphael
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 11, 2013
Hello David,

 

 

Thank you

 

I've tested your solution but the translation failed

 

 

Execution of statement `CREATE INDEX ME_EDS_IDX.TEST_INDEX ON TEST_INDEX2(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX' did not succeed; error was `ORA-28100: schéma de fonction de règle ME_EDS_IDX non valide'.

david_r
Celebrity
  • July 11, 2013
Bonjour Raph,

 

 

are you certain that ME_EDS_IDX is the name of a schema and not a tablespace?

 

 

David

raphael
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 11, 2013
I'm sur, ME_EDS_IDX is a tablespace

 

 

Raphael

david_r
Celebrity
  • July 11, 2013
Well, there is your error :-)

 

 

You need to specify a SCHEMA.

 

 

David

raphael
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 11, 2013
David,

 

 

if I use this sql command my index is ok

 

 

CREATE INDEX TEST_INDEX ON TEST_INDEX2(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('tablespace=bdp_idx');

 

 

Raphael

 


david_r
Celebrity
  • July 11, 2013
Raphael, 

 

 

If that works, you could also just disable the spatial index on the Writer, then create it manually with your command using an SQLExecutor.

 

 

David

raphael
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 11, 2013
Thank you David,

 

 

I think I will keep the sqlexecutor

 

 

Raphael

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings