Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with connection-close without rollback or commit

843854Nov 27 2002 — edited Aug 1 2003
Hi all,

Do I absolutely need to call commit() or rollback() on a connection (or statement) object before calling close()?

I thought an automatic rollback must be performed if I close it without calling commit (or rollback) on it first. But I encountered some problems which made me think that there may be a problem with driver.
(Some 'zomby' processes remained in the database server)

Is it necessary to call commit or rollback before closing a connection, or is it driver dependent? (I use oracle jdbc driver)

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2003
Added on Nov 27 2002
7 comments
3,788 views