您好,登錄后才能下訂單哦!
創(chuàng)建歸檔日志路徑
asmca
+data/lhrrac1/arch
設(shè)置歸檔日志路徑。
alter system set log_archive_dest_1='location=+data/lhrrac1/arch' scope=spfile sid='*';
(每個節(jié)點(diǎn)都要跑一邊)
1,rac 切換歸檔
1、登錄數(shù)據(jù)庫:執(zhí)行alter system set cluster_database = false scope=spfile;
2、關(guān)閉node1和node2數(shù)據(jù)庫:shutdown immediate; -- [grid @rac1 ~] $ srvctl stop database -d racdb
3、啟動node1至mount狀態(tài):startup mount;
4、執(zhí)行關(guān)閉歸檔:alter database archivelog;
5、開啟數(shù)據(jù)庫:alter database open;
6、在node1執(zhí)行:alter system set cluster_database=true scope=spfile;
7、關(guān)閉數(shù)據(jù)庫:shutdown immediate;
8、啟動node1數(shù)據(jù)庫:startup
9、啟動node2數(shù)據(jù)庫:startup
可參考:
https://blog.csdn.net/onlyshenmin/article/details/52432114
https://blog.csdn.net/dbcommando/article/details/7925861
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。