您好,登錄后才能下訂單哦!
這篇文章主要介紹Oracle如何使用RMAN將普通數(shù)據(jù)文件轉(zhuǎn)成ASM,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
1. 數(shù)據(jù)庫(kù)啟動(dòng)至mount
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
2. RMAN備份數(shù)據(jù)文件
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. 驗(yàn)證
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將普通數(shù)據(jù)文件轉(zhuǎn)成ASM”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。