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/ ,如需转载,请注明出处,否则将追究法律责任。