重做日志时间戳说明
create table tim (tn int,itime timestamp); |
declare stime timestamp; dtime timestamp; etime timestamp; begin for i in 1 .. 10 loop stime := systimestamp; insert into tim values (i, systimestamp); etime := systimestamp; select itime into dtime from tim where tn = i; dbms_output.put_line('start time: ' || to_char(stime,'HH24:MI:SS:FF') || ' doing time: ' || to_char(dtime,'HH24:MI:SS:FF') || ' end time:' || to_char(etime,'HH24:MI:SS:FF')); dbms_lock.sleep(2.9); commit; end loop; end; |
start time: 15:10:06:986235000 doing time: 15:10:06:987493000 end time:15:10:06:987962000 start time: 15:10:09:894372000 doing time: 15:10:09:894505000 end time:15:10:09:894738000 start time: 15:10:12:796921000 doing time: 15:10:12:797057000 end time:15:10:12:797293000 start time: 15:10:15:698497000 doing time: 15:10:15:698642000 end time:15:10:15:698856000 start time: 15:10:18:601077000 doing time: 15:10:18:601222000 end time:15:10:18:601451000 start time: 15:10:21:502664000 doing time: 15:10:21:502803000 end time:15:10:21:503044000 start time: 15:10:24:405294000 doing time: 15:10:24:405435000 end time:15:10:24:405673000 start time: 15:10:27:307828000 doing time: 15:10:27:307979000 end time:15:10:27:308193000 start time: 15:10:30:209477000 doing time: 15:10:30:209619000 end time:15:10:30:209865000 start time: 15:10:33:112033000 doing time: 15:10:33:112173000 end time:15:10:33:112397000 |
select tn,to_char(itime,'HH24:MI:SS:FF') ITIME ,dump(itime,16) HEX_ITIME from tim;
|
alter system dump logfile '/u01/oradata/orcl/redo01.log'; |
REDO RECORD - Thread:1 RBA: 0x000026.0000000c.0010 LEN: 0x02a0 VLD: 0x0d SCN: 0x0000.000b727b SUBSCN: 1 06/14/2009 15:10:09 CHANGE #1 TYP:1 CLS: 1 AFN:1 DBA:0x0040ebf2 OBJ:51447 SCN:0x0000.000b7279 SEQ: 1 OP:13.5 KTSFRBFMT (block format) redo: Segobjd: 0x0000c8f7 type: 1 itls: 2 CHANGE #2 TYP:0 CLS: 1 AFN:1 DBA:0x0040ebf2 OBJ:51447 SCN:0x0000.000b727b SEQ: 1 OP:13.6 KTSFRBLNK (block link modify) redo: Opcode: LSET (lock set) Next dba: 0x0040ebf3 itli: 0 CHANGE #3 TYP:0 CLS: 1 AFN:1 DBA:0x0040ebf2 OBJ:51447 SCN:0x0000.000b727b SEQ: 2 OP:13.6 KTSFRBLNK (block link modify) redo: Opcode: LWRT (lock write) Next dba: 0x00000000 itli: 0 CHANGE #4 TYP:0 CLS: 4 AFN:1 DBA:0x0040ebf1 OBJ:51447 SCN:0x0000.000b726a SEQ: 1 OP:13.7 KTSFRGRP (fgb/shdr modify freelist) redo: Opcode: HWMMV (move hwm) NBK: 1 Opcode: LUPD_LLIST (link a list) Slot no: 0, Count: 1 Flag: = 1 xid or slot0 ccnt: 0x0000.000.00000001 Head: 0x0040ebf2 Tail: 0x0040ebf2 CHANGE #5 TYP:0 CLS: 1 AFN:1 DBA:0x0040ebf2 OBJ:51447 SCN:0x0000.000b727b SEQ: 3 OP:11.2 KTB Redo op: 0x01 ver: 0x01 op: F xid: 0x0009.02b.0000015d uba: 0x00808df4.0163.24 KDO Op code: IRP row dependencies Disabled xtype: XA flags: 0x00000000 bdba: 0x0040ebf2 hdba: 0x0040ebf1 itli: 1 ispac: 0 maxfr: 4863 tabn: 0 slot: 0(0x0) size/delt: 18 fb: --H-FL-- lb: 0x1 cc: 2 null: -- col 0: [ 2] c1 02 col 1: [11] 78 6d 06 0e 10 0b 07 3a db f2 88 |
REDO RECORD - Thread:1 RBA: 0x000026.0000000e.0010 LEN: 0x01e4 VLD: 0x0d SCN: 0x0000.000b727d SUBSCN: 1 06/14/2009 15:10:12 CHANGE #1 TYP:2 CLS: 1 AFN:1 DBA:0x0040ebf2 OBJ:51447 SCN:0x0000.000b727b SEQ: 5 OP:11.2 KTB Redo op: 0x01 ver: 0x01 op: F xid: 0x0003.026.00000141 uba: 0x00806194.0257.19 KDO Op code: IRP row dependencies Disabled xtype: XA flags: 0x00000000 bdba: 0x0040ebf2 hdba: 0x0040ebf1 itli: 2 ispac: 0 maxfr: 4863 tabn: 0 slot: 1(0x1) size/delt: 18 fb: --H-FL-- lb: 0x2 cc: 2 null: -- col 0: [ 2] c1 03 col 1: [11] 78 6d 06 0e 10 0b 0a 35 51 10 28 |
posted on 2009-08-09 22:56 Oracle和MySQL 阅读(320) 评论(0) 编辑 收藏 举报