<?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 How do we handle CLOB datatype columns in Incorta? in Data &amp; Schema Discussions</title>
    <link>https://community.incorta.com/t5/data-schema-discussions/how-do-we-handle-clob-datatype-columns-in-incorta/m-p/949#M18</link>
    <description>&lt;P&gt;How do we handle CLOB datatype columns in Incorta?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 15:53:30 GMT</pubDate>
    <dc:creator>amit_kothari</dc:creator>
    <dc:date>2022-04-08T15:53:30Z</dc:date>
    <item>
      <title>How do we handle CLOB datatype columns in Incorta?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/how-do-we-handle-clob-datatype-columns-in-incorta/m-p/949#M18</link>
      <description>&lt;P&gt;How do we handle CLOB datatype columns in Incorta?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:53:30 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/how-do-we-handle-clob-datatype-columns-in-incorta/m-p/949#M18</guid>
      <dc:creator>amit_kothari</dc:creator>
      <dc:date>2022-04-08T15:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle CLOB datatype columns in Incorta?</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/how-do-we-handle-clob-datatype-columns-in-incorta/m-p/950#M19</link>
      <description>&lt;P&gt;Incorta cannot directly ingest CLOB datatypes, what we can do is to use some sql string functions to parse out the values we need directly in the extract. For eg in Siebel the Audit table has a clob field called audit_log which has the old and new values for any changes. Here are two examples from oracle database-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp; This select parses out the new value of the timestamp -&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT
  tbl_record_id,
   to_date(REGEXP_SUBSTR(dbms_lob.substr(audit_log,300,1), '[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]'),'yyyy-mm-dd HH24:mi:ss')  new_val,
  operation_dt
FROM
  siebel.s_audit_item
WHERE instr(audit_log,'X_ALT_RESL_DATE') &amp;gt;= 1
AND tbl_name='S_EVT_ACT'&lt;/LI-CODE&gt;
&lt;P&gt;2)&amp;nbsp;&amp;nbsp;This select parses out the new value of a status based on a pattern-&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select tbl_record_id,
substr(AUDIT_LOG,instr(AUDIT_LOG,'*',1,4)+1,instr(AUDIT_LOG,'*',1,5)-instr(AUDIT_LOG,'*',1,4)-2) as new_val,
operation_dt
from siebel.s_audit_item
where tbl_name='S_EVT_ACT_X'
and instr(AUDIT_LOG,'ATTRIB_46') &amp;gt;= 1&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:54:53 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/how-do-we-handle-clob-datatype-columns-in-incorta/m-p/950#M19</guid>
      <dc:creator>amit_kothari</dc:creator>
      <dc:date>2022-04-08T15:54:53Z</dc:date>
    </item>
  </channel>
</rss>

