重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
这篇文章主要介绍Oracle如何使用RMAN将普通数据文件转成ASM,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
成都创新互联公司于2013年开始,是专业互联网技术服务公司,拥有项目成都网站建设、网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元岚县做网站,已为上家服务,为岚县各地企业和个人服务,联系电话:028-86922220
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”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!