Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are getting Invalid arguments in call when we try to establish the connection with Oracle DB occasionally ( One hour in a day).

I did some research about this in Internet, still i am not getting clear understanding about the root cause of this exception.

Please note:

This is happens in PROD environment for sometime, after which its getting resolved without any code fix, the major concern here for us is that we don't have a clear understanding on its root cause.

Question 1

Invalid arguments in call : is this message talking about the connection parameters that is sent to establish connection?

Question 2 If question 1 is true, why is it happening occasionally? Its highly unlikely that our application sends different parameter for establishing connection as its a binary (Connection parameters are constant).

NOTE: Documentation for ORA-17068 this error code is not available in oracle site *EDIT:*

Complete Exception trace:

java.sql.SQLException: invalid arguments in call at oracle.jdbc.driver.DatabaseError.throwSqlException( at oracle.jdbc.driver.DatabaseError.throwSqlException( at oracle.jdbc.driver.DatabaseError.throwSqlException( at oracle.jdbc.driver.T4CConnection.logon( at oracle.jdbc.driver.PhysicalConnection.( at oracle.jdbc.driver.T4CConnection.( at oracle.jdbc.driver.T4CDriverExtension.getConnection( at oracle.jdbc.driver.OracleDriver.connect( at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.tomcat.dbcp.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection( at org.apache.tomcat.dbcp.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection( at org.apache.tomcat.dbcp.dbcp.datasources.InstanceKeyDataSource.testCPDS( at org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource.registerPool( at org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource.getPooledConnectionAndInfo( at org.apache.tomcat.dbcp.dbcp.datasources.InstanceKeyDataSource.getConnection( at org.apache.tomcat.dbcp.dbcp.datasources.InstanceKeyDataSource.getConnection(

Thanks in advance. Subin.

share|improve this question
What Oracle server version are you connecting to and what client version? – Phil Feb 17 '13 at 23:51
To be honest, seeing as this is such an odd/rare error, you should open a support ticket with Oracle. That's why you pay the $$$$ for your support contract. – Phil Feb 18 '13 at 0:09
@Phil Thanks for your suggestion. But do you have idea when we will get Invalid arugments in the call exception, i mean the reason ? – Subin_Learner Feb 18 '13 at 11:05
What versions?? See my first comment. – Phil Feb 18 '13 at 11:43
@Phil : Please find the version details Oracle Database 11g Enterprise Edition Release - 64bit Production PL/SQL Release - Production CORE Production TNS for Linux: Version - Production NLSRTL Version - Production – Subin_Learner Feb 19 '13 at 11:02

I also faced this issue. I am able to get the connection and retrieve the query results as well. I got this exception when I try to subString a CLOB column data. I gave the index as 0 as the starting index. It gave 17068 exception. The index should start from 1.

share|improve this answer

I also had this issue, but on Oracle 11g XE. It happened sometimes when I inserted rows into a table that was modified (columns added) and I requested generated keys. The problem was resolved by manually calling sequences for this table and inserting ids by hand. My stacktrace is a bit different though, looks more like a driver bug: detailed stacktrace

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.