- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
5#
发表于 2012-4-14 20:36:25
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> alter system set log_checkpoint_timeout=10;
System altered.
SQL> alter system checkpoint;
System altered.
SQL> select CHECKPOINT_CHANGE# , CONTROLFILE_CHANGE# from v$database;
CHECKPOINT_CHANGE# CONTROLFILE_CHANGE#
------------------ -------------------
17637178 17637178
SQL> delete tls ;
50675 rows deleted.
SQL> commit;
Commit complete.
SQL> alter system flush buffer_cache;
System altered.
SQL> select CHECKPOINT_CHANGE# , CONTROLFILE_CHANGE# from v$database;
CHECKPOINT_CHANGE# CONTROLFILE_CHANGE#
------------------ -------------------
17637178 17639482
Sat Apr 14 08:29:41 2012
Incremental checkpoint up to RBA [0x10.c157.0], current log tail at RBA [0x10.c157.0]
Sat Apr 14 08:29:50 2012
Incremental checkpoint up to RBA [0x10.c158.0], current log tail at RBA [0x10.c158.0]
CONTROLFILE_CHANGE# 控制文件change#增加了, 这个CONTROLFILE_CHANGE# 会随着CKPT 每3s的heartbeat 更新, 而CHECKPOINT_CHANGE# 等于上一次FULL或 thread 或 log switch(比较特殊) checkpoint 检查点发生时的更新的SCN。
SQL> oradebug setmypid;
Statement processed.
SQL> oradebug dump controlf 4;
Statement processed.
SQL> oradebug tracefile_name;
/s01/admin/G10R21/udump/g10r21_ora_24875.trc
SQL> select CHECKPOINT_CHANGE# , CONTROLFILE_CHANGE# from v$database;
CHECKPOINT_CHANGE# CONTROLFILE_CHANGE#
------------------ -------------------
17637178 17639482
***************************************************************************
DATABASE ENTRY
***************************************************************************
(size = 316, compat size = 316, section max = 1, section in-use = 1,
last-recid= 0, old-recno = 0, last-recno = 0)
(extent = 1, blkno = 1, numrecs = 1)
03/09/2012 23:20:03
DB Name "G10R21"
Database flags = 0x40404001 0x00001200
Controlfile Creation Timestamp 03/09/2012 23:20:03
Incmplt recovery scn: 0x0000.00000000
Resetlogs scn: 0x0000.0109a8d9 Resetlogs Timestamp 04/01/2012 07:39:01
Prior resetlogs scn: 0x0000.00e7795c Prior resetlogs Timestamp 03/09/2012 23:22:15
Redo Version: compatible=0xa200100
#Data files = 16, #Online files = 15
Database checkpoint: Thread=1 scn: 0x0000.010d1f3a
Threads: #Enabled=1, #Open=1, Head=1, Tail=1
enabled threads: 01000000 00000000 00000000 00000000 00000000 00000000
Max log members = 3, Max data members = 1
Arch list: Head=3, Tail=3, Force scn: 0x0000.010c30b4scn: 0x0000.010d1f0a
Activation ID: 2820193140
Controlfile Checkpointed at scn: 0x0000.010d283a 04/14/2012 08:28:59
thread:0 rba:(0x0.0.0)
0x0000.010d283a ==》 17639482 == CONTROLFILE_CHANGE#
***************************************************************************
CHECKPOINT PROGRESS RECORDS
***************************************************************************
(size = 8180, compat size = 8180, section max = 11, section in-use = 0,
last-recid= 0, old-recno = 0, last-recno = 0)
(extent = 1, blkno = 2, numrecs = 11)
THREAD #1 - status:0x2 flags:0x0 dirty:0
low cache rba:(0xffffffff.ffffffff.ffff) on disk rba:(0x10.c15e.0)
on disk scn: 0x0000.010d2859 04/14/2012 08:30:21
resetlogs scn: 0x0000.0109a8d9 04/01/2012 07:39:01
heartbeat: 780353738 mount id: 2820988564
Flashback log tail log# 20 thread# 1 seq 82 block 139 byte 0 |
|