摘自http://space.itpub.net/23650854/viewspace-663382
Control File是二进制文件。要查看Control File内容 ,需以SYSDBA身份登入SQL*PLUS
SQL> oradebug setmypid
SQL> oradebug dump controlf 3
control file 被dump到USER_DUMP_DEST参数指定的目录下。
其中,3为dump level(level解释见最后)
Control File:
(1)数据库名和标识和建立时的时间戳 (SELECT * FROM V$DATABASE;)
(2)表空间名(SELECT * FROM V$TABLESPACE;)
(3)数据重作日志文件的名称和位置(SELECT * FROM V$LOGFILE;
(4)当前重作日志文件的序列号(SELECT * FROM V$LOG;)
(5)同步检测点信息
(6)开始和结束重作段定义
(7)重作日志归档信息(SELECT * FROM V$ARCHIVED_LOG;)
(8)备份信息(SELECT * FROM V$BACKUP;
level的解释如下:
1 :only the file header
2 :just the file header, the database info record, and checkpoint progress records
3 :all record types, but just the earliest and latest records for circular reuse record types
4 :as above, but includes the 4 most recent records for circular reuse record types
5+ :as above, but the number of circular reuse records included doubles with each level
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10239785/viewspace-663942/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10239785/viewspace-663942/
本文介绍了Oracle数据库中ControlFile的重要作用及如何通过特定命令查看其内容。ControlFile包含了数据库名、表空间信息、重做日志文件等关键数据,并提供了查看这些信息的方法。
174万+

被折叠的 条评论
为什么被折叠?



