Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

316

积分

0

好友

0

主题
1#
发表于 2012-3-20 13:10:23 | 查看: 3768| 回复: 1
dump controlf、file_hdrs 中control seq代表什么

Control Seq
2#
发表于 2012-3-20 13:42:49
Whenever a controlfile transaction is committed, the controlfile sequence number is incremented. This number is recorded with the block version bitmap and database information entry in the first record section of the controlfile. It is used in the cache header of each controlfile block in place of an SCN to detect possible split blocks from hot backups. It is also used in queries that perform multiple controlfile reads to ensure that a consistent snapshot of the controlfile has been seen. If not, an ORA-00235 error is returned.

SQL> oradebug setmypid;
Statement processed.
SQL> oradebug dump controlf 3;
Statement processed.

DUMP OF CONTROL FILES, Seq # 36056 = 0x8cd8
V10 STYLE FILE HEADER:
        Compatibility Vsn = 169869568=0xa200100
        Db ID=2807279631=0xa753b00f, Db Name='G10R21'
        Activation ID=0=0x0
        Control Seq=36056=0x8cd8, File size=662=0x296
        File Number=0, Blksiz=16384, File Type=1 CONTROL


CONTROL FILES, Seq # 36056 = 0x8cd8


SQL> alter system checkpoint;

System altered.

SQL> oradebug setmypid;
Statement processed.

SQL> oradebug dump  controlf 3;
Statement processed.


DUMP OF CONTROL FILES, Seq # 36059 = 0x8cdb
V10 STYLE FILE HEADER:
        Compatibility Vsn = 169869568=0xa200100
        Db ID=2807279631=0xa753b00f, Db Name='G10R21'
        Activation ID=0=0x0
        Control Seq=36059=0x8cdb, File size=662=0x296
        File Number=0, Blksiz=16384, File Type=1 CONTROL


CONTROL FILES, Seq # 36059 = 0x8cdb



36056 => checkpoint, controlfile transaction commited => 36059 control seq

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-15 07:29 , Processed in 0.051151 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569