• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC Result Set Related Problem

 
Ranch Hand
Posts: 107
MyEclipse IDE Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator




1. When I am Connection with Mysql its is working fine.
2. But In case of Oracle10 it is giving Problem Even though result Set is of Updatable type.

java.sql.SQLException: Invalid operation for read only resultset: moveToInsertRow
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.driver.BaseResultSet.moveToInsertRow(BaseResultSet.java)
at com.p14.test.main(test.java:38)


Please someone go through it.. Thanks In advance...
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Prakash,
Please refer to Oracle documentation for the database you are using.
There should be a book entitled "JDBC Developer's Guide".
In that book there should be a section entitled "Resultset Limitations and Downgrade Rules".
You should find there an explanation for the behaviour you describe.

Good Luck,
Avi.
 
Ranch Hand
Posts: 933
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you running trhough IDE. Try to put a break point and identify where the error is exactly coming and modify code if needed to suit oracle database.
reply
    Bookmark Topic Watch Topic
  • New Topic