OCR/OLR管理-创新互联
OCR:
分享文章:OCR/OLR管理-创新互联
文章源于:http://scyanting.com/article/hhieo.html
oracle集群注册表(ocr)是oracle rac配置信息的资料库,用于管理集群节点列表和实例的信息
ocr位置是安装crs时指定的,位于== cat /etc/oracle/ocr.loc==
[root@host03 ~]# cat /etc/oracle/ocr.loc
#Device/file getting replaced by device +DGACFS/cluster01/OCRFILE/registry.255.1117900157
ocrconfig_loc=+DGDATA/cluster01/OCRFILE/registry.255.1117898429
ocrmirrorconfig_loc=+DGFRA/cluster01/OCRFILE/registry.255.1117900147
ocrconfig_loc3=+DGACFS/cluster01/OCRFILE/registry.255.1117900157
检查OCR的完整性
[root@host03 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 2868
Available space (kbytes) : 406700
ID : 301143007
Device/File Name : +DGDATA
Device/File integrity check succeeded
Device/File Name : +DGFRA
Device/File integrity check succeeded
Device/File Name : +DGACFS
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@host03 ocrbackup]# ocrconfig -delete +DGACFS
[root@host03 ocrbackup]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 2900
Available space (kbytes) : 406668
ID : 301143007
Device/File Name : +DGDATA
Device/File integrity check succeeded
Device/File Name : +DGFRA
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
olr:本地注册表位于:grid_home/host_name.olr
检查本地节点olr状态
[root@host03 ~]# ocrcheck -local
Status of Oracle Local Registry is as follows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 816
Available space (kbytes) : 408752
ID : 1286866930
Device/File Name : /u01/app/12.1.0/grid/cdata/host03.olr
Device/File integrity check succeeded
Local registry integrity check succeeded
Logical corruption check succeeded
还原olr顺序
1 crsctl stop crs
2 [root@host03 ~]# ocrconfig -showbackup
PROT-24: Auto backups for the Oracle Cluster Registry are not available
host04 2022/12/03 20:25:41 /home/oracle/ocrbackup/backup_20221203_202541.ocr 0
3 ocrconfig -local -restore4 [root@host03 ~]# ocrcheck -local
5 crsctl start crs
6 cluvfy comp clr
还原ocr
crsctl stop crs
crsctl start crs -excl
ocrconfig -local -restore
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
分享文章:OCR/OLR管理-创新互联
文章源于:http://scyanting.com/article/hhieo.html