10g OCR工具ocrcheck ocrconfig ocrdump

在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博客 ” ,链接:http://blog.itpub.net/9533994/viewspace-1010916/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9533994/viewspace-1010916/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值