<?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: Inserting CLOB into Datbase throws ORA-01704 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Inserting-CLOB-into-Datbase-throws-ORA-01704/m-p/387474#M246322</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106217"&gt;@Anderosn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. If the content of your flow file is too large to be inserted into a single CLOB column, you can split it into smaller chunks and insert each chunk into the database separately.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;Instead of storing the content in a CLOB column, you can consider storing it in a BLOB (Binary Large Object) column in your database. BLOB columns can store binary data, including large files, without the size limitations of CLOB columns. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;Store the content of the flow file in an external storage system (e.g., HDFS, Amazon S3) and then insert the reference (e.g., file path or URL) into the database. This approach can be useful if the database has limitations on the size of CLOB or BLOB columns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;If ExecuteScript is not approved, consider using an external script or application to perform the insertion into the database. You can trigger the script or application from NiFi using ExecuteProcess or InvokeHTTP processors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chethan YM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 12:28:12 GMT</pubDate>
    <dc:creator>ChethanYM</dc:creator>
    <dc:date>2024-05-01T12:28:12Z</dc:date>
    <item>
      <title>Inserting CLOB into Datbase throws ORA-01704</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Inserting-CLOB-into-Datbase-throws-ORA-01704/m-p/377596#M243303</link>
      <description>&lt;P&gt;I have a flow file which needs to be saved to Database. Size of flow file content can be &amp;lt;= 2 MB.&amp;nbsp;&lt;BR /&gt;I have tried the PutSQL but it throws&amp;nbsp; ORA-01704 as the insert statement with CLOB in it becomes too large.&amp;nbsp;&lt;BR /&gt;I have tried using PutDatabaseRecord, but it doesn't store complete flowfile in teh clob column, Information that it stores is this "&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;apRecord[{&lt;/SPAN&gt;&lt;SPAN&gt;responseMetadata=MapRecord[{responseType=ACTIVITY,&lt;/SPAN&gt; &lt;SPAN&gt;activityDataExist=true,&lt;/SPAN&gt; &lt;SPAN&gt;partNo=1,&lt;/SPAN&gt; &lt;SPAN&gt;noOfParts=6&lt;/SPAN&gt;&lt;SPAN&gt;}], &lt;/SPAN&gt;&lt;SPAN&gt;responseData=MapRecord[{&lt;/SPAN&gt;&lt;SPAN&gt;responseList=[Ljava.lang.Object;@676af33&lt;/SPAN&gt;&lt;SPAN&gt;}]}]"&lt;BR /&gt;&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151" target="_blank"&gt;@cotopaul&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381" target="_blank"&gt;@SAMSAL&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454" target="_blank"&gt;@MattWho&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503" target="_blank"&gt;@steven-matison&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438" target="_blank"&gt;@TimothySpann&lt;/A&gt;&amp;nbsp; Can you pls look into this&lt;BR /&gt;looks like it is wrapping the Json with MapRecord.&amp;nbsp;&lt;BR /&gt;Can someone pls suggest how to insert a flowfile content into a CLOB column in DB.&amp;nbsp;&lt;BR /&gt;I cannot use ExecuteScript to use PL/SQL ( ExecuteScript is not approved to use by Nifi team in my company).&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Oct 2023 15:44:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Inserting-CLOB-into-Datbase-throws-ORA-01704/m-p/377596#M243303</guid>
      <dc:creator>Anderosn</dc:creator>
      <dc:date>2023-10-13T15:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting CLOB into Datbase throws ORA-01704</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Inserting-CLOB-into-Datbase-throws-ORA-01704/m-p/387474#M246322</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106217"&gt;@Anderosn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. If the content of your flow file is too large to be inserted into a single CLOB column, you can split it into smaller chunks and insert each chunk into the database separately.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;Instead of storing the content in a CLOB column, you can consider storing it in a BLOB (Binary Large Object) column in your database. BLOB columns can store binary data, including large files, without the size limitations of CLOB columns. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;Store the content of the flow file in an external storage system (e.g., HDFS, Amazon S3) and then insert the reference (e.g., file path or URL) into the database. This approach can be useful if the database has limitations on the size of CLOB or BLOB columns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;If ExecuteScript is not approved, consider using an external script or application to perform the insertion into the database. You can trigger the script or application from NiFi using ExecuteProcess or InvokeHTTP processors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chethan YM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 12:28:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Inserting-CLOB-into-Datbase-throws-ORA-01704/m-p/387474#M246322</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2024-05-01T12:28:12Z</dc:date>
    </item>
  </channel>
</rss>

