Oracle violates protocol OALL8 in an inconsistent state

Source: Internet
Author: User

Http://blog.sina.com.cn/s/blog_a45aac720100yu3h.html

Error-util.jdbcexceptionreporter>: Breach of agreement
Error-util.jdbcexceptionreporter>: OALL8 in an inconsistent state!


Recently been entangled in this problem for a long time, yesterday finally found the right solution, summed up, the cause of this problem is generally

Two

1. Connect the Oracle driver mismatch. For example, in a 11g+jdk6.0 environment, use Ojdbc5.jar.

2, the intermediate changes in the table structure and other information, will also lead to the above error. (Restarting the web won't happen again)

3. When manipulating field data, do not operate according to the field type specification. This is a relatively hidden problem. For example, I have a table that has 2 fields, a number type Tid, and a varchar2 type of tname. From the Database Building table specification, the table should have a primary key, so set the first field as the primary key, increment by sequence. So, how do you reproduce the exception? Consider the following SQL:
SELECT * FROM table where tid = ' 1 ';
from the results, This SQL is no problem, do not believe that you can try on PL/SQL. However, it is clear that the TID is a number type, but it is followed by a value that compares a string type.
And I have this problem because of this, in my Java written in the HQL statement (hibernate), there are several places (because of the use of templates, so the time when the copy did not pay attention to these), resulting in the frequent occurrence of such problems. (It may also be related to hibernate, specifically I did not do more to delve into it.) )

Oracle violates protocol OALL8 in an inconsistent state

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.