几种情况会导致隐式提交
DDL
DCL:特指grant,revoke,
alter session不会
有的工具
DDL会导致隐式提交,注意:失败的DDL也会导致提交
sessionA> insert into t1 values(1);
1 row created.
sessionA>select count(*) from t1;
COUNT(*)
----------
2
sessionA>drop table xx;
drop table xx
*
ERROR at line 1:
ORA-00942: table or view does not exist
sessionB>select count(*) from t1;
COUNT(*)
----------
2
但是语法错误的DDL不会导致隐式提交
sessionA> insert into t1 values(1);
1 row created.
sessionA>select count(*) from t1;
COUNT(*)
----------
3
sessionA>drop table col t2;
drop table col t2
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
sessionB>select count(*) from t1;
COUNT(*)
----------
2
阅读(977) | 评论(0) | 转发(0) |