ORACLE RAC重建ASM磁碟組
1.檢視要刪除磁碟組的名字
2.刪除ASM磁碟組
3.關閉節點的ASM例項
[oracle@rac1 ~]$ crs_stop -f ora.rac1.ASM1.asm --節點rac2的磁碟組沒有掛載上
Attempting to stop `ora.rac1.ASM1.asm` on member `rac1`
Stop of `ora.rac1.ASM1.asm` on member `rac1` succeeded.
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 OFFLINE OFFLINE
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
2.刪除ASM磁碟組
3.關閉節點的ASM例項
[oracle@rac1 ~]$ crs_stop -f ora.rac1.ASM1.asm --節點rac2的磁碟組沒有掛載上
Attempting to stop `ora.rac1.ASM1.asm` on member `rac1`
Stop of `ora.rac1.ASM1.asm` on member `rac1` succeeded.
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 OFFLINE OFFLINE
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
4.刪除ASM服務
[oracle@rac1 ~]$ srvctl remove asm -n rac1
5.刪除節點配置檔案
節點rac1操作:
[oracle@rac1 ~]$ cd /u01/app/oracle/db_1/dbs/
[oracle@rac1 dbs]$ rm *ASM*
[oracle@rac1 dbs]$ ls
arch hc_HHPEN11.dat init.ora
c-2744404128-20140901-00 hc_orcl1.dat snapcf_HHPEN11.f
c-2744404128-20140901-01 initdw.ora
[oracle@rac1 admin]$ pwd
/u01/app/oracle/admin
[oracle@rac1 ~]$ srvctl remove asm -n rac1
5.刪除節點配置檔案
節點rac1操作:
[oracle@rac1 ~]$ cd /u01/app/oracle/db_1/dbs/
[oracle@rac1 dbs]$ rm *ASM*
[oracle@rac1 dbs]$ ls
arch hc_HHPEN11.dat init.ora
c-2744404128-20140901-00 hc_orcl1.dat snapcf_HHPEN11.f
c-2744404128-20140901-01 initdw.ora
[oracle@rac1 admin]$ pwd
/u01/app/oracle/admin
[oracle@rac1 admin]$ ls
+ASM
[oracle@rac1 admin]$ rm -rf *
+ASM
[oracle@rac1 admin]$ rm -rf *
節點rac2操作:
[oracle@rac2 ~]$ cd /u01/app/oracle/db_1/dbs/
[oracle@rac2 dbs]$ rm -rf *ASM*
[oracle@rac2 dbs]$ ls
arch hc_HHPEN11.dat initHHPEN11.ora snapcf_HHPEN11.f
c-2744404128-20140901-00 hc_orcl1.dat init.ora
c-2744404128-20140901-01 initdw.ora orapwHHPEN11
[oracle@rac2 ~]$ cd /u01/app/oracle/db_1/dbs/
[oracle@rac2 dbs]$ rm -rf *ASM*
[oracle@rac2 dbs]$ ls
arch hc_HHPEN11.dat initHHPEN11.ora snapcf_HHPEN11.f
c-2744404128-20140901-00 hc_orcl1.dat init.ora
c-2744404128-20140901-01 initdw.ora orapwHHPEN11
6.刪除/etc/oratab例項資訊
節點rac1、rac2都要操作;
7.使用dbca重新建立asm例項
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ crs_stat -t -v --檢視ASM例項的建立資訊,發現還是隻有節點1的例項資訊
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
檢視資料庫例項狀態,如下:
節點rac1、rac2都要操作;
7.使用dbca重新建立asm例項
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ crs_stat -t -v --檢視ASM例項的建立資訊,發現還是隻有節點1的例項資訊
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
建立資料庫的時候出現如下錯誤:
8.檢視CRS資源資訊,如下:檢視資料庫例項狀態,如下:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29634949/viewspace-1280908/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ASM磁碟組修改重建操作ASM
- Oracle10g RAC ASM磁碟組[zt]OracleASM
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- asm磁碟組建立錯誤,用中轉儲存,重建磁碟組ASM
- 在Oracle10g RAC下新增ASM磁碟組OracleASM
- ORACLE使用 DBCA 重建ASM磁碟組的相關問題總結OracleASM
- 重建ASM磁碟組的步驟 [ID 268481.1]ASM
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- oracle rac 無法建立asm磁碟OracleASM
- 11G ORACLE RAC DBCA 無法識別asm磁碟組OracleASM
- RAC資料庫新增ASM磁碟組(1)資料庫ASM
- Steps to Re-Create ASM Diskgroups(重建asm 磁碟組步驟)ASM
- Oracle ASM新增磁碟組POWER OPTIONOracleASM
- Oracle ASM磁碟組常用操作命令OracleASM
- Oracle ASM異常dismount磁碟組OracleASM
- UDEV方式配置Oracle RAC ASM共享磁碟devOracleASM
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 11G RAC 為 ASM 磁碟組增加一個磁碟。(AIX)ASMAI
- asm 磁碟組 增刪磁碟組ASM
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- ORACLE ASM磁碟組空間溢位OracleASM
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- RAC環境ASM磁碟組間修改spfile的位置ASM
- oracle 11.2.0.1 rac 修改asm磁碟組的冗餘模式(redundancy mode)為normalOracleASM模式ORM
- ASM磁碟組限制ASM
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- 對oracle asm 磁碟組進行檢查OracleASM
- 在Oracle10g 新增ASM磁碟組OracleASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- 遷移ASM磁碟組ASM
- 【RAC】 RAC For W2K8R2 安裝--建立ASM磁碟組(六)ASM
- ORACLE RAC重建OCROracle
- oracle asm 磁碟組mount不成功總結OracleASM
- oracle 11g asm 磁碟組相容屬性OracleASM
- 如何在linux 10gR2 rac 新增ASM磁碟組LinuxASM
- 11gR2 RAC dbca無法發現ASM磁碟組ASM
- Oracle RAC日常運維-DATA磁碟組故障Oracle運維
- Oracle asm磁碟中新加磁碟OracleASM