Migrating to ASM Using RMAN(一)
Migrating to ASM Using RMAN (理論)
The following method shows how a primary database can be migrated to ASM from a disk based backup:- Disable change tracking (only available in Enterprise Edition) if it is currently being used.
SQL> ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
- Shutdown the database.
SQL> SHUTDOWN IMMEDIATE
- Modify the parameter file of the target database as follows:
- Set the DB_CREATE_FILE_DEST and DB_CREATE_ONLINE_LOG_DEST_n parameters to the relevant ASM disk groups.
- Remove the CONTROL_FILES parameter from the spfile so the control files will be moved to the DB_CREATE_* destination and the spfile gets updated automatically. If you are using a pfile the CONTROL_FILES parameter must be set to the appropriate ASM files or aliases.
- Start the database in nomount mode.
RMAN> STARTUP NOMOUNT
- Restore the controlfile into the new location from the old location.
RMAN> RESTORE CONTROLFILE FROM 'old_control_file_name';
- Mount the database.
RMAN> ALTER DATABASE MOUNT;
- Copy the database into the ASM disk group.
RMAN> BACKUP AS COPY DATABASE FORMAT '+disk_group';
- Switch all datafile to the new ASM location.
RMAN> SWITCH DATABASE TO COPY;
- Open the database.
RMAN> ALTER DATABASE OPEN;
- Create new redo logs in ASM and delete the old ones.
- Enable change tracking if it was being used.
SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-374303/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【RMAN】RMAN備份至ASMASM
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- 備份恢復Lesson 04.Using the RMAN Recovery Catalog
- Oracle使用RMAN將普通資料檔案轉成ASMOracleASM
- Oracle 12c RMAN Performing Cross-Platform Transport of a PDB Using InconsistentOracleROSPlatform
- CRS-2101:The OLR was formatted using version 3 ORACLE單機ASM報錯ORMOracleASM
- Using V$BACKUP_ASYNC_IO / V$BACKUP_SYNC_IO to Monitor RMAN PerformanceORM
- Redis Cluster [WARNING] Node 127.0.0.1:7003 has slots in migrating state (15495).Redis127.0.0.1
- RMAN之環境配置(一)
- MySQL 索引優化 Using where, Using filesortMySql索引優化
- Oracle 11G RAC複製備庫RMAN-03002 RMAN-05501 RMAN-03015 RMAN-03009 RMAN-10038Oracle
- 【RMAN】RMAN的備份保留策略
- MySQL explain結果Extra中"Using Index"與"Using where; Using index"區別MySqlAIIndex
- RMAN之客戶端互動(一)客戶端
- ORACLE rman與RMAN-00054&ORA-09945Oracle
- RMAN(轉)
- 關於ASM的一些理論ASM
- 一次ASM新增新的磁碟組ASM
- 【RMAN】Oracle rman 常用命令參考Oracle
- RMAN恢復之RMAN-06555處理
- Using hints for PostgresqlSQL
- String interpolation using $
- using的用法
- Using mysqldump for backupsMySql
- MySQL 之 USINGMySql
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 【ASM】ASM磁碟頭被重寫,如何修復ASM
- RMAN-06207和RMAN-06208的處理
- goldengate + asm + racGoASM
- gnu inline asminlineASM
- 【RMAN】在備庫執行rman備份時報錯RMAN-06820 ORA-17629
- 【ASM】ASM啟動無法找到spfile問題原因ASM
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- pdf crop using pythonPython
- MGTSC 212 using ExcelExcel
- Video Division with using OpenCvIDEOpenCV
- Dictionary application using SwingAPP
- What are the benefits of using an proxy?
- ASM叢集檔案系統ACFS(ASM Cluster File System)ASM