• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JDBC Oracle Error ORA-01461 while doing batch update

 
Ranch Hand
Posts: 123
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic