ITPub博客

首页 > 数据库 > Oracle > 10g OCR工具ocrcheck ocrconfig ocrdump

10g OCR工具ocrcheck ocrconfig ocrdump

原创 Oracle 作者:jlttt 时间:2008-09-22 14:21:42 0 删除 编辑

在Oracle10g 的RAC环境中,有几个工具可以用于进行OCR管理,这其中主要的几个是:ocrcheck ,ocrdump, ocrconfig

ocrcheck可以用于减产OCR存储的使用情况:

[oracle@smsdbrac1 oracle]$ ocrcheck -help
Name:
ocrcheck - Displays health of Oracle Cluster Registry.

Synopsis:
ocrcheck

Description:
prompt> ocrcheck
Displays current usage, location and health of the cluster registry

Notes:
A log file will be created in
$ORACLE_HOME/log//client/ocrcheck_.log. Please ensure
you have file creation privileges in the above directory before
running this tool.

[oracle@smsdbrac1 oracle]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 256788
Used space (kbytes) : 4608
Available space (kbytes) : 252180
ID : 2070899579
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

以上输出显示在256M的OCR存储中,当前只是用了4M左右的空间,其设备文件为:/dev/raw/raw1

ocrconfig -showbackup 命令可以用于查看Oracle对OCR进行的自动备份:

[oracle@smsdbrac2 ~]$ ocrconfig -showbackup

smsdbrac1 2008/06/05 07:58:23 /opt/oracle/product/10.2.0/crs10g/cdata/crs
smsdbrac1 2008/06/05 03:58:22 /opt/oracle/product/10.2.0/crs10g/cdata/crs
smsdbrac1 2008/06/04 23:58:22 /opt/oracle/product/10.2.0/crs10g/cdata/crs
smsdbrac1 2008/06/04 07:58:10 /opt/oracle/product/10.2.0/crs10g/cdata/crs
smsdbrac1 2008/05/28 03:56:44 /opt/oracle/product/10.2.0/crs10g/cdata/crs

而ocrdump命令可以用于对OCR环境进行备份,如:

ocrdump /tmp/`hostname`_ocrdump_`date +%m%d%y:%H%M`
ocrdump -stdout -keyname SYSTEM.css
ocrdump -stdout -keyname SYSTEM.css -xml
[@more@]

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

上一篇: Best
下一篇: 每日一语
请登录后发表评论 登录
全部评论

注册时间:2008-06-28

  • 博文量
    75
  • 访问量
    686126