数据库一致性的4个SCN
sys@OMREP> select checkpoint_change# from v$database;CHECKPOINT_CHANGE#
------------------
1995418
sys@OMREP> select checkpoint_change#,last_change# from v$datafile;
CHECKPOINT_CHANGE# LAST_CHANGE#
------------------ ------------
1995418
1995418
1995418
1995418
sys@OMREP> select checkpoint_change# from v$datafile_header;
CHECKPOINT_CHANGE#
------------------
1995418
1995418
1995418
1995418
sys@OMREP> shutdown immediate;
sys@OMREP> startup mount;
sys@OMREP> select checkpoint_change# from v$database;
CHECKPOINT_CHANGE#
------------------
1996199
sys@OMREP> select checkpoint_change#,last_change# from v$datafile;
CHECKPOINT_CHANGE# LAST_CHANGE#
------------------ ------------
1996199 1996199
1996199 1996199
1996199 1996199
1996199 1996199
sys@OMREP> select checkpoint_change# from v$datafile_header;
CHECKPOINT_CHANGE#
------------------
1996199
1996199
1996199
1996199
sys@OMREP> alter database open;
sys@OMREP> alter system switch logfile;
System altered.
sys@OMREP> startup mount force;
ORACLE instance started.
Total System Global Area422670336 bytes
Fixed Size 1336960 bytes
Variable Size 331352448 bytes
Database Buffers 83886080 bytes
Redo Buffers 6094848 bytes
Database mounted.
sys@OMREP> select checkpoint_change# from v$database;
CHECKPOINT_CHANGE#
------------------
2016326
sys@OMREP> select checkpoint_change#,last_change# from v$datafile;
CHECKPOINT_CHANGE# LAST_CHANGE#
------------------ ------------
2016326
2016326
2016326
2016326
sys@OMREP> select checkpoint_change# from v$datafile_header;
CHECKPOINT_CHANGE#
------------------
2016326
2016326
2016326
2016326
不一致性关闭没有last_change#
scn有四个,控制文件中三个:
select checkpoint_change# from v$database;
select checkpoint_change#,last_change# from v$datafile;
数据文件里一个:
select checkpoint_change# from v$datafile_header;
支持一下
页:
[1]