eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« Oracle进程:LMS 进程与Oracle RAC | Blog首页 | 数据字典视图之:v$database 结构 »

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

-The End-


历史上的今天...
    >> 2012-06-04文章:
    >> 2009-06-04文章:

无觅

By eygle on 2008-06-04 20:50 | Comments (0) | Advanced | 1935 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com