<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi Set Bind Variable in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/280473#M208873</link>
    <description>&lt;P&gt;I found the solution: Create the procedure which takes parameter in Oracle side and use Execute SQL to run the procedure( give the flowfile attribute as the parameter of the procedure)&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 13:15:48 GMT</pubDate>
    <dc:creator>bilbusra</dc:creator>
    <dc:date>2019-10-17T13:15:48Z</dc:date>
    <item>
      <title>Apache Nifi Bind Variable- Oracle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/279878#M208517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a Nifi workflow that puts data from MS SQL to Oracle.&amp;nbsp; I have some queries that I used " binding" such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;where MUST.MID = ${MID} and not exists (select a_id from tbl_a where a_id = ${MID}).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the variables behaves like "literal" variables on Oracle. (it runs everytime such as&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;where MUST.MID = 50 and not exists (select a_id from tbl_a where a_id = 50)&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What can I do for binding in Oracle part?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:51:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/279878#M208517</guid>
      <dc:creator>bilbusra</dc:creator>
      <dc:date>2019-10-10T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi Bind Variable- Oracle</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/279962#M208571</link>
      <description>&lt;P&gt;I mean is there any way to set a parameter with a flowfile attribute and also send the query as it is binded(such as MID = :B&lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:35:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/279962#M208571</guid>
      <dc:creator>bilbusra</dc:creator>
      <dc:date>2019-10-11T08:35:25Z</dc:date>
    </item>
    <item>
      <title>Nifi Set Bind Variable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/279985#M208626</link>
      <description>&lt;P&gt;How Can I use the attributes of flowfile as a setter parameter to Oracle bind variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;variable Bdetail varchar(1000)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;variable BMID NUMBER&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;variable BCont Varchar(1000)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;:Bdetail := ${DETAILS}&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;:BMID := ${MID}&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;:BCont := '${CONTACT_TYPE}'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;UPDATE TBLM SET Phone = :Bdetail &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; WHERE MUSTERI_ID = :BMID&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AND :BCont = 'MOBILE' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:04:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/279985#M208626</guid>
      <dc:creator>bilbusra</dc:creator>
      <dc:date>2019-10-11T14:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Set Bind Variable</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/280473#M208873</link>
      <description>&lt;P&gt;I found the solution: Create the procedure which takes parameter in Oracle side and use Execute SQL to run the procedure( give the flowfile attribute as the parameter of the procedure)&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 13:15:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Bind-Variable-Oracle/m-p/280473#M208873</guid>
      <dc:creator>bilbusra</dc:creator>
      <dc:date>2019-10-17T13:15:48Z</dc:date>
    </item>
  </channel>
</rss>

