中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

怎么更換ocr和votingdisk磁盤組

發布時間:2021-11-08 14:42:13 來源:億速云 閱讀:288 作者:iii 欄目:關系型數據庫

這篇文章主要講解了“怎么更換ocr和votingdisk磁盤組”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“怎么更換ocr和votingdisk磁盤組”吧!

#更換OCR

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2948

         Available space (kbytes) :     259172

         ID                       :  717216655

         Device/File Name         :       +OCR

                                    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 succeeded

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrconfig -add +OCR02

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2964

         Available space (kbytes) :     259156

         ID                       :  717216655

         Device/File Name         :       +OCR

                                    Device/File integrity check succeeded

         Device/File Name         :     +OCR02

                                    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

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrconfig -delete +OCR

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2964

         Available space (kbytes) :     259156

         ID                       :  717216655

         Device/File Name         :     +OCR02

                                    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 succeeded

#更換votingdisk

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   062be79c0d644f2ebf102c21b47b3f3b (/dev/sdb) [OCR]

Located 1 voting disk(s).

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl replace votedisk +OCR02

Successful addition of voting disk 082d31c3fd1e4f5ebf0310f8cef501d8.

Successful deletion of voting disk 062be79c0d644f2ebf102c21b47b3f3b.

Successfully replaced voting disk group with +OCR02.

CRS-4266: Voting file(s) successfully replaced

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl query css votedisk     

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   082d31c3fd1e4f5ebf0310f8cef501d8 (/dev/sde) [OCR02]

Located 1 voting disk(s).

#遷移asm實例的spfile文件

SQL> conn / as sysdba

Connected.

SQL> show parameter pfile;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string      +OCR/raccluster/asmparameterfi

                                                 le/registry.253.1019126787

SQL> create pfile='/home/grid/initASM.ora' from spfile;

File created.

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop instance -d racdb -n ray32

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop instance -d racdb -n ray31

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop asm -o abort -f

SQL> startup pfile='/home/grid/initASM.ora';

ASM instance started

Total System Global Area 1135747072 bytes

Fixed Size                  2260728 bytes

Variable Size            1108320520 bytes

ASM Cache                  25165824 bytes

ASM diskgroups mounted

SQL> show parameter spfile

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string

SQL> create spfile='+OCR02' from pfile='/home/grid/initASM.ora';

File created.

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop asm -o abort -f

[grid@ray31 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.4.0 Production on Mon Nov 18 15:57:40 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

SQL> conn / as sysasm

Connected to an idle instance.

SQL> startup

ASM instance started

Total System Global Area 1135747072 bytes

Fixed Size                  2260728 bytes

Variable Size            1108320520 bytes

ASM Cache                  25165824 bytes

ASM diskgroups mounted

SQL> show parameter spfile

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string      +OCR02/raccluster/asmparameter

                                                 file/registry.253.1024674953

SQL>

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl stop cluster -all   

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl start cluster -all   

#刪除磁盤組

#在其他節點執行

SQL> alter diskgroup ocr dismount;    

Diskgroup altered.

#其中一個節點執行刪除磁盤組

SQL> drop diskgroup OCR including contents;

Diskgroup dropped. 

感謝各位的閱讀,以上就是“怎么更換ocr和votingdisk磁盤組”的內容了,經過本文的學習后,相信大家對怎么更換ocr和votingdisk磁盤組這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

林口县| 神农架林区| 册亨县| 绩溪县| 泗水县| 台湾省| 来宾市| 肥乡县| 天水市| 荣昌县| 西盟| 广东省| 万全县| 安溪县| 太仆寺旗| 凤冈县| 陵川县| 乌拉特后旗| 荥阳市| 宜宾县| 温泉县| 武山县| 砚山县| 绥阳县| 宁德市| 仙桃市| 巴彦淖尔市| 龙泉市| 车致| 玉树县| 新乡市| 鄂伦春自治旗| 三明市| 武清区| 河源市| 全南县| 西宁市| 绩溪县| 高台县| 军事| 柳河县|