[英]How to disable autocommit in Eclipse Database Tools for Oracle?
I use Eclipse DTP for database queries. 我使用Eclipse DTP进行数据库查询。 The connection is set to
autocommit=true
by default. 默认情况下,连接设置为
autocommit=true
。 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 我读了这篇: 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. 据说,我可以使用附加属性
autocommit=false
来禁用自动提交。 I added this property at "Driver Properties" -> "Optional", but it still connects with autocommit enabled. 我在“驱动程序属性” - >“可选”中添加了此属性,但它仍然启用了自动提交。
Thanks in advance. 提前致谢。
PS I use Eclipse Helios and Oracle 11 R1 11.1.0.7.0 and the driver ojdbc6 for 11.1.0.7.0. PS我使用Eclipse Helios和Oracle 11 R1 11.1.0.7.0以及驱动程序ojdbc6 for 11.1.0.7.0。
选择窗口 - >首选项 - >数据管理 - > SQL开发 - > SQL编辑器 - > SQL文件/剪贴簿并为连接提交模式设置“手动”
您还需要重新启动Eclipse才能激活更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.