Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable autocommit in Eclipse Database Tools for Oracle?

I use Eclipse DTP for database queries. The connection is set to autocommit=true by default. I would like to disable autocommit.

I read this: http://download.oracle.com/docs/cd/E13095_01/oepe-website/db-tools/gettingStarted/files/gettingStarted.html

There is said, that I can use the additional property autocommit=false to disable autocommit. I added this property at "Driver Properties" -> "Optional", but it still connects with autocommit enabled.

  • Why doesn't this work?
  • How do I disable autocommit the right way?

Thanks in advance.

P.S. I use Eclipse Helios and Oracle 11 R1 11.1.0.7.0 and the driver ojdbc6 for 11.1.0.7.0.

like image 770
anonymous Avatar asked Feb 02 '23 13:02

anonymous


2 Answers

Chose Window -> Preferences -> Data Management -> SQL Development -> SQL Editor -> SQL Files/Scrapbooks and Set "Manual" for Connection Commit Mode

like image 160
Andrey Avatar answered Feb 06 '23 05:02

Andrey


You will also need to restart Eclipse to get your change to activate.

like image 42
Kaptkaos Avatar answered Feb 06 '23 06:02

Kaptkaos