<?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: Execute Oracle Procedure from Splunk DB Connect Version:3.6.0 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666144#M228527</link>
    <description>&lt;P&gt;&lt;BR /&gt;As per the documentation you need to have the (?) when using Oracle, as I understand it that is for the OUT REFCURSOR, if I take it out I get an error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-25 133951.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27780i96FE294589CBB044/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-25 133951.png" alt="Screenshot 2023-10-25 133951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Plus when there is no data to return I get this from Splunk so it works with (?)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-25 134641.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27781i7D8BE865AC328AF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-25 134641.png" alt="Screenshot 2023-10-25 134641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which matches what I see when the SQL run directly from the server&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-25 134755.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27782iB67D8810796E8018/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-25 134755.png" alt="Screenshot 2023-10-25 134755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be when there is data to be returned but I am not sure what the issue is. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 12:58:41 GMT</pubDate>
    <dc:creator>MikeyD100</dc:creator>
    <dc:date>2023-10-25T12:58:41Z</dc:date>
    <item>
      <title>Execute Oracle Procedure from Splunk DB Connect Version:3.6.0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/640358#M221899</link>
      <description>&lt;P&gt;I am using DB Connect&amp;nbsp;Version:3.6.0&lt;BR /&gt;&lt;BR /&gt;I am trying to execute an Oracle procedure from DB Connect&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Oracle procedure returns a number of REF CURSORS but has no in parameters&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;create or replace PROCEDURE GET_SOME_LOG_MONITORING&lt;BR /&gt;(po_error_log_details_01 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_02 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_03 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_04 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_05 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_06 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_07 out SYS_REFCURSOR,&lt;BR /&gt;po_error_log_details_08 out SYS_REFCURSOR&lt;BR /&gt;)&lt;BR /&gt;AS .......&lt;BR /&gt;&lt;BR /&gt;However I can't seem to call the procedure from DB Connect successfully&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| dbxquery connection="SOME-CONNECTION" procedure="{call SOMESCHEMA.GET_SOME_LOG_MONITORING(?,?,?,?,?,?,?,?) }"&lt;BR /&gt;&lt;BR /&gt;However when I run this I get the following error&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;java.sql.SQLException: Missing IN or OUT parameter at index:: 2&lt;BR /&gt;&lt;BR /&gt;Which suggests I am missing an input parameter but I don't have any input parameter that needs to be passed in.&lt;BR /&gt;&lt;BR /&gt;The procedure can be successfully&amp;nbsp;executed from within SQL developer so I know that the procedure works fine. It just&amp;nbsp;seems to be an issue when I try to call this from Splunk DB Connect.&lt;BR /&gt;&lt;BR /&gt;Also how would I go about getting this set up as an input in Spunk DB Connect so that it executes the procedure every 60mins and then anything that is returned is indexed so that I can create an alert on the back of this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/640358#M221899</guid>
      <dc:creator>MikeyD100</dc:creator>
      <dc:date>2023-04-18T13:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Oracle Procedure from Splunk DB Connect Version:3.6.0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/640506#M221933</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234543"&gt;@MikeyD100&lt;/a&gt;&amp;nbsp;- I'm no expert with DB connect or Oracle, but I think you need to pass &lt;STRONG&gt;params&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Kindly check the documentation -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/DBX/3.12.2/DeployDBX/Commands" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/3.12.2/DeployDBX/Commands&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VatsalJagani_0-1681881635549.png" style="width: 650px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24964iE068E28605613E63/image-dimensions/650x505?v=v2" width="650" height="505" role="button" title="VatsalJagani_0-1681881635549.png" alt="VatsalJagani_0-1681881635549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!! Kindly upvote if it does!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 05:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/640506#M221933</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-19T05:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Oracle Procedure from Splunk DB Connect Version:3.6.0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666123#M228519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Sorry for the delay in coming back to you on this to you.&lt;BR /&gt;&lt;BR /&gt;I have read this documentation and got the procedure to only return one OUT REFCURSOR. I don't need to pass in anything so there is no need pass&amp;nbsp;params&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;create or replace PROCEDURE &lt;SPAN&gt;GET_SOME_LOG_MONITORING&lt;/SPAN&gt;&lt;BR /&gt;(po_error_log_details_01 out SYS_REFCURSOR&lt;BR /&gt;)&lt;BR /&gt;AS.........&lt;BR /&gt;&lt;BR /&gt;I can now successfully call the procedure using the below however I get no data returned from the SYS_REFCURSOR&lt;BR /&gt;&lt;BR /&gt;| dbxquery connection=&lt;SPAN&gt;"SOME-CONNECTION"&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;procedure="{call I&lt;SPAN&gt;SOMESCHEMA.GET_SOME_LOG_MONITORING&lt;/SPAN&gt;(?)}"&lt;BR /&gt;&lt;BR /&gt;However when I get a DBA to log into the database directly on the server with the same user that Splunk is using to execute the PROCEDURE they get the following results returned.&lt;BR /&gt;&lt;BR /&gt;TIMESTAMP&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;CORRELATION&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;TO_CHAR(MSGXML)&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;25-OCT-23 11.33.40.968589 AM&lt;BR /&gt;a2306D43d6606aa67f8jgrg21&lt;BR /&gt;{"errors":[{"code":"500.12.004","description":"ProviderServiceFailure"}]}&lt;BR /&gt;&lt;BR /&gt;25-OCT-23 11.33.44.569205 AM&lt;BR /&gt;a2306D43d6606aa67f8jgrg21&lt;BR /&gt;{"errors":[{"code":"500.12.004","description":"ProviderServiceFailure"}]}&lt;BR /&gt;&lt;BR /&gt;TIMESTAMP&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;CORRELATION&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;TO_CHAR(MSGXML)&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;25-OCT-23 11.33.47.144192 AM&lt;BR /&gt;a2306D43d6606aa67f8jgrg21&lt;BR /&gt;{"errors":[{"code":"500.12.004","description":"ProviderServiceFailure"}]}&lt;BR /&gt;&lt;BR /&gt;25-OCT-23 11.33.49.823233 AM&lt;BR /&gt;a2306D43d6606aa67f8jgrg21&lt;BR /&gt;&lt;BR /&gt;TIMESTAMP&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;CORRELATION&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;TO_CHAR(MSGXML)&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;{"errors":[{"code":"500.12.004","description":"ProviderServiceFailure"}]}&lt;BR /&gt;&lt;BR /&gt;25-OCT-23 11.33.51.383443 AM&lt;BR /&gt;a2306D43d6606aa67f8jgrg21&lt;BR /&gt;{"errors":[{"code":"500.12.004","description":"ProviderServiceFailure"}]}&lt;BR /&gt;&lt;BR /&gt;25-OCT-23 11.33.52.708949 AM&lt;BR /&gt;&lt;BR /&gt;Splunk has the all the permissions to successfully run the PROCEDURE as proved by this being run directly on the server and data is being returned but when I execute this from the Splunk nothing is returned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 11:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666123#M228519</guid>
      <dc:creator>MikeyD100</dc:creator>
      <dc:date>2023-10-25T11:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Oracle Procedure from Splunk DB Connect Version:3.6.0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666133#M228523</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234543"&gt;@MikeyD100&lt;/a&gt;&amp;nbsp;- In your query you have &lt;STRONG&gt;(?) question mark&lt;/STRONG&gt; which DB connect understands as param replacement. I don't know if that is intended. If not please try updating the query accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!!!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 12:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666133#M228523</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-10-25T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Oracle Procedure from Splunk DB Connect Version:3.6.0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666144#M228527</link>
      <description>&lt;P&gt;&lt;BR /&gt;As per the documentation you need to have the (?) when using Oracle, as I understand it that is for the OUT REFCURSOR, if I take it out I get an error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-25 133951.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27780i96FE294589CBB044/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-25 133951.png" alt="Screenshot 2023-10-25 133951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Plus when there is no data to return I get this from Splunk so it works with (?)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-25 134641.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27781i7D8BE865AC328AF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-25 134641.png" alt="Screenshot 2023-10-25 134641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which matches what I see when the SQL run directly from the server&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-25 134755.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27782iB67D8810796E8018/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-25 134755.png" alt="Screenshot 2023-10-25 134755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be when there is data to be returned but I am not sure what the issue is. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 12:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666144#M228527</guid>
      <dc:creator>MikeyD100</dc:creator>
      <dc:date>2023-10-25T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Oracle Procedure from Splunk DB Connect Version:3.6.0</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666186#M228538</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234543"&gt;@MikeyD100&lt;/a&gt;&amp;nbsp;- I would suggest to create a customer support case with Splunk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-Oracle-Procedure-from-Splunk-DB-Connect-Version-3-6-0/m-p/666186#M228538</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-10-25T15:40:34Z</dc:date>
    </item>
  </channel>
</rss>

