ORACLE 資料庫 ASM磁碟組上新增控制檔案
ORACLE使用ASM儲存,建庫時預設只有一個控制檔案,如果想多加幾個控制檔案,需要透過手工來新增,以下是我測試文件,貼出來分享下。[@more@]1.檢視當前資料庫的控制檔案
SQL> select name from v$controlfile;
NAME
------------------------------------------------
+DATA01/orcl/controlfile/current.274.743672963
2.修改spfile中的控制檔案引數
SQL> alter system set control_files='+DATA01/orcl/controlfile/current.274.743672963','+DATA01','+DATA01' scope=spfile sid='*';
System altered.
3.將資料庫例項啟動到nomount狀態
SQL> shutdown immediate
[oracle@node1 ~]$ target /
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 20 11:27:44 2011
Copyright (c) 1982, , Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount
Oracle instance started
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 88082676 bytes
Database Buffers 75497472 bytes
Redo Buffers 2973696 bytes
RMAN> restore controlfile from '+DATA01/orcl/controlfile/current.274.743672963';
Starting restore at 20-JUL-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=147 instance=orcl1 devtype=DISK
channel ORA_DISK_1: copied control file copy
output filename=+DATA01/orcl/controlfile/current.274.743672963
output filename=+DATA01/orcl/controlfile/backup.285.756991697
output filename=+DATA01/orcl/controlfile/backup.286.756991699
Finished restore at 20-JUL-11
4.開啟資料庫
RMAN> 'alter database mount';
sql statement: alter database mount
released channel: ORA_DISK_1
RMAN> sql 'alter database open';
sql statement: alter database open
5.驗證控制檔案是否新增成功
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
+DATA01/orcl/controlfile/current.274.743672963
+DATA01/orcl/controlfile/backup.285.756991697
+DATA01/orcl/controlfile/backup.286.756991699;
6.修改spfile中的新新增的控制檔案引數
SQL> alter system set
control_files='+DATA01/orcl/controlfile/current.274.743672963','+DATA01/orcl/controlfile/backup.285.756991697','+DATA01/orcl/controlfile/backup.286.756991699'
scope=spfile sid='*';
System altered.
7.使用新的spfile啟動資料庫
SQL> shutdown immediate
SQL> startup
參考文件:metalink 文件:How to duplicate a controlfile when ASM is involved [ID 345180.1]
SQL> select name from v$controlfile;
NAME
------------------------------------------------
+DATA01/orcl/controlfile/current.274.743672963
2.修改spfile中的控制檔案引數
SQL> alter system set control_files='+DATA01/orcl/controlfile/current.274.743672963','+DATA01','+DATA01' scope=spfile sid='*';
System altered.
3.將資料庫例項啟動到nomount狀態
SQL> shutdown immediate
[oracle@node1 ~]$ target /
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 20 11:27:44 2011
Copyright (c) 1982, , Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount
Oracle instance started
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 88082676 bytes
Database Buffers 75497472 bytes
Redo Buffers 2973696 bytes
RMAN> restore controlfile from '+DATA01/orcl/controlfile/current.274.743672963';
Starting restore at 20-JUL-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=147 instance=orcl1 devtype=DISK
channel ORA_DISK_1: copied control file copy
output filename=+DATA01/orcl/controlfile/current.274.743672963
output filename=+DATA01/orcl/controlfile/backup.285.756991697
output filename=+DATA01/orcl/controlfile/backup.286.756991699
Finished restore at 20-JUL-11
4.開啟資料庫
RMAN> 'alter database mount';
sql statement: alter database mount
released channel: ORA_DISK_1
RMAN> sql 'alter database open';
sql statement: alter database open
5.驗證控制檔案是否新增成功
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
+DATA01/orcl/controlfile/current.274.743672963
+DATA01/orcl/controlfile/backup.285.756991697
+DATA01/orcl/controlfile/backup.286.756991699;
6.修改spfile中的新新增的控制檔案引數
SQL> alter system set
control_files='+DATA01/orcl/controlfile/current.274.743672963','+DATA01/orcl/controlfile/backup.285.756991697','+DATA01/orcl/controlfile/backup.286.756991699'
scope=spfile sid='*';
System altered.
7.使用新的spfile啟動資料庫
SQL> shutdown immediate
SQL> startup
參考文件:metalink 文件:How to duplicate a controlfile when ASM is involved [ID 345180.1]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14663377/viewspace-1058292/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- 【資料庫資料恢復】Oracle資料庫ASM磁碟組掉線如何恢復資料?資料庫資料恢復OracleASM
- 【資料庫資料恢復】ASM磁碟組掉線的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- ORACLE ASM磁碟組空間溢位OracleASM
- 一次ASM新增新的磁碟組ASM
- Oracle DG備庫手動管理新增資料檔案Oracle
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- 資料檔案遷移至其他磁碟組
- Oracle使用RMAN將普通資料檔案轉成ASMOracleASM
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- asm磁碟組依賴導致資料庫自啟動報錯ASM資料庫
- ASM磁碟組限制ASM
- Oracle:ASM & 密碼檔案OracleASM密碼
- 遷移ASM磁碟組ASM
- oracle資料庫的配置檔案Oracle資料庫
- oracle 線上rename資料檔案Oracle
- MySQL8.0.18資料庫新增資料檔案MySql資料庫
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- 【ASM】ASM資料檔案和OS檔案(FILESYSTEM)轉移方法總結ASM
- 2.10.3 使用 Oracle Automatic Storage Management (Oracle ASM) 克隆資料庫OracleASM資料庫
- ORACLE RAC ASM資料檔案遷移OMF檔案報錯ORA-01276解決OracleASM
- oracle uncatalog資料庫備份檔案Oracle資料庫
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- Oracle 控制檔案Oracle
- oracle dg庫資料檔案空間不足Oracle
- ASM磁碟組更換磁碟的操作方法ASM
- DG備庫手動管理 新增資料檔案
- ASM磁碟簡單維護,新增,刪除ASM
- 分析Oracle資料庫日誌檔案(三)EPOracle資料庫
- 分析Oracle資料庫日誌檔案(二)DOOracle資料庫
- 分析Oracle資料庫日誌檔案(一)HBOracle資料庫
- 【ARCH】Oracle 判斷asm磁碟組大小,超過閾值清理指令碼OracleASM指令碼
- ASM 磁碟組的建立及擴容ASM
- 使用udev擴充套件ASM磁碟組dev套件ASM
- ASM磁碟組擴容操作文件ASM
- Oracle案例11——Oracle表空間資料庫檔案收縮Oracle資料庫
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM