<?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 Re: Splunk DB Connect 2: How to fetch and read XML data from BLOB and CLOB fields in MS SQL and Oracle database tables? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192763#M19782</link>
    <description>&lt;P&gt;Any answer for this&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 14:01:31 GMT</pubDate>
    <dc:creator>srinathd</dc:creator>
    <dc:date>2016-02-17T14:01:31Z</dc:date>
    <item>
      <title>Splunk DB Connect 2: How to fetch and read XML data from BLOB and CLOB fields in MS SQL and Oracle database tables?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192762#M19781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We're using Splunk DB Connect 2 on top of our DB (MS SQL server and Oracle DB). In most of our tables, we've BLOB and CLOB fields that contain XML.&lt;BR /&gt;
I would like to know how we can fetch and read the actual data from these fields?&lt;/P&gt;

&lt;P&gt;Thank you in advance,&lt;BR /&gt;
Moshe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2015 13:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192762#M19781</guid>
      <dc:creator>moshere</dc:creator>
      <dc:date>2015-08-25T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to fetch and read XML data from BLOB and CLOB fields in MS SQL and Oracle database tables?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192763#M19782</link>
      <description>&lt;P&gt;Any answer for this&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192763#M19782</guid>
      <dc:creator>srinathd</dc:creator>
      <dc:date>2016-02-17T14:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to fetch and read XML data from BLOB and CLOB fields in MS SQL and Oracle database tables?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192764#M19783</link>
      <description>&lt;P&gt;You need to use SQL to convert it to a char field&lt;/P&gt;

&lt;P&gt;E.g&lt;/P&gt;

&lt;P&gt;Select to_char(clob_field) from table&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192764#M19783</guid>
      <dc:creator>peterchenadded</dc:creator>
      <dc:date>2020-09-29T16:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to fetch and read XML data from BLOB and CLOB fields in MS SQL and Oracle database tables?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192765#M19784</link>
      <description>&lt;P&gt;The answer to this question is more about SQL than Splunk.  Here is what I do in Oracle, but you'll want to ask your DBA (I'm not a DBA by far).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT x.object_value.getCLOBVal() FROM XML_TABLE x;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Googling around, here's another way to skin that cat.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select
XMLType( BLOB_COLUMN,
         1 /* this is your character set ID.
                   1 == USASCII */
       ) as XML
from my_table;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Nov 2017 19:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192765#M19784</guid>
      <dc:creator>xavierashe</dc:creator>
      <dc:date>2017-11-08T19:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to fetch and read XML data from BLOB and CLOB fields in MS SQL and Oracle database tables?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192766#M19785</link>
      <description>&lt;P&gt;So far this is pretty ugly, but only substrings are working for me to extract from a clob. &lt;BR /&gt;
My system does not understand the XMLType data type. (DBX 3, Java 8 and Oracle JDBC driver for 18C)&lt;BR /&gt;
This runs...&lt;BR /&gt;
select DBMS_LOB.substr(a.My_OBJ, 3000 , 1) as MyXML1, DBMS_LOB.substr(a.My_OBJ, 3000 , 3000) as MyXML2 from MyTableWithClob a&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-fetch-and-read-XML-data-from-BLOB-and/m-p/192766#M19785</guid>
      <dc:creator>drodman29</dc:creator>
      <dc:date>2020-09-29T21:18:44Z</dc:date>
    </item>
  </channel>
</rss>

