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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Migrating to ASM Using RMAN(二)ASM
- FROM ASM Migrating to FILE SYSTEM Using RMAN(三)ASM
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- How to copy a datafile from ASM to a file system not using RMANASM
- Create Physical stdby Using RMAN Duplicate In ASM File... For ASM Prim-837102.1ASM
- Step By Step Guide On Creating Physical Standby Using RMAN Duplicate In ASM Filesystem For ASM PrimaGUIIDEASM
- Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMANGUIIDEORMASM
- 【RMAN】RMAN備份至ASMASM
- rman copy asm datafile(rename asm datafile)ASM
- Migrating Oracle10g Database to Automatic Storage management (ASM)OracleDatabaseASM
- Using FTP Transferring Non-ASM Datafiles to ASM diskgroupFTPASM
- Using ASMLIB Management ASM DiskASM
- ASM using ASMLib and Raw DevicesASMdev
- Using SQL Script Get Information about ASMSQLORMASM
- 利用RMAN將非ASM檔案移動到ASM裡 - [ASM]ASM
- RMAN : Consistent Backup, Restore and Recovery using RMAN (Doc ID 162855.1)REST
- 【資料遷移】RMAN遷移資料庫到ASM(一)建立ASM磁碟組資料庫ASM
- Using Automatic Storage Management -ASM 詳解ASM
- RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]DatabaseASM
- Step By Step Instructions on Migrating Oracle10g Database to Automatic Storage management (ASM)StructOracleDatabaseASM
- Oracle 12c: Recover tables using RMANOracle
- Using RMAN Incremental Backups to Refresh a Standby DatabaseREMDatabase
- Duplicating Database using RMAN duplicate commandDatabase
- using dbms_file_transfer transportable tablespace between asmASM
- Unable To Create Database Using ASM ORA-15055DatabaseASM
- How To Restore 12cR1DB to New Host File System using RMAN(一)REST
- Using RMAN REPORT NEED BACKUP with Different Retention Policies
- 用RMAN遷移檔案到ASM或從ASM遷出ASM
- 使用RMAN將RAC+ASM複製到單例項+ASM上ASM單例
- Using RMAN Incremental Backups to Roll Forward a Physical Standby DatabaseREMForwardDatabase
- rman 全庫恢復asm資料庫ASM資料庫
- Migrating to a Server Parameter FileServer
- Row Chaining and MigratingAI
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- Converting Oracle Database from Windows to Linux using RMANOracleDatabaseWindowsLinux
- Creating a Physical Standby using RMAN DUPLICATE FROM ACTIVE DATABASEDatabase
- ASM儲存使用RMAN複製控制檔案ASM
- 使用RMAN執行oracle ASM資料遷移OracleASM