轉儲日誌檔案頭
一般來講我們可以通過轉儲日誌檔案頭來獲得更多的日誌檔案資訊:
SQL> alter session set events 'immediate trace name redohdr level 10';
會話已更改。
以下是日誌檔案的內容:
通過蘭色字型我們可以看到更多的資訊內容,比如日誌塊資料的大小(512位元組),而且通過Next scn: 0xffff.ffffffff 我們還可以看到log file group 1是我們的current日誌檔案組
Dump file d:\oracle\admin\icmnlsdb\udump\mylife_ora_4256.trc
Thu Dec 20 13:48:25 2007
ORACLE V9.2.0.8.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.1 Service Pack 2, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Windows 2000 Version 5.1 Service Pack 2, CPU type 586
Instance name: mylife
Redo thread mounted by this instance: 1
Oracle process number: 10
Windows thread id: 4256, image: ORACLE.EXE
*** 2007-12-20 13:48:25.515
*** SESSION ID:(8.1338) 2007-12-20 13:48:25.500
DUMP OF LOG FILES: 3 logs in database
LOG FILE #1:
(name #3) D:\ORACLE\ORADATA\ICMNLSDB\REDO01.LOG
Thread 1 redo log links: forward: 2 backward: 0
siz: 0x32000 seq: 0x00000011 hws: 0x1 bsz: 512 nab: 0xffffffff flg: 0x8 dup: 1
Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.003022c6
Low scn: 0x0000.003022c8 12/18/2007 14:34:04
Next scn: 0xffff.ffffffff 01/01/1988 00:00:00
FILE HEADER:
Software vsn=153092096=0x9200000, Compatibility Vsn=153092096=0x9200000
Db ID=862305779=0x3365bdf3, Db Name='ICMNLSDB'
Activation ID=873011973=0x34091b05
Control Seq=1146=0x47a, File size=204800=0x32000
File Number=1, Blksiz=512, File Type=2 LOG
descrip:"Thread 0001, Seq# 0000000017, SCN 0x0000003022c8-0xffffffffffff"
thread: 1 nab: 0xffffffff seq: 0x00000011 hws: 0x1 eot: 1 dis: 0
reset logs count: 0x261cb1c6 scn: 0x0000.0023ff8c
Low scn: 0x0000.003022c8 12/18/2007 14:34:04
Next scn: 0xffff.ffffffff 01/01/1988 00:00:00
Enabled scn: 0x0000.0023ff8c 11/23/2007 15:12:06
Thread closed scn: 0x0000.003022c8 12/18/2007 14:34:04
Log format vsn: 0x8000000 Disk cksum: 0xd4d5 Calc cksum: 0xd4d5
Terminal Recovery Stamp scn: 0x0000.00000000 01/01/1988 00:00:00
Most recent redo scn: 0x0000.00000000
Largest LWN: 0 blocks
Miscellaneous flags: 0x0
LOG FILE #2:
(name #2) D:\ORACLE\ORADATA\ICMNLSDB\REDO02.LOG
Thread 1 redo log links: forward: 3 backward: 1
siz: 0x32000 seq: 0x0000000f hws: 0x6 bsz: 512 nab: 0x32ae flg: 0x0 dup: 1
Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.002ecfaf
Low scn: 0x0000.002f1f17 12/14/2007 16:38:12
Next scn: 0x0000.003022c6 12/18/2007 14:34:01
FILE HEADER:
Software vsn=153092096=0x9200000, Compatibility Vsn=153092096=0x9200000
Db ID=862305779=0x3365bdf3, Db Name='ICMNLSDB'
Activation ID=873011973=0x34091b05
Control Seq=1144=0x478, File size=204800=0x32000
File Number=2, Blksiz=512, File Type=2 LOG
descrip:"Thread 0001, Seq# 0000000015, SCN 0x0000002f1f17-0x0000003022c6"
thread: 1 nab: 0x32ae seq: 0x0000000f hws: 0x6 eot: 0 dis: 0
reset logs count: 0x261cb1c6 scn: 0x0000.0023ff8c
Low scn: 0x0000.002f1f17 12/14/2007 16:38:12
Next scn: 0x0000.003022c6 12/18/2007 14:34:01
Enabled scn: 0x0000.0023ff8c 11/23/2007 15:12:06
Thread closed scn: 0x0000.002f3d07 12/16/2007 14:00:09
Log format vsn: 0x8000000 Disk cksum: 0xfd5 Calc cksum: 0xfd5
Terminal Recovery Stamp scn: 0x0000.00000000 01/01/1988 00:00:00
Most recent redo scn: 0x0000.00000000
Largest LWN: 0 blocks
Miscellaneous flags: 0x0
LOG FILE #3:
(name #1) D:\ORACLE\ORADATA\ICMNLSDB\REDO03.LOG
Thread 1 redo log links: forward: 0 backward: 2
siz: 0x32000 seq: 0x00000010 hws: 0x2 bsz: 512 nab: 0x2 flg: 0x0 dup: 1
Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.002f1f17
Low scn: 0x0000.003022c6 12/18/2007 14:34:01
Next scn: 0x0000.003022c8 12/18/2007 14:34:04
FILE HEADER:
Software vsn=153092096=0x9200000, Compatibility Vsn=153092096=0x9200000
Db ID=862305779=0x3365bdf3, Db Name='ICMNLSDB'
Activation ID=873011973=0x34091b05
Control Seq=1146=0x47a, File size=204800=0x32000
File Number=3, Blksiz=512, File Type=2 LOG
descrip:"Thread 0001, Seq# 0000000016, SCN 0x0000003022c6-0x0000003022c8"
thread: 1 nab: 0x2 seq: 0x00000010 hws: 0x2 eot: 0 dis: 0
reset logs count: 0x261cb1c6 scn: 0x0000.0023ff8c
Low scn: 0x0000.003022c6 12/18/2007 14:34:01
Next scn: 0x0000.003022c8 12/18/2007 14:34:04
Enabled scn: 0x0000.0023ff8c 11/23/2007 15:12:06
Thread closed scn: 0x0000.003022c6 12/18/2007 14:34:01
Log format vsn: 0x8000000 Disk cksum: 0x9d39 Calc cksum: 0x9d39
Terminal Recovery Stamp scn: 0x0000.00000000 01/01/1988 00:00:00
Most recent redo scn: 0x0000.00000000
Largest LWN: 0 blocks
Miscellaneous flags: 0x0
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-951/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 日誌檔案使用小結(轉)
- Mysql慢查詢日誌檔案轉ExcelMySqlExcel
- mysql 資料儲存檔案及6類日誌MySql
- 『無為則無心』Python日誌 — 66、將日誌資訊儲存到檔案中Python
- secureCRT螢幕日誌儲存到指定檔案的配置方法Securecrt
- 【MySQL日誌】MySQL日誌檔案初級管理MySql
- java專案日誌配置檔案Java
- 在Linux中,日誌檔案通常儲存在哪些目錄?Linux
- Linux伺服器常見的日誌檔案儲存位置!Linux伺服器
- 日誌檔案過大清理
- sybase iq日誌檔案管理
- MySQL InnoDB日誌檔案配置MySql
- SpringBoot指定日誌檔案和日誌Profile功能Spring Boot
- Laravel 指定日誌檔案記錄任意日誌Laravel
- 探究MySQL中的日誌檔案MySql
- mysql的日誌檔案詳解MySql
- lumen 日誌按天生成檔案
- tempdb日誌檔案暴增分析
- nginx日誌配置檔案說明Nginx
- linux 日誌log檔案 截斷Linux
- Linux下玩轉nginx系列(三)---nginx日誌配置檔案說明LinuxNginx
- 操作日誌記錄(包括輸出至自定義日誌檔案)
- 在Linux中,有一堆日誌檔案,如何刪除7天前的日誌檔案?Linux
- Linux檔案系統與日誌分析Linux
- Java實時讀取日誌檔案Java
- 限制 Apache日誌檔案大小的方法Apache
- selenium-日誌檔案的使用(十二)
- zabbix agent 日誌檔案輪詢分析
- 12c日誌檔案路徑
- SQL語句收縮日誌檔案SQL
- linux檔案系統和日誌分析Linux
- Linux 日誌檔案系統如何工作Linux
- logrotate 不支援不同裝置間的日誌轉儲logrotate
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- go開發屬於自己的日誌庫-檔案日誌庫實現Go
- SLF4J記錄日誌&&日誌檔案的滾動策略__SpringBootSpring Boot
- Linux下日誌檔案過大解決方案Linux
- MySQL技術內幕之“日誌檔案”MySql
- springboot使用logback記錄日誌,配置檔案Spring Boot