溫馨提示×

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

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

11g rac 重建ocr和votedisk

發(fā)布時(shí)間:2020-08-10 17:37:08 來(lái)源:ITPUB博客 閱讀:207 作者:波仔strong 欄目:關(guān)系型數(shù)據(jù)庫(kù)
11g rac 重建ocr和votedisk

1.所有節(jié)點(diǎn)停止集群
crsctl stop crs
如果停止不了可以使用
crsctl stop crs -f

2.每個(gè)節(jié)點(diǎn)執(zhí)行/crs/install/rootcrs.pl,來(lái)撤銷(xiāo)集群配置
[root@rac1 oracle]# /u01/app/grid/11.2.0/crs/install/rootcrs.pl -deconfig -verbose -force
[root@rac2 oracle]# /u01/app/grid/11.2.0/crs/install/rootcrs.pl -deconfig -verbose -force

3.每個(gè)節(jié)點(diǎn)的root用戶執(zhí)行g(shù)rid安裝目錄下的root.sh腳本(一次執(zhí)行)
[root@rac1 oracle]# /u01/app/grid/11.2.0/root.sh
[root@rac2 ~]# /u01/app/grid/11.2.0/root.sh

4.查看資源的狀態(tài)
[root@rac2 ~]# crs_stat.sh
Name Target State Host
------------------------------ ---------- --------- -------
oggvip ONLINE ONLINE rac1
ora.CRS.dg ONLINE ONLINE rac1
ora.DATA.dg ONLINE ONLINE rac1
ora.FRA.dg ONLINE ONLINE rac1
ora.LISTENER.lsnr ONLINE ONLINE rac1
ora.LISTENER_SCAN1.lsnr ONLINE ONLINE rac1
ora.OGG.dg ONLINE ONLINE rac1
ora.asm ONLINE ONLINE rac1
ora.cvu ONLINE ONLINE rac1
ora.gsd OFFLINE OFFLINE
ora.net1.network ONLINE ONLINE rac1
ora.oc4j ONLINE ONLINE rac1
ora.ons ONLINE ONLINE rac1
ora.rac.db ONLINE ONLINE rac1
ora.rac1.ASM1.asm ONLINE ONLINE rac1
ora.rac1.LISTENER_RAC1.lsnr ONLINE ONLINE rac1
ora.rac1.gsd OFFLINE OFFLINE
ora.rac1.ons ONLINE ONLINE rac1
ora.rac1.vip ONLINE ONLINE rac1
ora.rac2.ASM2.asm ONLINE ONLINE rac2
ora.rac2.LISTENER_RAC2.lsnr ONLINE ONLINE rac2
ora.rac2.gsd OFFLINE OFFLINE
ora.rac2.ons ONLINE ONLINE rac2
ora.rac2.vip ONLINE ONLINE rac2
ora.registry.acfs ONLINE ONLINE rac1
ora.scan1.vip ONLINE ONLINE rac1

這里如果磁盤(pán)沒(méi)有掛載
需要手動(dòng)掛載
1.以sysasm身份登陸asm實(shí)例,查看磁盤(pán)組
SYS@+ASM1> select name,state from v$asm_diskgroup;

2.如果沒(méi)有掛載
alter diskgroup ***** mout;
驗(yàn)證OCR
[root@rac1 oracle]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3396
Available space (kbytes) : 258724
ID : 2129345179
Device/File Name : +CRS
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

驗(yàn)證votedisk
[root@rac1 oracle]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1924260bffe94f8cbfbd33550290ee38 (/dev/asmdiskOCR) [CRS]

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI