ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 如何查看Control File中保存的内容

如何查看Control File中保存的内容

原创 Linux操作系统 作者:zhouwf0726 时间:2019-03-26 12:27:05 0 删除 编辑

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


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/756652/viewspace-242266/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle tune
请登录后发表评论 登录
全部评论

注册时间:2006-02-22

  • 博文量
    458
  • 访问量
    416623