oracle之 RAC 11G ASM下控制檔案多路複用
如果資料庫僅有一組control file檔案,需要新增一組或者多組,保證一組檔案損壞或者丟失導致資料庫當機。
-- 環境說明
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
SQL> show parameter cluster;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database boolean TRUE
cluster_database_instances integer 2
cluster_interconnects string
0、記錄現有控制檔案路徑
SQL>select name from v$controlfile;SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
+DATA/devdb/controlfile/current.260.936769367
+FLASH/devdb/controlfile/current.256.936769367
1、關閉兩個節點
$ srvctl stop database -d devdb
2、在其中一個節點上啟動rman
[oracle@node1 ~]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Tue Dec 27 16:59:10 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database (not started)
3、將資料庫啟動到nomount狀態下
RMAN> startup nomount;
Oracle instance started
Total System Global Area 4275781632 bytes
Fixed Size 2260088 bytes
Variable Size 989856648 bytes
Database Buffers 3271557120 bytes
Redo Buffers 12107776 bytes
4、採用restore複製一份controlfile到新路徑
RMAN> restore controlfile to '+FLASH/devdb/controlfile/current.256.936769368' from '+DATA/devdb/controlfile/current.260.936769367';
Starting restore at 27-DEC-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=50 instance=orcl1 device type=DISK
channel ORA_DISK_1: copied control file copy
Finished restore at 27-DEC-16
說明:’+FLASH/devdb/controlfile/current.256.936769368’是複製的新的控制檔案,
如果asm自動管理的,可能名字不會按照你的命名,需要確定下新的檔名字。
ASMCMD> pwd
+FLASH/devdb/controlfile/
ASMCMD> ls
current.303.956019293 > 跟你指定的不一樣
5. sqlplus 中 修改控制檔案路徑, 修改完成後,關閉資料庫
SQL> alter system set control_files='+DATA/devdb/controlfile/current.260.936769367','+FLASH/devdb/controlfile/current.256.936769367','+FLASH/devdb/controlfile/current.303.956019293' scope=spfile sid='*';
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
6、啟動資料庫
[grid@node1 oracle]$ srvctl start database -d devdb
7、驗證
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
+DATA/devdb/controlfile/current.260.936769367
+FLASH/devdb/controlfile/current.256.936769367
+FLASH/devdb/controlfile/current.303.956019293
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31383567/viewspace-2145617/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 通過ORACLE VM virtualbox環境安裝oracle 11G RAC(ASM)OracleASM
- Oracle 11g 重新建立控制檔案Oracle
- 12c複製 RAC ASM中的密碼檔案到檔案系統ASM密碼
- Oracle 11g RAC安裝--基於openfiler儲存+多路徑+udev方式Oracledev
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- ORACLE RAC ASM資料檔案遷移OMF檔案報錯ORA-01276解決OracleASM
- Oracle:ASM & 密碼檔案OracleASM密碼
- 重建共享(db或asm)密碼檔案 in Oracle 19c RAC-20220209ASM密碼Oracle
- 記一次Oracle RAC for aix 儲存雙控鎖盤導致ASM控制檔案損壞恢復OracleAIASM
- ORACLE11GR2 RAC檔案系統變更成ASM EXTEND RAC及高可用測試OracleASM
- 多路複用
- Oracle 控制檔案Oracle
- Oracle RAC引數檔案管理Oracle
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle 11g RAC之HAIP相關問題總結OracleAI
- Overview of Oracle Flex ASM In Oracle 19c RAC-20220111ViewOracleFlexASM
- Oracle RAC修改引數檔案位置Oracle
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g RAC手動新增serviceOracle
- ORACLE RAC 11.2.0.4 ASM加盤導致叢集重啟之ASM sga設定過小OracleASM
- 用python生成oracle goldengate複製配置檔案PythonOracleGo
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- oracle 11g rac新增節點前之清除節點資訊Oracle
- Oracle RAC NFS掛載檔案系統OracleNFS
- Oracle 11g RAC重新新增節點Oracle
- Tuning CPU 100% in Oracle 11g rac-20220215Oracle
- LinuxI/O多路複用Linux
- 理解IO多路複用
- RAC和ASM環境下打patchASM
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- goldengate + asm + racGoASM
- Oracle Linux 7使用syslog來管理Oracle ASM的審計檔案OracleLinuxASM
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- Oracle 11g RAC到單例項OGG同步Oracle單例
- oracle 11g rac配置em dbconsole ORA-12514Oracle
- 【ASK_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(一)ASMFD簡介OracleASMFilter
- ORACLE 控制檔案(Control Files)概述Oracle
- Redis 和 IO 多路複用Redis