以下的文章驻澳介绍的是Oracle OCR镜像的增加以及其删除的实际操作步骤,我们大家都知道Oracle OCR记录节点成员配置的相关信息,有以下几种,ASM、instance、listener、VIP等CRS资源的配置信息。
检查Oracle OCR的状态
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file /dev/raw/raw4 being deleted
- ocrconfig_loc=/dev/raw/raw2
- local_only=false
增加一个镜像
- [root@node3 ~]# ocrconfig -replace ocrmirror /dev/raw/raw4
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw4
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file getting replaced by device /dev/raw/raw4
- ocrconfig_loc=/dev/raw/raw2
- ocrmirrorconfig_loc=/dev/raw/raw4
- local_only=false
- [root@node3 ~]# ocrconfig -replace ocrmirror /dev/raw/raw6
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw6
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file /dev/raw/raw4 getting replaced by device /dev/raw/raw6
- ocrconfig_loc=/dev/raw/raw2
- ocrmirrorconfig_loc=/dev/raw/raw6
- local_only=false
Oracle OCR只能有一份镜像,新增加的镜像文件会替换掉原来的镜像。
删除Oracle OCR的镜像文件
[root@node3 ~]# ocrconfig -replace ocrmirror ---不带文件路径名
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file /dev/raw/raw6 being deleted
- ocrconfig_loc=/dev/raw/raw2
- local_only=false
注意如果我们删除了Oracle OCR的主文件,相应的镜像文件自动的变为主文件。
例如:
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw4
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- [root@node3 ~]# ocrconfig -replace ocr
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw4
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
上述的相关内容就是对Oracle OCR镜像的增加及删除的描述,希望会给你带来一些帮助在此方面。
【编辑推荐】