windows 环境怎样恢复 (oracle 11g grid) ocr voting 损坏的集群
2014-08-16 12:27
477 查看
假设原来的ocr 位置已经不存在,则必须使用同样的名字在原来同样的位置创建一个空 OCR 。
建议使用下面步骤来恢复OCR:
1、确定当前集群节点数
C:\>olsnodes
2、关闭 oracle clusterware (all of the nodes)
C:\crsctl stop crs
可能会由于 ocr 损坏而无法关闭集群,能够使用以下的命令来强制关闭集群:
C:\>crsctl stop crs -f
3、以独占模式启动集群
C:\>crsctl start crs -excl -nocrs
-nocrs 表示crsdprocess and OCR 不随集群堆栈一起启动,可是ASM 实例会启动
能够忽略上述命令运行时报出的错误信息。
4、恢复ocr
恢复前要确保对应的 ocr device 或者asm diskgroup 已经存在或者 已经mount了
假设是asm disk group 能够使用 asmca 图形界面来创建 dg
---先确定ocr 的备份位置
ocrconfig -showbackup
---恢复ocr
C:\>ocrconfig -restore file_name
5、验证ocr的完整性
C:\>ocrcheck
6、关闭执行在排他模式下的集群
C:\>crsctl stop crs -f
7、重新启动集群
C:\>crsctl start crs
8、使用CVU组件验证OCR 在全部节点间的完整性:
C:\>cluvfy comp ocr -n all -verbose
一下检測信息来之 liunx的測试环境,window 环境也差点儿相同
$cluvfy comp ocr -n all -verbose
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all specified nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+CRS" available on all the nodes
NOTE:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the
contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful.
windows 环境怎样恢复 (oracle 11g grid) ocr voting 损坏的集群
oracle 11g 以后 ocr 能够放到 asm 磁盘上,而ASM的启动依赖于ocr和votedisk,所以在丢失ocr或votedisk 会导致cluter无法正常启动假设原来的ocr 位置已经不存在,则必须使用同样的名字在原来同样的位置创建一个空 OCR 。
建议使用下面步骤来恢复OCR:
1、确定当前集群节点数
C:\>olsnodes
2、关闭 oracle clusterware (all of the nodes)
C:\crsctl stop crs
可能会由于 ocr 损坏而无法关闭集群,能够使用以下的命令来强制关闭集群:
C:\>crsctl stop crs -f
3、以独占模式启动集群
C:\>crsctl start crs -excl -nocrs
-nocrs 表示crsdprocess and OCR 不随集群堆栈一起启动,可是ASM 实例会启动
能够忽略上述命令运行时报出的错误信息。
4、恢复ocr
恢复前要确保对应的 ocr device 或者asm diskgroup 已经存在或者 已经mount了
假设是asm disk group 能够使用 asmca 图形界面来创建 dg
---先确定ocr 的备份位置
ocrconfig -showbackup
---恢复ocr
C:\>ocrconfig -restore file_name
5、验证ocr的完整性
C:\>ocrcheck
6、关闭执行在排他模式下的集群
C:\>crsctl stop crs -f
7、重新启动集群
C:\>crsctl start crs
8、使用CVU组件验证OCR 在全部节点间的完整性:
C:\>cluvfy comp ocr -n all -verbose
一下检測信息来之 liunx的測试环境,window 环境也差点儿相同
$cluvfy comp ocr -n all -verbose
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all specified nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+CRS" available on all the nodes
NOTE:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the
contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful.
相关文章推荐
- windows 环境如何恢复 (oracle 11g grid) ocr voting 损坏的集群
- 怎样一步一步删除(linux & UNIX)环境下 oracle 11g 集群节点
- windows 7环境下配置oracle 11g 客户端
- 利用11g自身工具deinstall卸载grid(rac集群环境下)
- windows 7环境下配置oracle 11g 客户端
- oracle linux 5.8安装oracle 11g rac环境之grid安装
- Windows 2012 安装 Oracle 11g 报错:[INS-13001]环境不满足最低要求。
- oracle 11g RMAN 异机恢复(linux to windows)
- 如何一步一步删除(linux & UNIX)环境下 oracle 11g 集群节点
- Oracle 11G在windows 7中的系统环境变量和启动控制
- windows 7环境下配置oracle 11g 客户端
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.7.Oracle 11G R2 RAC修改public网络IP
- windows 7环境下配置oracle 11g 客户端
- windows 7环境下配置oracle 11g 客户端
- ORACLE-11g-R2 XE WINDOWS环境配置
- 如何一步一步删除(Linux & UNIX)环境下 Oracle 11g 集群节点
- 环境:Windows 7 + Oracle 11g r2 + Navicat premium 9.15
- windows操作系统损坏恢复oracle 9i数据库方法
- windows 7环境下配置oracle 11g 客户端
- windows 7环境下配置oracle 11g 客户端