服务热线:13616026886

技术文档 欢迎使用技术文档,我们为你提供从新手到专业开发者的所有资源,你也可以通过它日益精进

位置:首页 > 技术文档 > 数据库技术 > Oracle技术 > Oracle开发 > 查看文档

如何查看"control file"中保存的内容

由于control file是二进制文件,用普通的方法很难知道其中到底保存了什么内容,但oracle提供了一个sql*plus命令来将control file的内容dump到文本文件中。

方法如下:

以sysdba身份登入sql*plus

sql> oradebug setmypid 

sql> oradebug dump controlf 3

将把control file dump到user_dump_dest初始化参数指定的目录下。

其中3为dump level。

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

扫描关注微信公众号