Skip to main content
Question

Error with set serveroutput on, PL/SQL script fails to execute in FME?

  • February 22, 2019
  • 3 replies
  • 36 views

0

 

I am running a script in FME SQL Creator reader. Script looks like,

set serveroutput on
declare var1 a;
BEGIN dbms_output.enable(); dbms_output.put_line ('TEST LINE'); END;

Script runs successfully in Oracle SQL Developer. But If I run from FME, it returns nothing.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 22, 2019

I think FME has no idea where to store this value or output the text.

Scripts in the SQLCreator are run to create a feature.

If you want 'TEST LINE' in var1 on a feature, you can use:

Select 'TEST LINE' as "var1" from Dual in the SQLCreator.


  • Author
  • February 22, 2019
erik_jan wrote:

I think FME has no idea where to store this value or output the text.

Scripts in the SQLCreator are run to create a feature.

If you want 'TEST LINE' in var1 on a feature, you can use:

Select 'TEST LINE' as "var1" from Dual in the SQLCreator.

Can you please tel me how to do that?


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 22, 2019
gauripearl wrote:

Can you please tel me how to do that?

For a new feature use the above query in the SQLCreator and expose var1.

For adding var1 to an existing feature, use the SQLExecutor with the query.

For help on these transformers, follow the link (transformer name).


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