Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC Oracle Error ORA-01461 while doing batch update

 
Aakash Parashar
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Forum,

I got Oracle Error ORA-01461 in my prod server only once recently while doing batch update of records in Oracle. Although simultaneously there were many processing were going on, only one processing failed, rest of other similar processes passed in server without this error. Oracle version is 10.2.0.3.0

I browsed my forums regarding this but not getting concrete answere, somebody talks about character set, but this does not seems to be problem because we are inserting normal alphabets and number within the length limit of DB Column lenghts. Our application is runnig since 4 years and we got this issue first time.


 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Oracle error code suggest you're trying to insert or bind a LONG datatype into something which isn't a LONG.

I don't think anyone will be able to help unless you TellTheDetails. You should probably post the code which caused the error.
 
Aakash Parashar
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inlining the exception trace. ITs not related to LONG data type because we insert all columns as Varchar.

15-Aug 16:13:54.0530| FATAL | [Default : 0] | com.polaris.iph.file.workflow.helper.FileWFManagerHelper:txnBatchForward
(818) | txnBatchForward() | SQLException while inserting Batch & Txns
java.sql.BatchUpdateException: ORA-01461: can bind a LONG value only for insert into a LONG column at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException
(DatabaseError.java(Compiled Code))
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch
(OraclePreparedStatement.java(Compiled Code)) at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.pmiExecuteBatch
(WSJdbcStatement.java:1173)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeBatch
(WSJdbcStatement.java:516)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic