Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91767067
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Oracle

2008-03-31 12:57:29

来源:赛迪网    作者:王艺业

由于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
阅读(625) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~