学习oracle技术,每天学一点,每天进步一点
Migrating to ASM Using RMAN(一)
上一篇 /
下一篇 2008-07-07 11:57:55
/ 个人分类:数据库高可用性
Migrating to ASM Using RMAN (理论)
The following method shows how a primary
database can be migrated to ASM from a disk based backup:
ITPUB个人空间3l%{mDe- Disable change tracking (only available in Enterprise Edition) if it is currently being used.
E6hFJ&m#Gg!_*oeP U0SQL> ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
- Shutdown the database.ITPUB个人空间EWNtin"~%TWm&}7m
SQL> SHUTDOWN IMMEDIATE
- Modify the parameter file of the target database as follows:
(e5Qg1g9I!B/TfN_0- Set the
DB_CREATE_FILE_DESTandDB_CREATE_ONLINE_LOG_DEST_nparameters to the relevant ASM disk groups. - Remove the
CONTROL_FILESparameter from the spfile so the control files will be moved to theDB_CREATE_*destination and the spfile gets updated automatically. If you are using a pfile theCONTROL_FILESparameter must be set to the appropriate ASM files or aliases.
ITPUB个人空间!k9Z7T_e8BiUySO
- Start the database in nomount mode.
`s:x(}N#dZZ)Q0RMAN> STARTUP NOMOUNT
- Restore the controlfile into the new location from the old location.ITPUB个人空间nBg|BF+xw(S;N#q{
RMAN> RESTORE CONTROLFILE FROM 'old_control_file_name';
- Mount the database.
)Q[`.u6o"V,Ez0RMAN> ALTER DATABASE MOUNT;
- Copy the database into the ASM disk group.
IS!o7vd7Ss_3[0RMAN> BACKUP AS COPY DATABASE FORMAT '+disk_group';
- Switch all datafile to the new ASM location.ITPUB个人空间:BK@&C9QWK
RMAN> SWITCH DATABASE TO COPY;
- Open the database.
l0y d8q0x:D0RMAN> ALTER DATABASE OPEN;
- Create new redo logs in ASM and delete the old ones.ITPUB个人空间e4~ckN!i'J9@/K7F2H
I:j,u"C
o^3u$QYW0 - Enable change tracking if it was being used.
Z,\u"M*KZ.y0SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
导入论坛
引用链接
收藏
分享给好友
推荐到圈子
管理
举报
TAG: