redo block header

OS redhat 6.5 oracle 11.2.0.4 asm 环境

     通过asmcmd copy 命令 copy redo文件到 /tmp 目录下


-bash-4.1$ dd if=redo01.log  bs=512 count=1|od -xv
1+0 records in
1+0 records out
0000000 2200 0000 0000 ffc0 0000 0000 0000 0000
0000020 c867 0000 0200 0000 9000 0001 7c7d 7a7b   redo 文件块数,魔术字
0000040 81a0 0000 0000 0000 0000 0000 0000 0000
0000060 0000 0000 0000 0000 0000 0000 0000 0000
0000100 0000 0000 0000 0000 0000 0000 0000 0000
0000120 0000 0000 0000 0000 0000 0000 0000 0000
0000140 0000 0000 0000 0000 0000 0000 0000 0000
0000160 0000 0000 0000 0000 0000 0000 0000 0000
0000200 0000 0000 0000 0000 0000 0000 0000 0000
0000220 0000 0000 0000 0000 0000 0000 0000 0000
0000240 0000 0000 0000 0000 0000 0000 0000 0000
0000260 0000 0000 0000 0000 0000 0000 0000 0000
0000300 0000 0000 0000 0000 0000 0000 0000 0000
0000320 0000 0000 0000 0000 0000 0000 0000 0000
0000340 0000 0000 0000 0000 0000 0000 0000 0000
0000360 0000 0000 0000 0000 0000 0000 0000 0000
0000400 0000 0000 0000 0000 0000 0000 0000 0000
0000420 0000 0000 0000 0000 0000 0000 0000 0000
0000440 0000 0000 0000 0000 0000 0000 0000 0000
0000460 0000 0000 0000 0000 0000 0000 0000 0000
0000500 0000 0000 0000 0000 0000 0000 0000 0000
0000520 0000 0000 0000 0000 0000 0000 0000 0000
0000540 0000 0000 0000 0000 0000 0000 0000 0000
0000560 0000 0000 0000 0000 0000 0000 0000 0000
0000600 0000 0000 0000 0000 0000 0000 0000 0000
0000620 0000 0000 0000 0000 0000 0000 0000 0000
0000640 0000 0000 0000 0000 0000 0000 0000 0000
0000660 0000 0000 0000 0000 0000 0000 0000 0000
0000700 0000 0000 0000 0000 0000 0000 0000 0000
0000720 0000 0000 0000 0000 0000 0000 0000 0000
0000740 0000 0000 0000 0000 0000 0000 0000 0000
0000760 0000 0000 0000 0000 0000 0000 0000 0000
0001000  ==>8进账转 10进制 512

接下来 dd redo header block 

-bash-4.1$ dd if=redo01.log skip=1  bs=512 count=1|od -xv
1+0 records in
1+0 records out
0000000 2201 0000 0001 0000 009d 0000 8000 f826
0000020 0000 0000 0400 0b20 82b8 0f43 5250 444f  ==> PROD : 50,52,4f,44
0000040 0000 0000 3d44 0000 9000 0001 0200 0000 ==> 0001 9000 BLOCKS 
0000060 0001 0002 1e2f 10bd 0000 0000 0000 0000
0000100 0000 0000 0000 0000 0000 0000 0000 0000
0000120 0000 0000 0000 0000 0000 0000 6854 6572
0000140 6461 3020 3030 2c31 5320 7165 2023 3030
0000160 3030 3030 3130 3735 202c 4353 204e 7830
0000200 3030 3030 3030 3963 3864 3462 302d 3078
0000220 3030 3030 6330 3661 6531 0061 6d65 0000
0000240 6ac8 33cb cdf7 0081 0000 0000 0004 0000
0000260 0001 0000 d8b4 00c9 0000 0000 b0e2 350e
0000300 61ea 00ca 0000 0000 a3d3 350f 0000 0208
0000320 cdf7 0081 0000 0000 6ac8 33cb 61e8 00ca
0000340 0000 0000 07bf 350f 0000 0000 0000 0080
0000360 0000 0000 0000 0000 0000 0000 0002 0000
0000400 0000 0000 0000 0000 0000 0000 0000 0000
0000420 0000 0000 0000 0000 0000 0000 5b94 007a
0000440 0000 0000 8481 33ae 0000 0000 0000 0000
0000460 0000 0000 0000 0000 0000 0000 0000 0000
0000500 0000 0000 0000 0000 0000 0000 0000 0000
0000520 0000 0000 0000 0000 0000 0000 0000 0000
0000540 0000 0000 0000 0000 0000 0000 0000 0000
0000560 0000 0000 0000 0000 0000 0000 0000 0000
0000600 0000 0000 0000 0000 0000 0000 0000 0000
0000620 0000 0000 0000 0000 0000 0000 0000 0000
0000640 0000 0000 0000 0000 0000 0000 0000 0000
0000660 0000 0000 0000 0000 0000 0000 0000 0000
0000700 e317 820d 2ead c975 e99b 6447 e9ba 586f
0000720 cfa5 b3ad 95e3 a7aa 4335 2113 e372 1f91
0000740 0005 0000 0000 0000 0000 0000 0000 0000
0000760 0000 0000 0000 0000 0000 0000 0000 0000
0001000  =>512


