Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

executeSql bind query

avatar
Explorer

How can I send select queries to the Oracle database to be binded with the executeSql processor in Apache NiFi 1.23.2 version?

1 REPLY 1

avatar
Master Collaborator

Hello @hus, 

Directly the ExecuteSQL processor does not support binding. 
The input should be directly SQL query. 
https://nifi.apache.org/components/org.apache.nifi.processors.standard.ExecuteSQL/

But, according to the API docs, the processor can be started via a FlowFile: 
https://javadoc.io/static/org.apache.nifi/nifi-standard-processors/2.4.0/org/apache/nifi/processors/...
So technically you should be able to start this query by using ReplaceText to inject values dynamically, for example. 


Regards,
Andrés Fallas
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.