在Oracle10g 的RAC环境中,有几个工具可以用于进行OCR管理,这其中主要的几个是:ocrcheck ,ocrdump, ocrconfig
ocrcheck可以用于减产OCR存储的使用情况:
[oracle@smsdbrac1 oracle]$ ocrcheck -help
Name:
ocrcheck - Displays health of Oracle Cluster Registry.Synopsis:
ocrcheckDescription:
prompt> ocrcheck
Displays current usage, location and health of the cluster registryNotes:
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 succeededDevice/File not configured
Cluster registry integrity check succeeded
以上输出显示在256M的OCR存储中,当前只是用了4M左右的空间,其设备文件为:/dev/raw/raw1
ocrconfig -showbackup 命令可以用于查看Oracle对OCR进行的自动备份:
[oracle@smsdbrac2 ~]$ ocrconfig -showbackupsmsdbrac1 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
-The End-
http://www.eygle.com/archives/2008/06/ocrcheck_ocrconfig_ocrdump.html
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/1384/viewspace-342936/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/1384/viewspace-342936/