![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All; Is it possible to configure autocommit in Data Studio SQL processor? I can't find this feature anywhere... Kind of a show-stopper for us using the tool productively. Any insight greatly appreciated |
#3
| |||
| |||
|
|
I don't think this is possible (at least with 2.2.0.2). There's no option to set this, and I don't believe that there is not a JDBC property that you can set at the connection level to disable this. I even tried setting autoCommit=false in the Optional Driver Properties for a particular connection, but this doesn't work. |
#4
| |||
| |||
|
|
"Ian" <ianb... (AT) mobileaudio (DOT) com> wrote in message news:acc6ef6f-56cf-4a69-8b43-61161c5c15dc (AT) b35g2000yqi (DOT) googlegroups.com... I don't think this is possible (at least with 2.2.0.2). *There's no option to set this, and I don't believe that there is not a JDBC property that you can set at the connection level to disable this. *I even tried setting autoCommit=false in the Optional Driver Properties for a particular connection, but this doesn't work. Thank God for this. Bless you, Data Studio developers. Any decent DBA should know how to run a script with autocommit off. This information should never be provided to developers or end users. |
#5
| |||
| |||
|
|
"Ian" <ianb... (AT) mobileaudio (DOT) com> wrote in message news:acc6ef6f-56cf-4a69-8b43-61161c5c15dc (AT) b35g2000yqi (DOT) googlegroups.com... Any decent DBA should know how to run a script with autocommit off. This information should never be provided to developers or end users. |
#6
| |||
| |||
|
|
Yes, of course. But the OP was asking if it's possbile to do it from Data Studio. Turning off autoCommit is a very valid request. Just because it's powerful (and can cause problems if not used with care) doesn't mean people shouldn't be able to use it. |
#7
| |||
| |||
|
|
"Ian" <ianb... (AT) mobileaudio (DOT) com> wrote in message news:1a36f129-8743-4579-a0f1-ee26f7047d1e (AT) z8g2000yqz (DOT) googlegroups.com... Yes, of course. *But the OP was asking if it's possbile to do it fromData Studio. Turning off autoCommit is a very valid request. Just because it's powerful (and can cause problems if not used with care) doesn't mean people shouldn'tbe able to use it. It may be a valid request, but I would be willing to sacrfice the convenience of not having it in the tool (would have to use command line) for the benefit of keeping that feature out of the hands of my developers and end-users, both of which use the tool for production databases. Even an S lock that is not released causes a lot of problems. Just my opinion. |
#8
| |||
| |||
|
|
I think that's a bad idea, keeping it out of Data Studio for this reason is simply security through obscurity. Any competent Java developer can write and launch this in 5 minutes: con.setAutoCommit(false); stmt.executeUpdate("DELETE FROM STOCK WHERE ID=X"); Thread.sleep(100000); worldCup.watch("Ghana", "Germany"); home.go(); work.return(); con.commit(); Protecting against this behaviour seems quite difficult. Maybe a combination of WLM and NUM_LOG_SPAN might help, but I don't know the golden bullet against this, besides whipping any offending developers... -- Frederik |
![]() |
| Thread Tools | |
| Display Modes | |
| |