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