• 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

Using Oracle thin JDBC driver with Visual Age 4?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to run my Websphere Test Environment (Visual Age for Java 4) with an Oracle 9i database using the provided Oracle JDBC thin driver. Everything works fine to begin with (I can create new beans etc), but when I try to update fields in my beans using the setter methods an error occurs; "ORA-01002 - fetch out of sequence".
As I understand it, this is a result of the JDBC driver using autocommit = true as default? If this is the case, how do I avoid the problem – i.e. is there a way to make Websphere Test Environment disable autocommit?
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
after you create your connection call con.setAutoCommit(false);
If you haven't already done so, any DML statements/transactions will need to have a con.commit(); or con.rollback();
Jamie
 
reply
    Bookmark Topic Watch Topic
  • New Topic