重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3240|回复: 4
打印 上一主题 下一主题

[参考文档] 10g rac ocrconfig 语法

[复制链接]
跳转到指定楼层
楼主
发表于 2015-12-24 23:12:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Syntax for ocrconfig:
Name:   ocrconfig - Configuration tool for Oracle Cluster Registry.

Synopsis:
ocrconfig [option]
option:
    -export  [-s online]    - Export cluster register contents to a file
    -import                   - Import cluster registry contents from a file
    -upgrade [ []]     - Upgrade cluster registry from previous version
    -downgrade [-version ]   - Downgrade cluster registry to the specified version
    -backuploc                - Configure periodic backup location
    -showbackup                          - Show backup information
    -restore                  - Restore from physical backup
    -replace ocr|ocrmirror [] - Add/replace/remove a OCR device/file
    -overwrite                              - Overwrite OCR configuration on disk
    -repair ocr|ocrmirror     - Repair local OCR configuration
    -help                               - Print out this help information
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2015-12-24 23:23:12 | 只看该作者
1.增加raw device example
./ocrconfig -replace ocrmirror /dev/raw/raw4
./ocrconfig -replace ocr /dev/raw/raw5

2. Removing the OCR:
-- 删除 remove an OCR device
ocrconfig -replace ocr  
-- remove an OCR mirror device
ocrconfig -replace ocrmirror
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2015-12-24 23:25:45 | 只看该作者
察看ocr情况

./ocrcheck

Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 104336
Used space (kbytes) : 4580
Available space (kbytes) : 99756
ID : 1892429764
Device/File Name : /dev/raw/raw2
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw5
Device/File integrity check succeeded

Cluster registry integrity check succeeded
回复 支持 反对

使用道具 举报

地板
 楼主| 发表于 2015-12-24 23:49:48 | 只看该作者

For PROT-16: Internal Error
When issuing ocrconfig -replace it checks first about the size of the new OCR before making the replacement.
If it is acceptable then it will replace to the new OCR.
The acceptable size is either 128Mb or 256Mb and so on.
If the original OCR size was less than 128Mb, please make the new OCR as 128Mb or 256Mb.
If the original OCR size was less than 256Mb and greater than 128Mb,
please make the new OCR as 256Mb.
回复 支持 反对

使用道具 举报

5#
发表于 2015-12-27 22:43:25 | 只看该作者
GI下$ORACLE_HOME/bin 下:

grid@rac1:/u01/app/11.2.0/grid/bin> ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3088
         Available space (kbytes) :     259032
         ID                       :  761107597
         Device/File Name         :      +OCR1
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check bypassed due to non-privileged user

grid@rac1:/u01/app/11.2.0/grid/bin>


没改过磁盘,留下脚印
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-17 17:40 , Processed in 0.093113 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表