Thread: java.sql.SQLException: OALL8 is in an inconsistent state


Permlink Replies: 23 - Pages: 2 [ 1 2 | Next ] - Last Post: Dec 14, 2009 1:13 AM Last Post By: user6330635 Threads: [ Previous | Next ]
kvsnmurthy

Posts: 1
Registered: 03/12/00
java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Nov 8, 2004 1:43 PM
Click to report abuse...   Click to reply to this thread Reply
Can any one explain, why we are getting the following error? We are using weblogic server with JDBC driver version 10.1.0.2.

Thanks,

Nov 8, 2004 12:01:38 PM com.tmobile.sqlmgr.rv.RequestHandler sendErrorResponse
INFO: Sending error response: { STATUS={ CODE=101 MESSAGE="java.sql.SQLException: OALL8 is in an inconsistent state.
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4C8Oall.init(T4C8Oall.java:308)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:166)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:543)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:915)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:452)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:978)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2929)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
at com.tmobile.sqlmgr.engine.SQLPreparedStatement.executeQuery(SQLPreparedStatement.java:94)
at com.tmobile.sqlmgr.rv.RequestHandler.handleQuery(RequestHandler.java:266)
at com.tmobile.sqlmgr.rv.RequestHandler.run(RequestHandler.java:78)
" } }
dsp@gvea.com

Posts: 24
Registered: 07/11/02
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Nov 11, 2004 6:19 PM   in response to: kvsnmurthy in response to: kvsnmurthy
Click to report abuse...   Click to reply to this thread Reply
Are you connecting to a 9i or 10g database?

We're having intermittent connectivity issues using the Oracle 10.1.0.2 JDBC drivers connecting to a 9i database, and sometimes get that same exception.
hlouie22@hotmai...

Posts: 1
Registered: 10/07/02
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Dec 8, 2004 3:12 PM   in response to: kvsnmurthy in response to: kvsnmurthy
Click to report abuse...   Click to reply to this thread Reply
I'm also having this problem and this is what I've found so far:

http://www.orindasoft.com/public/PL-SQL%20Recordstwo.php4?siteloc=PL-SQL%20Recordstwo#probva

This is known to occur under when you are using too big an array size. How big your array can be depends on the length of each record and the Driver/Database combination. If you exceed the maximum size you will get the "OALL8" SQLException and your connection object may become unusable.

This message is also created if you are using the following:
9.0.1 Database
10.1.0 JDBC Driver
Generated Code that passes in an ARRAY or VARRAY of VARCHAR2 as a Parameter
linjielj

Posts: 64
Registered: 06/24/01
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Nov 14, 2005 9:48 PM   in response to: kvsnmurthy in response to: kvsnmurthy
Click to report abuse...   Click to reply to this thread Reply
We are having same issue(occasional) using the Oracle 10.1.0.2 JDBC drivers connecting to a 9204 database, any help ??
grigio

Posts: 12
Registered: 11/03/99
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Dec 8, 2005 6:26 AM   in response to: linjielj in response to: linjielj
Click to report abuse...   Click to reply to this thread Reply
+1 with such intermittent problems eventually resulting in an OALL8 is in an inconsistent state message.

JDBC driver: 10.2.0.1.0
Database: Oracle9i Enterprise Edition Release 9.2.0.6.0

Will post something back if I manage to discover the cause.
user481995

Posts: 2
Registered: 01/23/06
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Jan 23, 2006 10:58 AM   in response to: grigio in response to: grigio
Click to report abuse...   Click to reply to this thread Reply
Any one has a fix or work around for this.Please post if any one has more info regarding this
user482081

Posts: 13
Registered: 01/23/06
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Jan 23, 2006 8:59 PM   in response to: kvsnmurthy in response to: kvsnmurthy
Click to report abuse...   Click to reply to this thread Reply
JDBC 10.1.0.2 seems definitely a little old (I don't what is the latest mino version number). 10g drive seems having various issues. We use 10.1.0.3 to access 10g database (forgot what is mino version number), when SQL MERGE statement combine with JDBC batch execution, it had serious problme (socket stopped communication). Oracle fixed this and made it in 10.1.0.4. But seems still having other random problmes. Then we switch driver back to 9.x, everything worked fine (so 9.x dirve against 10g db).

Seems your case is 9.x db and 10g drive. It seems to me enven more dangerous. If possible, why don't you use 9.x drive against 9.x db?

Just my thoughts
aleoo

Posts: 1
Registered: 02/01/06
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Feb 1, 2006 7:36 AM   in response to: grigio in response to: grigio
Click to report abuse...   Click to reply to this thread Reply
The same issue

JDBC driver: 10.2.0.1.0
Database: Oracle9i Enterprise Edition Release 9.2.0.7.0

Had to downgrade the JDBC driver to 9.2.0.5. No issues so far.
Ting Rung

Posts: 439
Registered: 04/08/03
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Feb 16, 2006 6:38 AM   in response to: aleoo in response to: aleoo
Click to report abuse...   Click to reply to this thread Reply
Any one has a fix or work around for this.Please post if any one has more info regarding this
Ashok Shivarudr...

Posts: 86
Registered: 01/10/01
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Mar 13, 2006 8:06 AM   in response to: Ting Rung in response to: Ting Rung
Click to report abuse...   Click to reply to this thread Reply
upgrade to 10.1.0.4 this bugs are fixed in 10.1.0.4.
Ashok Shivarudr...

Posts: 86
Registered: 01/10/01
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Mar 14, 2006 11:49 AM   in response to: Ashok Shivarudr... in response to: Ashok Shivarudr...
Click to report abuse...   Click to reply to this thread Reply
The bug is also fixed in 10.2.0.1.
jeff@technopaq....

Posts: 4
Registered: 05/25/04
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Mar 27, 2006 12:16 AM   in response to: aleoo in response to: aleoo
Click to report abuse...   Click to reply to this thread Reply
may i ask how did you downgrade to jdbc 9.2.0.5?
user504240

Posts: 1
Registered: 04/18/06
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Apr 18, 2006 9:22 PM   in response to: linjielj in response to: linjielj
Click to report abuse...   Click to reply to this thread Reply
This is known to occur under when you are using too big an array size. How big your array can be depends on the length of each record and the Driver/Database combination. If you exceed the maximum size you will get the "OALL8" SQLException and your connection object may become unusable.

This message is also created if you are using the following:

9.0.1 Database
10.1.0 JDBC Driver
Generated Code that passes in an ARRAY or VARRAY of VARCHAR2 as a Parameter
phil_xxx

Posts: 35
Registered: 03/02/00
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Oct 2, 2006 10:06 AM   in response to: user504240 in response to: user504240
Click to report abuse...   Click to reply to this thread Reply
PLEASE READ
============

I have also noticed this also happens if your procedure has an "in out" parameter but you use it only as if it was an "in" parameter. ie in your jdbc application you do not get the object again after running the procedure. For me this was a mistake in setting the parameter as an "in out". Changing it to an "in" parameter resolved the issue.
julochrobak

Posts: 17
Registered: 12/04/06
Re: java.sql.SQLException: OALL8 is in an inconsistent state
Posted: Sep 3, 2007 6:02 AM   in response to: phil_xxx in response to: phil_xxx
Click to report abuse...   Click to reply to this thread Reply
Hi All,

We have two applications running with the same ojdbc14 (10.2.0.2.0) driver. One of them uses apache-commons-dbcp, another spring's DriverManagerDataSource, and only the one which uses commons-dbcp encounters this problem.

Can anyone help?

Thank you,

Julius.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums