您好,登录后才能下订单哦!
这篇文章主要介绍Oracle如何使用RMAN将普通数据文件转成ASM,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
1. 数据库启动至mount
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
2. RMAN备份数据文件
RMAN> backup as copy database format '+data';
Starting backup at 27-MAR-18
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=6 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/test/system01.dbf
3. switch datafile
RMAN> switch database to copy;
datafile 1 switched to datafile copy "+DATA/test/datafile/system.276.971869559"
datafile 2 switched to datafile copy "+DATA/test/datafile/sysaux.277.971869589"
datafile 3 switched to datafile copy "+DATA/test/datafile/undotbs1.278.971869615"
datafile 4 switched to datafile copy "+DATA/test/datafile/users.280.971869621"
4. alter database open
SQL> alter database open;
Database altered.
5. 验证
SQL> select file_name from dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
+DATA/test/datafile/users.280.971869621
+DATA/test/datafile/undotbs1.278.971869615
+DATA/test/datafile/sysaux.277.971869589
+DATA/test/datafile/system.276.971869559
以上是“Oracle如何使用RMAN将普通数据文件转成ASM”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。