Oracle数据库启动过程验证检查点SCN(四)

2015-01-21 12:22:37 · 作者: · 浏览: 23
7 krfil=6 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
?Checkpoint cnt:3 scn: 0x0000.00089cfb 03/18/2014 13:32:52
?Stop scn: 0x0000.00089cfb 03/18/2014 13:32:52
? Creation Checkpointed at scn:? 0x0000.00089bd3 03/18/2014 13:29:26
? thread:1 rba:(0x3.e2.10)


? ? 从上面的内容可以看出,每个数据文件的检查点次数都是不同;除了DATA FILE 6以外的SCN号不同外,其余数据文件都是相同的;每个数据文件的SCN号与Stop SCN号都是一致的,除了DATA FILE 6以外,其余的数据文件SCN、STOP SCN都和前面的数据库SCN一致。


?


c).转储存储在数据文件头中的数据文件检查点次数和启动SCN:
?DATA FILE #1:
? (name #7) /u01/app/oracle1/oradata/orcl/system01.dbf
?creation size=0 block size=8192 status=0xe head=7 tail=7 dup=1
? tablespace 0, index=1 krfil=1 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
?Checkpoint cnt:183 scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Stop scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Creation Checkpointed at scn:? 0x0000.00000008 10/22/2005 21:44:31


?DATA FILE #2:
? (name #6) /u01/app/oracle1/oradata/orcl/undotbs01.dbf
?creation size=0 block size=8192 status=0xe head=6 tail=6 dup=1
? tablespace 1, index=2 krfil=2 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
? Checkpoint cnt:145 scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Stop scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Creation Checkpointed at scn:? 0x0000.0007fd42 10/22/2005 22:24:27
?
?DATA FILE #3:
? (name #5) /u01/app/oracle1/oradata/orcl/sysaux01.dbf
?creation size=0 block size=8192 status=0xe head=5 tail=5 dup=1
? tablespace 2, index=3 krfil=3 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
? Checkpoint cnt:183 scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Stop scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Creation Checkpointed at scn:? 0x0000.00001896 10/22/2005 21:44:46
? thread:0 rba:(0x0.0.0)
?
?DATA FILE #4:
? (name #4) /u01/app/oracle1/oradata/orcl/users01.dbf
?creation size=0 block size=8192 status=0xe head=4 tail=4 dup=1
? tablespace 4, index=4 krfil=4 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
? Checkpoint cnt:182 scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Stop scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Creation Checkpointed at scn:? 0x0000.000027b9 10/22/2005 21:45:00
? thread:0 rba:(0x0.0.0)
?
?DATA FILE #5:
? (name #9) /u01/app/oracle1/oradata/orcl/gguser.dbf
?creation size=128000 block size=8192 status=0xe head=9 tail=9 dup=1
? tablespace 6, index=6 krfil=5 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
? Checkpoint cnt:135 scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Stop scn: 0x0000.00091eb4 04/16/2014 13:54:27
? Creation Checkpointed at scn:? 0x0000.00083314 02/19/2014 14:33:57
? thread:1 rba:(0x2.c04b.10)
?
?DATA FILE #6:
? (name #10) /u01/app/oracle1/oradata/orcl/ogg2.dbf
?creation size=640 block size=8192 status=0x86 head=10 tail=10 dup=1
? tablespace 7, index=7 krfil=6 prev_file=0
? unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
? Checkpoint cnt:3 scn: 0x0000.00089cfb 03/18/2014 13:32:52
? Stop scn: 0x0000.00089cfb 03/18/2014 13:32:52
? Creation Checkpointed at scn:? 0x0000.00089bd3 03/18/2014 13:29:26
? thread:1 rba:(0x3.e2.10)


这里每个数据文件检查点次数和前面从控制文件转储出来的数据文件检查点次数是一致的;每个数据文件的SCN号和Stop SCN与从控制文件查询的数据文件SCN号和STOP SCN号也是一致的。


? 由于存储在控制文件中的数据库SCN号与除了DATA FILE 6以外的所有数据文件的SCN、STOP SCN都完全一致(包括存储在控制文件和数据文件头)。


SQL> select tablespace_name,file_id from dba_data_files where file_id=6;


?TABLESPACE_NAME? ? ? ? ? ? ? ? ? FILE_ID
?--------------------