java - Disable oracle autocommit on close connection -


I have a question about the Oracle Autocommit on close connection events.

Notice from Oracle docs ():

If automatic commit mode is disabled and you close the connection with no explicitly made or your previous changes Let's roll back, then an implicit committ operation is run.

Therefore, I want to disable this feature in programmatic JDBC driver. I do not wan't autocommit at least one transaction closed connection, is it possible?

P.S. change the setAutoCommit JDBC operation "AutoComit" starts a new transaction on each transaction and commits the call. This is not a solution to my problem.

Edit. Possible duplicate: According to

, you should try to roll back or roll before calling the closed method. The results are otherwise implemented-defined.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -