【Oracle】-【隱式commit】-正常與異常退出對commit的作用
create table my_objects as select * from all_objects;
commit;
select count(*) from my_objects;
COUNT(*)
----------
8587
delete from my_objects;
8587 rows deleted.
exit
再次登入,
select count(*) from my_objects;
COUNT(*)
----------
commit;
select count(*) from my_objects;
COUNT(*)
----------
8587
delete from my_objects;
8587 rows deleted.
exit
再次登入,
select count(*) from my_objects;
COUNT(*)
----------
0
說明:
正常退出sqlplus(如用exit),會執行commit;
異常退出sqlplus(如用alter system kill session 'sid,serial#'),會執行rollback。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7192724/viewspace-767160/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql 5.5 lock tables與隱式事務提交commitMySqlMIT
- 【Oracle】-【COMMIT對索引的影響】-從trace看COMMIT對索引的影響OracleMIT索引
- sqlplus 中exit 命令的隱式commitSQLMIT
- 【DDL】DDL的隱式commit和自治事務MIT
- git 本地對比2次commit直接的差異GitMIT
- 【DDL】DDL執行過程及其隱式COMMIT行為的探查與演示MIT
- git commit 新增message儲存並退出GitMIT
- oracle之commit控制OracleMIT
- 關於oracle commitOracleMIT
- commit 與do_key('commit_form')區別MITORM
- Oracle的commit做了什麼?OracleMIT
- PL/SQL 事務持久化異常 / PL/SQL commit優化SQL持久化MIT優化
- 異常處理:IDEA Git 修改後的檔案無法CommitIdeaGitMIT
- oracle全文索引之commit與DML操作Oracle索引MIT
- Mysql異常刨析:Could not commit JDBC transaction;No operations allowed after statement closedMySqlMITJDBC
- Oracle的非同步commit設定Oracle非同步MIT
- git commit後如何取消commitGitMIT
- on commit delete rows and on commit preserve rowsMITdelete
- CommitMIT
- eclipse svn commit 報錯 Commit blocked by pre-commit hookEclipseMITBloCHook
- commit_write,commit_logging,commit_wait引數和oracle redo行為MITAIOracle Redo
- oracle commit隨筆記載OracleMIT筆記
- Oracle redo undo commit rollback剖析Oracle RedoMIT
- Git commit 之後,想撤銷 commitGitMIT
- Oracle DML(非select) 操作不commit 對select的影響OracleMIT
- svn commitMIT
- Asynchronous CommitMIT
- 異常處理與異常函式函式
- Oracle vs PostgreSQL Develop(29) - COMMIT in PLSQLOracleSQLdevMIT
- oracle-2中commit 詳解OracleMIT
- QPainter呼叫setBrush異常退出AI
- 增強的 COMMITMIT
- Git提交規範中,常見的commit型別GitMIT型別
- oracle plsql儲存過程_if判斷與事務commitOracleSQL儲存過程MIT
- CONTEXT索引對COMMIT操作的影響 (ZT)Context索引MIT
- Oracle效能測量體系(commit Time)OracleMIT
- oracle commit提交到底作了什麼OracleMIT
- git commit --amendGitMIT