<?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 change SQL to URL-encoded SQL query for dbxquery? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123110#M9554</link>
    <description>&lt;P&gt;Most of the time you need to replace space with %20. For other characters check &lt;A href="http://www.w3schools.com/tags/ref_urlencode.asp"&gt;http://www.w3schools.com/tags/ref_urlencode.asp&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT%20*%20FROM%20%22USER_ADDR%22
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Jul 2015 20:40:45 GMT</pubDate>
    <dc:creator>hmozaffari</dc:creator>
    <dc:date>2015-07-16T20:40:45Z</dc:date>
    <item>
      <title>Splunk DB Connect 2: How to change SQL to URL-encoded SQL query for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123109#M9553</link>
      <description>&lt;P&gt;I have used DB connect 2 to estabilish a connection to an Oracle database. Now I want to use dbxquery to search the oracle table, but to run the dbxquery command, I must first URL encode the SQL query and I have no idea how to do this. For example, I search a table using &lt;CODE&gt;SELECT * FROM "USER_ADDR"&lt;/CODE&gt;  but how do I change this to a URL encoded query and where I can learn how to do it?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123109#M9553</guid>
      <dc:creator>pop1989</dc:creator>
      <dc:date>2015-07-15T06:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to change SQL to URL-encoded SQL query for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123110#M9554</link>
      <description>&lt;P&gt;Most of the time you need to replace space with %20. For other characters check &lt;A href="http://www.w3schools.com/tags/ref_urlencode.asp"&gt;http://www.w3schools.com/tags/ref_urlencode.asp&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT%20*%20FROM%20%22USER_ADDR%22
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jul 2015 20:40:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123110#M9554</guid>
      <dc:creator>hmozaffari</dc:creator>
      <dc:date>2015-07-16T20:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to change SQL to URL-encoded SQL query for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123111#M9555</link>
      <description>&lt;P&gt;hi ,hmozaffari&lt;/P&gt;

&lt;H2&gt;      the url -encoded is HTML URL?  the url  &lt;A href="http://www.w3schools.com/tags/ref_urlencode.asp" target="_blank"&gt;http://www.w3schools.com/tags/ref_urlencode.asp&lt;/A&gt; couldn't be open ,and then ,I open &lt;A href="http://www.w3school.com.cn/tags/html_ref_urlencode.html" target="_blank"&gt;http://www.w3school.com.cn/tags/html_ref_urlencode.html&lt;/A&gt; ,but I don't know if it right . could you help check the follow error&lt;/H2&gt;

&lt;H2&gt;select C.CHAIN_ID,C.LOG_ID,C.DATUM,C.ZEIT,C.ANALYZED_STATUS,R.TYPE,R.EVENTP_START from RSPCLOGCHAIN C,RSPCPROCESSLOG R where C.LOG_ID=R.LOG_ID and (C.ANALYZED_STATUS='X' OR C.ANALYZED_STATUS='R')  ORDER BY C.DATUM DESC&lt;/H2&gt;

&lt;P&gt;|dbxquery query="select%20C.CHAIN_ID%2CC.LOG_ID%2CC.DATUM%2CC.ZEIT%2CC.ANALYZED_STATUS%2CR.TYPE%2CR.EVENTP_START%20from%20RSPCLOGCHAIN%20C%2CRSPCPROCESSLOG%20R%20where%20C.LOG_ID%3DR.LOG_ID%20and%20%28C.ANALYZED_STATUS%3D%27X%27%20OR%20C.ANALYZED_STATUS%3D%27R%27%29%20%20ORDER%20BY%20C.DATUM%20DESC&lt;/P&gt;

&lt;H2&gt;" connection="p11_connection" maxrows=100&lt;/H2&gt;

&lt;P&gt;************ command="dbxquery", No JSON object could be decoded*************&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123111#M9555</guid>
      <dc:creator>pop1989</dc:creator>
      <dc:date>2020-09-29T06:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to change SQL to URL-encoded SQL query for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123112#M9556</link>
      <description>&lt;P&gt;Any answers for this one , we were able to work with the SQL queries using dbquery in DB connect 1 but are facing issues with DB COnnect 2 (dbxquery). Please help on this.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123112#M9556</guid>
      <dc:creator>suryaavinash</dc:creator>
      <dc:date>2015-08-04T07:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to change SQL to URL-encoded SQL query for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123113#M9557</link>
      <description>&lt;P&gt;You could do convert it using online tools&lt;BR /&gt;
     &lt;A href="http://meyerweb.com/eric/tools/dencoder/"&gt;http://meyerweb.com/eric/tools/dencoder/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123113#M9557</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2015-08-04T07:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: How to change SQL to URL-encoded SQL query for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123114#M9558</link>
      <description>&lt;P&gt;I suspect the JSON error you receive is not because of query encoding. After query is executed and database returns the results, the content has a special characters which are not JSON friendly, since results is returned through REST API and in JSON format. To verify it simplify your query and instead of asking for all columns change it to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select%20C.CHAIN_ID%20from...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also you don't need to encode comma to %2C.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 12:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-How-to-change-SQL-to-URL-encoded-SQL-query/m-p/123114#M9558</guid>
      <dc:creator>hmozaffari</dc:creator>
      <dc:date>2015-08-04T12:09:08Z</dc:date>
    </item>
  </channel>
</rss>

