oracle 例項崩潰時啟動的驗證(low cache rba->on disk rba)
檢查點的作用就是為了減少例項恢復的時間,以下是驗證過程
sql>alter system checkpoint;
此時記錄日誌中如下:
Beginning global checkpoint up to RBA [0x13.62.10], SCN: 0x0000.00073778
Completed checkpoint up to RBA [0x13.62.10], SCN: 0x0000.00073778
此時插入資料
SQL> insert into test select * from test where rownum<100;
99 rows created.
SQL> insert into test select * from test where rownum<100;
99 rows created.
SQL> insert into test select * from test where rownum<100;
99 rows created.
--此時模擬發生例項崩潰
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 101785252 bytes
Fixed Size 454308 bytes
Variable Size 75497472 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
轉儲控制檔案
SQL> oradebug setmypid
Statement processed.
SQL> oradebug dump controlf 4;
Statement processed.
***************************************************************************
CHECKPOINT PROGRESS RECORDS
***************************************************************************
(blkno = 0x4, size = 104, max = 1, in-use = 1, last-recid= 0)
THREAD #1 - status:0x2 flags:0x0 dirty:11
low cache rba:(0x13.64.0) on disk rba:(0x13.a3.0)
rba的組成:
Recent entries in the redo thread of an Oracle instance are addressed using a 3-part redo byte address, or RBA. An RBA is comprised of
the log file sequence number (4 bytes)
the log file block number (4 bytes)
the byte offset into the block at which the redo record starts (2 bytes)
SQL> alter database open;
Database altered.
將16進位制轉換為10進位制
SQL> select to_number('&A','XXXXXXXX') from dual;
Enter value for a: 64
old 1: select to_number('&A','XXXXXXXX') from dual
new 1: select to_number('64','XXXXXXXX') from dual
TO_NUMBER('64','XXXXXXXX')
--------------------------
100
SQL> select to_number('&A','XXXXXXXX') from dual;
Enter value for a: a3
old 1: select to_number('&A','XXXXXXXX') from dual
new 1: select to_number('a3','XXXXXXXX') from dual
TO_NUMBER('A3','XXXXXXXX')
--------------------------
163
SQL> select to_number('&A','XXXXXXXX') from dual;
Enter value for a: 13
old 1: select to_number('&A','XXXXXXXX') from dual
new 1: select to_number('13','XXXXXXXX') from dual
TO_NUMBER('13','XXXXXXXX')
--------------------------
19 代表sequence 號
在資料庫啟動日誌中可以看到恢復時也是從這個範圍開始的
Completed first pass scan
63 redo blocks read, 11 data blocks need recovery
Fri Mar 21 14:09:25 2008
Started recovery at
Thread 1: logseq 19, block 100, scn 0.0
Recovery of Online Redo Log: Thread 1 Group 3 Seq 19 Reading mem 0
Mem# 0 errs 0: D:\ORACLE\ORADATA\PUBTEST\REDO03.LOG
Fri Mar 21 14:09:25 2008
Completed redo application
Fri Mar 21 14:09:25 2008
Ended recovery at
Thread 1: logseq 19, block 163, scn 0.513205
11 data blocks read, 11 data blocks written, 63 redo blocks read
Crash recovery completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-214920/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Low cache RBA和On disk RBA的區別
- low cache rba,on disk rba資料庫恢復過程資料庫
- 備份與恢復 - Low cache RBA和On disk RBA的區別
- windows下啟動服務時不啟動oracle例項WindowsOracle
- 微軟修復了導致 Outlook 啟動時崩潰的問題微軟
- ASM例項出現ORA-4031錯誤導致例項崩潰ASM
- 私有網路介面丟失導致例項崩潰
- WkWebView 令人崩潰的崩潰WebView
- Window中Oracle服務啟動時並不啟動例項的兩種方法Oracle
- 2 Day DBA-管理Oracle例項-關閉和啟動Oracle例項-使用OEMDC關閉和啟動Oracle例項Oracle
- Oracle例項的啟動和關閉Oracle
- oracle啟動例項時使用引數檔案的順序Oracle
- 建立物化檢視導致資料庫例項崩潰資料庫
- 自動重新啟動oracle例項 for windowsOracleWindows
- 2 Day DBA-管理Oracle例項-關於例項的啟動和關閉-關於例項啟動Oracle
- 啟動oracle例項最少引數Oracle
- oracle多個例項啟動方法Oracle
- Oracle RBAOracle
- 輸驗證碼輸到崩潰?教你15分鐘黑掉全球最流行的驗證碼外掛
- 關於應用啟動連續崩潰的解決思考
- Oracle 10g RAC 系統 OS啟動時CRS及例項自動啟動指令碼Oracle 10g指令碼
- ORACLE windows驅動磁碟機代號自動變更導致oracle資料庫崩潰無法啟動OracleWindows資料庫
- 驗證11gR2 RAC中ASM例項通過gpnp profile獲得spfile資訊來啟動ASM例項ASM
- oracle例項啟動異常慢案例一Oracle
- oracle 例項啟動和關閉解讀Oracle
- Oracle單例項+ASM啟動與關閉Oracle單例ASM
- C++記錄程式崩潰時的dumpfileC++
- Oracle Restart啟動資料庫例項故障一例OracleREST資料庫
- Linux中設定oracle例項和asm同時隨機自動啟動LinuxOracleASM隨機
- 怎麼樣把mysqld壓測到崩潰重啟?什麼情況下mysqld崩潰重啟?MySql
- 使用SRVCTL啟動例項與使用sqlplus啟動例項的區別SQL
- 如何在jboss啟動時就建立該server的例項Server
- [解決] Goland 開啟後直接崩潰GoLand
- ORA-7445(dbgrlWriteAlertDetail_int)和ORA-4030導致例項崩潰AI
- WKWebView崩潰WebView
- Redis崩潰Redis
- app 崩潰的原因APP
- oracle 10203啟動例項報警Oracle