简体   繁体   English

甲骨文交易

[英]oracle Transactions

is it possible to have only DDL statements with a transaction? 事务中只能有DDL语句吗? and if so, is it possible to get it rollback to the original state, if any one of the DDL statement fails? 如果是这样,并且如果任何一个DDL语句失败,是否有可能使其回滚到原始状态?

Thanks & Regards, priya.R 谢谢与问候,priya.R

in Oracle a DDL statement implicitely commits before and after the statement. 在Oracle中,DDL语句在该语句之前和之后隐式提交 Each statement is an independant transaction and you won't be able to rollback a successful statement. 每个语句都是独立的事务,您将无法回滚成功的语句。

A DDL statement however is always atomic: it either succeeds entirely or fails entirely. 但是,DDL语句始终是原子的:它要么完全成功,要么完全失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM