Skip to main content
Solved

CREATE INDEX ON ORA_TABLE

  • December 8, 2016
  • 2 replies
  • 19 views

perry
Forum|alt.badge.img+2

Hello FME experts,

I create an ORA table with in the format parameters:

- spatial column GEOMETRIE

- create spatial Index YES

- drop existing Index YES

- spatial index name TST_IDX

I also need an index on the attribute ID so I use the SQL statement to Excecute after Translation:

- CREATE INDEX table1_i ON table1 (ID)

This works fine.

Question: How can I create an other index on a different table also with a spatial index.

I put an extra line into the SQL statement as follows:

CREATE INDEX table1_i ON table1 (ID)

 

CREATE INDEX table2_i ON table 2 (ID)

I have used seperations between the lines (; , ' ') but nothing seems to work

error was `ORA-02158:

....

How can I but indexes on different tables after I created an ORA-table?

Best answer by itay

Hi @perry when using multiple SQL statements you need to use de FME  SQL delimiter in the beginning of your statement

FME_SQL_DELIMITER ;

CREATE INDEX table1_i ON table1 (ID); 
CREATE INDEX table2_i ON table 2 (ID)
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • Best Answer
  • December 8, 2016

Hi @perry when using multiple SQL statements you need to use de FME  SQL delimiter in the beginning of your statement

FME_SQL_DELIMITER ;

CREATE INDEX table1_i ON table1 (ID); 
CREATE INDEX table2_i ON table 2 (ID)

perry
Forum|alt.badge.img+2
  • Author
  • December 8, 2016

Hi @perry when using multiple SQL statements you need to use de FME  SQL delimiter in the beginning of your statement

FME_SQL_DELIMITER ;

CREATE INDEX table1_i ON table1 (ID); 
CREATE INDEX table2_i ON table 2 (ID)

Yes it works,Thnks for your quick response.