執行alter system flush buffer_cache一定會產生檢查點嗎?
點選(此處)摺疊或開啟
-
--檢視資料清空buffer cache
-
--結論:沒有產生檢查點
-
sys@TESTDB11>select * from scott.emp;
-
-
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
-
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
-
7369 SMITH CLERK 7902 17-DEC-80 800 20
-
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
-
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
-
7566 JONES MANAGER 7839 02-APR-81 2975 20
-
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
-
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
-
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
-
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
-
7839 KING PRESIDENT 17-NOV-81 5000 10
-
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
-
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
-
7900 JAMES CLERK 7698 03-DEC-81 950 30
-
7902 FORD ANALYST 7566 03-DEC-81 3000 20
-
7934 MILLER CLERK 7782 23-JAN-82 1300 10
-
-
14 rows selected.
-
-
sys@TESTDB11>select file#, ts#, checkpoint_change# from v$datafile;
-
-
FILE# TS# CHECKPOINT_CHANGE#
-
---------- ---------- ------------------
-
1 0 2813140
-
2 1 2813140
-
3 2 2813140
-
4 4 2813140
-
5 6 2813140
-
-
sys@TESTDB11>select file#, checkpoint_change# from v$datafile_header;
-
-
FILE# CHECKPOINT_CHANGE#
-
---------- ------------------
-
1 2813140
-
2 2813140
-
3 2813140
-
4 2813140
-
5 2813140
-
-
sys@TESTDB11>alter system flush buffer_cache;
-
-
System altered.
-
-
sys@TESTDB11>select file#, ts#, checkpoint_change# from v$datafile;
-
-
FILE# TS# CHECKPOINT_CHANGE#
-
---------- ---------- ------------------
-
1 0 2813140
-
2 1 2813140
-
3 2 2813140
-
4 4 2813140
-
5 6 2813140
-
-
sys@TESTDB11>alter system flush buffer_cache;
-
-
System altered.
-
-
sys@TESTDB11>select file#, checkpoint_change# from v$datafile_header;
-
-
FILE# CHECKPOINT_CHANGE#
-
---------- ------------------
-
1 2813140
-
2 2813140
-
3 2813140
-
4 2813140
-
5 2813140
-
-
--更新資料,結論也沒有產生檢查點
-
sys@TESTDB11>update scott.emp set sal = sal * 2;
-
-
14 rows updated.
-
-
sys@TESTDB11>select file#, checkpoint_change# from v$datafile_header;
-
-
FILE# CHECKPOINT_CHANGE#
-
---------- ------------------
-
1 2813140
-
2 2813140
-
3 2813140
-
4 2813140
-
5 2813140
-
-
sys@TESTDB11>alter system flush buffer_cache;
-
-
System altered.
-
-
sys@TESTDB11>select file#, checkpoint_change# from v$datafile_header;
-
-
FILE# CHECKPOINT_CHANGE#
-
---------- ------------------
-
1 2813140
-
2 2813140
-
3 2813140
-
4 2813140
-
5 2813140
-
-
sys@TESTDB11>select file#, ts#, checkpoint_change# from v$datafile;
-
-
FILE# TS# CHECKPOINT_CHANGE#
-
---------- ---------- ------------------
-
1 0 2813140
-
2 1 2813140
-
3 2 2813140
-
4 4 2813140
-
5 6 2813140
-
-
--手工產生檢查點
-
sys@TESTDB11>alter system checkpoint;
-
-
System altered.
-
-
sys@TESTDB11>select file#, ts#, checkpoint_change# from v$datafile;
-
-
FILE# TS# CHECKPOINT_CHANGE#
-
---------- ---------- ------------------
-
1 0 2814217
-
2 1 2814217
-
3 2 2814217
-
4 4 2814217
- 5 6 2814217
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17013648/viewspace-1069756/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- java finally一定會執行嗎Java
- 停庫前執行alter system checkpoint 很重要!
- alter system switch logfile的執行時間是多久。
- sqlldr載入會產生redo嗎?SQL
- alter system events與alter system event的區別
- 那些操作會發生區域性檢查點(Partial checkpoint)!
- Alter system in OracleOracle
- [alter system dump學習1]alter system dump logfile
- alter system archive log current和alter system switch logfileHive
- Operating System-Thread(5)彈出式執行緒&&使單執行緒程式碼多執行緒化會產生那些有關問題thread執行緒
- ALTER SYSTEM SWITCH LOGFILE ALTER SYSTEM ARCHIVELOG CURRENT 區別Hive
- alter system kill sessionSession
- SimpleDateFormat一定是執行緒不安全嗎?ORM執行緒
- [20231023]備庫與alter system flush buffer_cache.txt
- alter database和alter system和alter session的區別DatabaseSession
- alter system switch logfile和alter system archive log current的區別Hive
- alter system switch logfile 和 alter system archive log current 的區別Hive
- 程式與執行緒的產生執行緒
- 資料庫open時檢查點執行的過程資料庫
- 你會執行指令碼嗎指令碼
- alter system check datafiles 命令
- alter session|system set eventsSession
- 蘋果公司會生產廉價的iPhone嗎?蘋果iPhone
- [轉]alter system switch logfile和alter system archive log current的區別Hive
- zt:alter system switch logfile與ALTER SYSTEM ARCHIVE LOG CURRENT的區別Hive
- 檢查點SCN在事務發生後以及發生檢查點和歸檔操作後的變化
- C# 中 ConcurrentDictionary 一定執行緒安全嗎?C#執行緒
- alter system dump datafile headerHeader
- ALTER SYSTEM DISCONNECT SESSION ClauseSession
- alter system archive log current noswitch!!Hive
- win10如何執行序號產生器_win10怎麼執行序號產生器Win10
- 檢視鎖的資訊和alter system kill session的用法(小例子)Session
- JPA 實體髒檢查與儲存同步(Dirty & Flush)
- 廣州IT企業 精益生產 執行策略
- EM執行後產生大量err檔案
- 全域性檢查點和增量檢查點
- 忍不住問下alter system 和alter database的區別Database
- 凌晨1點突發致命生產事故,人工多執行緒來破局!執行緒