<?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>topic Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/243264#M6361</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running into an issue, maybe someone has some experience with it. We're trying to insert XML text into an Oracle table with a column that has a data type of XMLTYPE. Under the hood, Oracle stores this as a CLOB, with special XML handling abilities. But DM Studio cannot handle this insertion. We got the below error message, which is extremely misleading as it is not a DATE issue -- we tested to be sure - we do have a date column in the table, but that is not the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[HY000] [DataFlux][ODBC Oracle Wire Protocol driver][Oracle]ORA-01483: invalid length for DATE or NUMBER bind variable (1483) [ODST38]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When we changed the type of the column from XMLTYPE to CLOB, the insertion worked. so the question is: Can the DM Studio handle XMLTYPE data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - mark&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 17:13:46 GMT</pubDate>
    <dc:creator>mal</dc:creator>
    <dc:date>2016-01-13T17:13:46Z</dc:date>
    <item>
      <title>Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/243264#M6361</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running into an issue, maybe someone has some experience with it. We're trying to insert XML text into an Oracle table with a column that has a data type of XMLTYPE. Under the hood, Oracle stores this as a CLOB, with special XML handling abilities. But DM Studio cannot handle this insertion. We got the below error message, which is extremely misleading as it is not a DATE issue -- we tested to be sure - we do have a date column in the table, but that is not the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[HY000] [DataFlux][ODBC Oracle Wire Protocol driver][Oracle]ORA-01483: invalid length for DATE or NUMBER bind variable (1483) [ODST38]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When we changed the type of the column from XMLTYPE to CLOB, the insertion worked. so the question is: Can the DM Studio handle XMLTYPE data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - mark&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/243264#M6361</guid>
      <dc:creator>mal</dc:creator>
      <dc:date>2016-01-13T17:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/244172#M6411</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The driver documentation says the following:&lt;/P&gt;
&lt;PRE&gt;The driver supports tables containing columns whose data type is specified as XMLType, &lt;BR /&gt;except those with binary or object relational storage.&lt;/PRE&gt;
&lt;P&gt;Are you in that case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Audrey&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 08:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/244172#M6411</guid>
      <dc:creator>audrey</dc:creator>
      <dc:date>2016-01-18T08:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/249060#M6628</link>
      <description>&lt;P&gt;Hi Audrey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the very late reply -- it got crunchy around here for a few weeks. To answer your question, we do not have either of those two types of database. Normal Oracle installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're inserting our XML into a CLOB column, but we're finding it is consistently truncated at&amp;nbsp;65536 chars.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/249060#M6628</guid>
      <dc:creator>mal</dc:creator>
      <dc:date>2016-02-09T20:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/299012#M8458</link>
      <description>&lt;P&gt;Hi mal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find a solution for loading more than 65536 characters? I have the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ananth&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/299012#M8458</guid>
      <dc:creator>ananthtony</dc:creator>
      <dc:date>2016-09-16T18:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/299023#M8459</link>
      <description>&lt;P&gt;Hi Ananth,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I meant to get back and post what we found regarding this issue.&amp;nbsp;I apologize to those who may have been waiting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is caused by&amp;nbsp;a defect in the Data Management architecture (not the database drivers). This was acknowledged by SAS Support. Here's the problem: When you read from or write to an Oracle column type CLOB (the underlying type of XMLTYPE), the data is truncated to 64 kb. That's both&amp;nbsp;reading&amp;nbsp;or writing.&amp;nbsp;And it's a silent failure, which make this&amp;nbsp;a fairly significant issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When this was confirmed by SAS, the last we heard on this issue was that it is on the official defect list, and that they understand it's a serious issue. Haven't heard anything regarding an estimate as to when it is anticipated to be fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How we worked around this was to create a utility PL/SQL procedure, that took in something like a dozen parameters or more (we based this on the largest&amp;nbsp;length we could find in our data set). The majority of these parameters were VARCHAR2 of length 64 kb. The parameter values&amp;nbsp;would be "assembled" in the procedure,&amp;nbsp;&amp;nbsp;and&amp;nbsp;written to the table.column that we needed. Obviously a hack, but we needed one given the circumstances -- and this only enables writing, not reading. We would then call this procedure from&amp;nbsp;the data job&amp;nbsp;after first tokenizing the data into 64 kb pieces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - mark&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 19:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/299023#M8459</guid>
      <dc:creator>mal</dc:creator>
      <dc:date>2016-09-16T19:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Management Studio 2.6 cannot insert data into Oracle data type XMLTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/299031#M8460</link>
      <description>&lt;P&gt;Thanks for the reply Marc. I will have to implement the same logic at my end.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Management-Studio-2-6-cannot-insert-data-into-Oracle-data/m-p/299031#M8460</guid>
      <dc:creator>ananthtony</dc:creator>
      <dc:date>2016-09-16T20:11:22Z</dc:date>
    </item>
  </channel>
</rss>

