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

标题: 10g rac ocrconfig 语法 [打印本页]

作者: 郑全    时间: 2015-12-24 23:12
标题: 10g rac ocrconfig 语法
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

作者: 郑全    时间: 2015-12-24 23:23
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
察看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

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.
作者: 王硕    时间: 2015-12-27 22:43
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>


没改过磁盘,留下脚印




欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2