通过oracle命令 alter session set events 'immediate trace name redohdr level 10'; 


Trace file /u01/app/oracle/diag/rdbms/prod/PROD/trace/PROD_ora_3219.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1
System name:    Linux
Node name:      ocp02
Release:        3.8.13-16.2.1.el6uek.x86_64
Version:        #1 SMP Thu Nov 7 17:01:44 PST 2013
Machine:        x86_64
Instance name: PROD
Redo thread mounted by this instance: 1
Oracle process number: 20
Unix process pid: 3219, image: oracle@ocp02 (TNS V1-V3)

*** 2015-09-12 11:24:35.640
*** SESSION ID:(11.5) 2015-09-12 11:24:35.640
*** CLIENT ID:() 2015-09-12 11:24:35.640
*** SERVICE NAME:(SYS$USERS) 2015-09-12 11:24:35.640
*** MODULE NAME:(sqlplus@ocp02 (TNS V1-V3)) 2015-09-12 11:24:35.640
*** ACTION NAME:() 2015-09-12 11:24:35.640

DUMP OF LOG FILES: 3 logs in database
LOG FILE #1:
  name #1: +DATA/prod/redo01.log
 Thread 1 redo log links: forward: 2 backward: 0
 siz: 0x19000 seq: 0x0000009d hws: 0x4 bsz: 512 nab: 0x6d65 flg: 0x1 dup: 1
 Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00c9cd34
 Low scn: 0x0000.00c9d8b4 09/11/2015 17:20:34
 Next scn: 0x0000.00ca61ea 09/12/2015 10:37:07
 FILE HEADER:
        Compatibility Vsn = 186647552=0xb200400
        Db ID=256082616=0xf4382b8, Db Name='PROD'
        Activation ID=280829487=0x10bd1e2f
        Control Seq=15684=0x3d44, File size=102400=0x19000
        File Number=1, Blksiz=512, File Type=2 LOG
 Format ID is 2
 redo log key is 17e3d82ad2e75c99be94764bae96f58
 redo log key flag is 5
 descrip:"Thread 0001, Seq# 0000000157, SCN 0x000000c9d8b4-0x000000ca61ea"
 thread: 1 nab: 0x6d65 seq: 0x0000009d hws: 0x4 eot: 0 dis: 0
 reset logs count: 0x33cb6ac8 scn: 0x0000.0081cdf7
 Low scn: 0x0000.00c9d8b4 09/11/2015 17:20:34
 Next scn: 0x0000.00ca61ea 09/12/2015 10:37:07
 Enabled scn: 0x0000.0081cdf7 01/14/2015 12:19:20
 Thread closed scn: 0x0000.00ca61e8 09/11/2015 23:31:11
 Disk cksum: 0xf826 Calc cksum: 0xf826
 Terminal Recovery Stop scn: 0x0000.00000000
 Terminal Recovery Stamp  01/01/1988 00:00:00
 Most recent redo scn: 0x0000.00000000
 Largest LWN: 0 blocks
 Miscellaneous flags: 0x800000
 Thread internal enable indicator: thr: 0, seq: 0 scn: 0x0000.00000000
 Zero blocks: 8
 Enabled redo threads: 1
