使用RMAN迁移数据文件操作步骤(RAC-ASM环境)
使用rman迁移数据文件操作步骤:
1.rman窗口执行copy
copy datafile 1 to '+TESTDG/rac/datafile/system.dbf';
copy datafile 2 to '+TESTDG/rac/datafile/sysaux.dbf';
copy datafile 3 to '+TESTDG/rac/datafile/undotbs1.dbf';
copy datafile 4 to '+TESTDG/rac/datafile/users.dbf';
copy datafile 5 to '+TESTDG/rac/datafile/undotbs2.dbf';
2.关闭所有节点实例
3.启动任一节点到mount状态
4.执行rename操作
ALTER DATABASE RENAME FILE '+DATA/rac/datafile/system.416.833384105' TO '+TESTDG/rac/datafile/system.dbf';
ALTER DATABASE RENAME FILE '+DATA/rac/datafile/sysaux.417.833384107' TO '+TESTDG/rac/datafile/sysaux.dbf';
ALTER DATABASE RENAME FILE '+DATA/rac/datafile/undotbs1.418.833384107' TO '+TESTDG/rac/datafile/undotbs1.dbf';
ALTER DATABASE RENAME FILE '+DATA/rac/datafile/users.419.833384109' TO '+TESTDG/rac/datafile/users.dbf';
ALTER DATABASE RENAME FILE '+DATA/rac/datafile/undotbs2.424.833384491' TO '+TESTDG/rac/datafile/undotbs2.dbf';
5.执行恢复操作
SQL>recover database;