Disabling contextual LOB creation as Createclob ()

Source: Internet
Author: User

When using oracle10g, the entity class used the Clob field, and the result was thrown disabling contextual LOB creation as Createclob () method threw error exception. The JDBC driver used is the version of OJDBC14, each version will be an error! The reason should be to provide JDBC4 support, running above JDK6;

Then, you should use Ojdbc6.jar. From the official view, this is the driver of oracle11g. But there's nothing wrong with using Ojdbc6.jar to oracle10g. However, it is advisable to use oracle11g more appropriately.

There is also a way to refer to: http://stackoverflow.com/questions/4588755/ Hibernate-disabling-contextual-lob-creation-as-createclob-method-threw-error

You can modify Hibernate configuration items hibernate . temp . use_jdbc_metadata_defaults= false, can also.


Disabling contextual LOB creation as Createclob ()

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.