轉:Oracle RAC 新增和刪除OCR(10g)
Oracle RAC 新增和刪除OCR
Oracle RAC 備份和恢復OCR 參考:http://blog.csdn.net/laoshangxyc/article/details/8688705
Oracle Clusterware最多隻支援兩個OCR,一個普通OCR,一個映象OCR.如果採用的External Redundancy方式儲存OCR,那麼還可以新增一個映象OCR,
如果才用的Normal Redundancy的方式儲存OCR那麼則不能再新增。
新增普通OCR方法如下:
ocrconfig -replace ocr destination_file ocrconfig -replace ocr disk--destination_file或disk為想要新增的OCR儲存位置
新增映象OCR方法如下:
ocrconfig -replace ocrmirror destination_file ocrconfig -replace ocrmirror disk--destination_file或disk為想要新增的OCR儲存位置
--以上要用root使用者執行
示例新增映象OCR:
1.檢視系統當前OCR情況
- [oracle@node1 ~]$ ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 104344
- Used space (kbytes) : 3816
- Available space (kbytes) : 100528
- ID : 497615595
- Device/File Name : /dev/raw/raw1
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
看到當前系統只有一個OCR儲存(為普通OCR),在/dev/raw/raw1.
如果此時再新增一個普通OCR,則會報如下錯誤
- [root@node1 bin]# ./ocrconfig -replace ocr /dev/raw/raw7
- PROT-16: Internal Error
2.新增一個映象OCR
- [root@node1 bin]# ./ocrconfig -replace ocrmirror /dev/raw/raw7
3.檢視新增後的OCR情況
- [oracle@node1 crs_1]$ ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 104344
- Used space (kbytes) : 3816
- Available space (kbytes) : 100528
- ID : 497615595
- Device/File Name : /dev/raw/raw1
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw7
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
可以看到新增成功
刪除普通OCR方法如下:
ocrconfig -replace ocr
刪除映象OCR方法如下:
ocrconfig -replace ocrmirror
示例刪除普通OCR:
- [root@node1 bin]# ./ocrconfig -replace ocr
- [oracle@node1 crs_1]$ ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 153496
- Used space (kbytes) : 3816
- Available space (kbytes) : 149680
- ID : 497615595
- Device/File Name : /dev/raw/raw7
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
注:刪除普通OCR後,映象ocr即為普通ocr,所以此時依然無法新增普通ocr,所以ocrconfig -replace ocr destination_file這個命令可能在第一建立ocr的時候才會用到。
示例刪除映象OCR
- --檢視raw7為普通OCR,raw8為映象ocr
- [oracle@node1 crs_1]$ ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 153496
- Used space (kbytes) : 3816
- Available space (kbytes) : 149680
- ID : 497615595
- Device/File Name : /dev/raw/raw7
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw8
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- --刪除映象ocr
- [root@node1 bin]# ./ocrconfig -replace ocrmirror
- --可以看到raw8已經被刪除
- [oracle@node1 crs_1]$ ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 153496
- Used space (kbytes) : 3816
- Available space (kbytes) : 149680
- ID : 497615595
- Device/File Name : /dev/raw/raw7
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28698327/viewspace-1062253/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10g RAC環境OCR的新增、刪除、備份Oracle
- oracle 10g rac,刪除故障節點並新增新節點Oracle 10g
- oracle 10g rac 新增節點與刪除節點步驟Oracle 10g
- oracle 10g 如何對ocr盤增加映象和刪除映象Oracle 10g
- 轉 Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- Oracle 10g RAC刪除、增加節點Oracle 10g
- 【轉載】Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- oracle11g_RAC新增刪除節點Oracle
- Oracle RAC 10g叢集節點刪除[zt]Oracle
- Oracle 10g RAC下Voting disk和OCR的管理Oracle 10g
- Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- 【RAC】Oracle10g rac新增刪除節點命令參考Oracle
- oracle 11gR2 如何從ocr中刪除與新增資源Oracle
- Oracle 10G RAC的ocr備份恢復Oracle 10g
- Oracle 10g RAC OCR 和 VotingDisk 的備份與恢復Oracle 10g
- [zt]Oracle rac 11g線上新增ocr,votediskOracle
- oracle 10g 中如何新增與刪除votedisk映象盤Oracle 10g
- Oracle Rac 刪除節點Oracle
- 11g RAC中手工新增刪除資料庫及例項等資訊到OCR資料庫
- OracleRACStudy之–10gR2RAC環境中線上新增、刪除Votedisk和線上替換OCR的探討Oracle
- 新增/刪除約束(Oracle)Oracle
- oracle rac 12徹底刪除,徹底刪除該死的racOracle
- Oracle10g RAC環境VoteDisk的新增、刪除、備份Oracle
- ORACLE RAC重建OCROracle
- Oracle RAC 重建 OCR 和 Voting diskOracle
- jQuery 新增和刪除classjQuery
- Solr 刪除和新增 indexSolrIndex
- 【Oracle】 RAC 環境刪除oracle 之二Oracle
- 【Oracle】 RAC 環境刪除oracle 之一Oracle
- 【RAC】刪除RAC資料庫節點(六)——刪除Oracle叢集服務資料庫Oracle
- 【RAC】刪除RAC資料庫節點(七)——刪除Oracle叢集軟體資料庫Oracle
- Oracle 12c rac ocr和votedisk管理Oracle
- jquery table 的新增和刪除jQuery
- ORACLE RAC環境下刪除節點Oracle
- 11G R2 RAC新增刪除節點
- windows 新增和刪除靜態路由Windows路由
- mysql-刪除和新增主鍵MySql
- jQuery為元素新增和刪除classjQuery