<?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: DB connect Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1 in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430106#M52708</link>
    <description>&lt;P&gt;Hi Navanitha,&lt;/P&gt;

&lt;P&gt;I have also got this error today while setting up DB connect for one of the applications in prod environment. Please try to execute the query first in Database, if it works then please select relevant schema for this query and execute. Let me know if it works for you..&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 11:20:07 GMT</pubDate>
    <dc:creator>manish_singh_77</dc:creator>
    <dc:date>2018-07-12T11:20:07Z</dc:date>
    <item>
      <title>DB connect Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430104#M52706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am getting java exception error Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1 while trying to run below query from DB connect app 2.4v using rising column input.&lt;/P&gt;

&lt;P&gt;SELECT target_name,&lt;BR /&gt;
    collection_timestamp, &lt;BR /&gt;
    metric_label, &lt;BR /&gt;
    column_label, &lt;BR /&gt;
    key_value, &lt;BR /&gt;
    value&lt;BR /&gt;
FROM   sysman.mgmt$metric_details&lt;BR /&gt;
WHERE  metric_name = 'tbspAllocation'&lt;BR /&gt;
AND    collection_timestamp &amp;gt; ?&lt;BR /&gt;
ORDER BY 1,2,3,4,5&lt;/P&gt;

&lt;P&gt;Any help on fixing this is much appreciated.  Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430104#M52706</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2020-09-29T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: DB connect Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430105#M52707</link>
      <description>&lt;P&gt;Missing parameter would indicate that is having some difficulty with the checkpoint value. Is there a checkpoint file for this input? Does it contain valid data?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430105#M52707</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-12T10:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: DB connect Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430106#M52708</link>
      <description>&lt;P&gt;Hi Navanitha,&lt;/P&gt;

&lt;P&gt;I have also got this error today while setting up DB connect for one of the applications in prod environment. Please try to execute the query first in Database, if it works then please select relevant schema for this query and execute. Let me know if it works for you..&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430106#M52708</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2018-07-12T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: DB connect Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430107#M52709</link>
      <description>&lt;P&gt;Also having this issue! Upgrade from DBX v1 to v3 and cannot get my current SQL accepted. Removing the checkpoint value line allows the GUI to run the SQL but then it doesnt fuifill the acceptance criteria and i can get no further in the process..... &lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 16:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430107#M52709</guid>
      <dc:creator>JoMunden</dc:creator>
      <dc:date>2018-08-21T16:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: DB connect Exception(' java.sql.SQLException: Missing IN or OUT parameter at index:: 1</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430108#M52710</link>
      <description>&lt;P&gt;Not the same scenario but I got the similar error / issue so below is how i got it and then how I resolved it.&lt;/P&gt;

&lt;P&gt;I was using a timestamp table coulmn in a calculation and using that calculation to create new column for rising column as follows (b was timestamp table coulmn):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select a,b,extract(hour from b) as c from myTable
where c &amp;gt; ?
order by c asc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Issue here was I cannot use an alias c in where clause, so db connect was giving me the error mentioned in question. This is how I resolved it by writing expression twice:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select a,b,c from 
( select a,b, extract(hour from b) as c from myTable )
where c &amp;gt; ?
order by c asc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Sep 2018 03:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-connect-Exception-java-sql-SQLException-Missing-IN-or-OUT/m-p/430108#M52710</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2018-09-20T03:50:45Z</dc:date>
    </item>
  </channel>
</rss>

