Skip to main content
Question

FME and Oracle

  • July 22, 2013
  • 9 replies
  • 27 views

Forum|alt.badge.img
Hello,

 

 

Is it possilble to remove an Oracle table by FME. Transform SQLExecutor and instruction "Name_Table DROP TABLE" does not work. Thank you for your return.
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.

9 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • July 22, 2013
Hi,

 

 

Maybe this will work: DROP TABLE table_name

Forum|alt.badge.img
Sorry, no the instuction "DROP TABLE table_name" doesn't work

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • July 22, 2013
Hi,

 

 

It should work, just confirmed it here. then it can be a matter of priviledges, do you have the correct rights to drop a table?

 

 


Forum|alt.badge.img
Yes I confirm to you the statement "DROP TABLE table_name" does not work. I have the correct rights to DROP the table. Some information, my table to remove is in INPUT, it is connected to the INPUT port of the transformer. And there is no table after the transformer.

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • July 22, 2013
Hallo,

 

 

If you are only interested in executing the sql then use the SQL creator, if you need to execute sql inmid translation use the sql executor.

 

The sql creator doesnt need a trigger and therefore has no input port.

takashi
Celebrity
  • July 22, 2013
Hi,

 

 

> And there is no table after the transformer   It means the table has been removed? If some error messages are shown on the Log window, could you post them?

 

 

Takashi

Forum|alt.badge.img

Hi,

 

 

In fact I wanted a transformer to remove an Oracle table.

 

 

If I put in entry the table to be deleted and then the transformer SQLExecutor with the command "DROP table table_name" then the table is not deleted, but I have not an error message.

 

 

As against the SQLcreator turn works with the command "DROP table table_name" and the table is deleted.

 

 

Thanks a lot for your help

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • July 22, 2013
Hi,

 

 

The sql executor can also work, but you dont need to input the table as an input for the transformer. A singel feature from the creator (for example) can trigger the sql executor to execute the drop command.

 

In the sql executor you configure the db connection and table(s) on which to execute the sql.

 

 

Itay

  • August 20, 2013

I don't know if this was already solved, but everytime I need to DROP, DELETE, UPDATE or INSERT something, I need to use a "Commit" inside SQLExecutor.

 

Example:

FME_SQL_DELIMITER ;     (Declares ";" as a separator/delimiter)

 

DROP TABLE table_name;    (Command to execute)

 

commit;     (Commit work)

 

 

This works fine for me. Have you tried it?