<?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: How to insert clob column values in Oracle 11g database having more than 32000 characters from SAP MII in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-insert-clob-column-values-in-oracle-11g-database-having-more-than/qaa-p/8679183#M44999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I think this solution doesn't work for MII 12.1 but works for MII 12.2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - We're using Oracle 10g and it's needed to use the most recent driver:&lt;/P&gt;&lt;P&gt;"Oracle Database 10g Release 2 (10.2.0.5), (10.2.0.4), (10.2.0.3), (10.2.0.2), (10.2.0.1.0) drivers"&lt;/P&gt;&lt;P&gt;It can be downloaded here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html"&gt;http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's important to use ""Oracle Database 10g Release 2" to be independent from&amp;nbsp; property "SetBigStringTryClob = true".&lt;/P&gt;&lt;P&gt;Deploy this driver in SAP MII Portal -&amp;gt; System Resources -&amp;gt; JDBC Drivers. To make sure this driver is properly deployed, delete the older driver and test if SQL connection still working. Next, deploy the newer driver.&lt;/P&gt;&lt;P&gt;2 - In SQL Query, you need to use "Typed Parameters". I think "Typed Parameters" is a SAP MII 12.2 feature. So, set the Parameter Type of CLOB variable to "String".&lt;/P&gt;&lt;P&gt;3 - If you're using Fixed Query, remove the single quote in '[Param.X]':&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DECLARE&lt;BR /&gt;INS CLOB;&lt;BR /&gt;BEGIN&lt;BR /&gt;INS := '[Param.1]';&lt;BR /&gt;INSERT INTO clob_tab VALUES(INS);&lt;BR /&gt;END;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;to &lt;/P&gt;&lt;P&gt;DECLARE&lt;BR /&gt;INS CLOB;&lt;BR /&gt;BEGIN&lt;BR /&gt;INS := [Param.1];&lt;BR /&gt;INSERT INTO clob_tab VALUES(INS);&lt;BR /&gt;END;&lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I think this change is necessary because [Param.1] behaves like "?" in Prepared Statement.&lt;/P&gt;&lt;P&gt;4 - This solution worked with "Command" mode in SQL Query. But we've faced some problems with "FixedQueryWithOutput" Mode.&lt;/P&gt;&lt;P&gt;After this configuration, we can to persist more than 32 Kbytes in a CLOB column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre Sardinha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 19:28:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-05T19:28:57Z</dc:date>
    <item>
      <title>How to insert clob column values in Oracle 11g database having more than 32000 characters from SAP MII</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-insert-clob-column-values-in-oracle-11g-database-having-more-than/qaq-p/8679182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our project there is a situation where very large error messages are getting generated. So initially our database was planned to have the errormessage column as LONG datatype and simple insertion to Oracle database was happening through simple SQL fixed queries in MII. &lt;/P&gt;&lt;P&gt;Now for the changed situation was planning to make that column CLOB datatype . &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;How can we insert large values to CLOB columns using MII 12.1 ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 04:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-insert-clob-column-values-in-oracle-11g-database-having-more-than/qaq-p/8679182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-12T04:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert clob column values in Oracle 11g database having more than 32000 characters from SAP MII</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-insert-clob-column-values-in-oracle-11g-database-having-more-than/qaa-p/8679183#M44999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I think this solution doesn't work for MII 12.1 but works for MII 12.2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - We're using Oracle 10g and it's needed to use the most recent driver:&lt;/P&gt;&lt;P&gt;"Oracle Database 10g Release 2 (10.2.0.5), (10.2.0.4), (10.2.0.3), (10.2.0.2), (10.2.0.1.0) drivers"&lt;/P&gt;&lt;P&gt;It can be downloaded here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html"&gt;http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's important to use ""Oracle Database 10g Release 2" to be independent from&amp;nbsp; property "SetBigStringTryClob = true".&lt;/P&gt;&lt;P&gt;Deploy this driver in SAP MII Portal -&amp;gt; System Resources -&amp;gt; JDBC Drivers. To make sure this driver is properly deployed, delete the older driver and test if SQL connection still working. Next, deploy the newer driver.&lt;/P&gt;&lt;P&gt;2 - In SQL Query, you need to use "Typed Parameters". I think "Typed Parameters" is a SAP MII 12.2 feature. So, set the Parameter Type of CLOB variable to "String".&lt;/P&gt;&lt;P&gt;3 - If you're using Fixed Query, remove the single quote in '[Param.X]':&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DECLARE&lt;BR /&gt;INS CLOB;&lt;BR /&gt;BEGIN&lt;BR /&gt;INS := '[Param.1]';&lt;BR /&gt;INSERT INTO clob_tab VALUES(INS);&lt;BR /&gt;END;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;to &lt;/P&gt;&lt;P&gt;DECLARE&lt;BR /&gt;INS CLOB;&lt;BR /&gt;BEGIN&lt;BR /&gt;INS := [Param.1];&lt;BR /&gt;INSERT INTO clob_tab VALUES(INS);&lt;BR /&gt;END;&lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I think this change is necessary because [Param.1] behaves like "?" in Prepared Statement.&lt;/P&gt;&lt;P&gt;4 - This solution worked with "Command" mode in SQL Query. But we've faced some problems with "FixedQueryWithOutput" Mode.&lt;/P&gt;&lt;P&gt;After this configuration, we can to persist more than 32 Kbytes in a CLOB column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre Sardinha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 19:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-insert-clob-column-values-in-oracle-11g-database-having-more-than/qaa-p/8679183#M44999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-05T19:28:57Z</dc:date>
    </item>
  </channel>
</rss>

