Can bind a long value only for insert into a long column

Source: Internet
Author: User

Today in WebSphere test application, an error is reported, the background prompt: ORA-01461: can bind a long value only for insert into a long column
An error was reported when the database field was inserted (defined as varchar2 (1000). It was found that it was an Oracle version problem through online query. When the insert operation was performed, if the value exceeds a certain hour, this error is returned.
However, the test database is connected under tomcat, and no error is reported. Therefore, the JDBC driver is faulty. I specified a driver when configuring the data source in WebSphere. The driver points to the driver under the database directory installed on the local machine. The local database is earlier than the tested version, so I changed the driver, the problem is solved after testing.

Original article address

Http://www.blogjava.net/chenlb/archive/2007/10/20/154558.html

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.