LOG FILE #2:
  name #2: +DATA/prod/redo02.log
 Thread 1 redo log links: forward: 3 backward: 1
 siz: 0x19000 seq: 0x0000009e hws: 0x2 bsz: 512 nab: 0xffffffff flg: 0x8 dup: 1
 Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00c9d8b4
 Low scn: 0x0000.00ca61ea 09/12/2015 10:37:07
 Next scn: 0xffff.ffffffff 01/01/1988 00:00:00
 FILE HEADER:
        Compatibility Vsn = 186647552=0xb200400
        Db ID=256082616=0xf4382b8, Db Name='PROD'
        Activation ID=280829487=0x10bd1e2f
        Control Seq=15685=0x3d45, File size=102400=0x19000
        File Number=2, Blksiz=512, File Type=2 LOG
 Format ID is 2
 redo log key is 3697183ff72202b229fe168af1bcfec
 redo log key flag is 5
 descrip:"Thread 0001, Seq# 0000000158, SCN 0x000000ca61ea-0xffffffffffff"
 thread: 1 nab: 0xffffffff seq: 0x0000009e hws: 0x2 eot: 1 dis: 0
 reset logs count: 0x33cb6ac8 scn: 0x0000.0081cdf7
 Low scn: 0x0000.00ca61ea 09/12/2015 10:37:07
 Next scn: 0xffff.ffffffff 01/01/1988 00:00:00
 Enabled scn: 0x0000.0081cdf7 01/14/2015 12:19:20
 Thread closed scn: 0x0000.00ca61ea 09/12/2015 10:37:07
 Disk cksum: 0x83a8 Calc cksum: 0x83a8
 Terminal Recovery Stop scn: 0x0000.00000000
 Terminal Recovery Stamp  01/01/1988 00:00:00
 Most recent redo scn: 0x0000.00000000
 Largest LWN: 0 blocks
 Miscellaneous flags: 0x800000
 Thread internal enable indicator: thr: 0, seq: 0 scn: 0x0000.00000000
 Zero blocks: 0
 Enabled redo threads: 1
LOG FILE #3:
  name #3: +DATA/prod/redo03.log
 Thread 1 redo log links: forward: 0 backward: 2
 siz: 0x19000 seq: 0x0000009c hws: 0x4 bsz: 512 nab: 0x56d7 flg: 0x1 dup: 1
 Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00c93ca1
 Low scn: 0x0000.00c9cd34 09/11/2015 17:00:01
 Next scn: 0x0000.00c9d8b4 09/11/2015 17:20:34
 FILE HEADER:
        Compatibility Vsn = 186647552=0xb200400
        Db ID=256082616=0xf4382b8, Db Name='PROD'
        Activation ID=280829487=0x10bd1e2f
        Control Seq=15683=0x3d43, File size=102400=0x19000
        File Number=3, Blksiz=512, File Type=2 LOG
 Format ID is 2
 redo log key is 744617dd59dacfaa1a8e12757bef2c3
 redo log key flag is 5
 descrip:"Thread 0001, Seq# 0000000156, SCN 0x000000c9cd34-0x000000c9d8b4"
 thread: 1 nab: 0x56d7 seq: 0x0000009c hws: 0x4 eot: 0 dis: 0
 reset logs count: 0x33cb6ac8 scn: 0x0000.0081cdf7
 Low scn: 0x0000.00c9cd34 09/11/2015 17:00:01
 Next scn: 0x0000.00c9d8b4 09/11/2015 17:20:34
 Enabled scn: 0x0000.0081cdf7 01/14/2015 12:19:20
 Thread closed scn: 0x0000.00c9cd34 09/11/2015 17:00:01
 Disk cksum: 0x21c4 Calc cksum: 0x21c4
 Terminal Recovery Stop scn: 0x0000.00000000
 Terminal Recovery Stamp  01/01/1988 00:00:00
 Most recent redo scn: 0x0000.00000000
 Largest LWN: 2057 blocks
 Miscellaneous flags: 0x800000
 Thread internal enable indicator: thr: 0, seq: 0 scn: 0x0000.00000000
 Zero blocks: 8
 Enabled redo threads: 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值