File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Problem withUpdatable Resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Problem withUpdatable Resultset" Watch "Problem withUpdatable Resultset" New topic

Problem withUpdatable Resultset

Sudhir Patil

Joined: Apr 09, 2004
Posts: 3
I am facing problem with updating the records through JDBC Application using updatable recordset, thourgh I have created a statement(Prepared) with CONCUR_UPDATABLE and TYPE_SCROLLABLE. Still the recordset obtained is READ ONLY, hence not able to update the records from recordset.

Driver used: from Oracle thin driver.

Kindly suggest me the solution to update records from recordset.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

There are limitations with the Oracle JDBC driver(s). Not every query can return an updatable, scrollable "ResultSet". The limitations are detailed in the "JDBC Developer's Guide and Reference" which is available online from Oracle's Tahiti Web site.

For queries that cannot give updatable "ResultSet"s, Oracle will silently turn them into read-only "ResultSet"s.

Good Luck,
I agree. Here's the link:
subject: Problem withUpdatable Resultset
It's not a secret anymore!