Duplicate搭建DataGuard: 源庫: run{allocate channel ch1 device type disk;allocate channel ch2 device type disk;backup a
Oracle Duplicate搭建DataGuard
[日期:2015-10-16] 來源:Linux社區(qū) 作者:sysdba [字體:]
Duplicate搭建DataGuard:
源庫:
run
{
allocate channel ch1 device type disk;
allocate channel ch2 device type disk;
backup as compressed backupset database;
sql 'alter system archive log current';
release channel ch1;
release channel ch2;
}
查詢出數(shù)據(jù)文件路徑
select 'set newname for datafile '||FILE_ID||' to '||file_name||';' from dba_data_files;
select 'set newname for datafile '||FILE_ID||' to '||file_name||';' from dba_TEMP_files;
使用duplicate,要在備庫有跟主庫一樣的備份目錄并且有備份集在里面,在主庫運行命令。
在備庫上配置好pfile和standby controlfile
備庫操作:
auxorcl是目標庫tnsname。
rman target sys/Oracle@cai auxiliary sys/oracle@auxorcl;
run
{
set newname for datafile 1 to '/u01/app/oracle/oradata/cai/system01.dbf';
set newname for datafile 2 to '/u01/app/oracle/oradata/cai/sysaux01.dbf';
set newname for datafile 3 to '/u01/app/oracle/oradata/cai/undotbs01.dbf';
set newname for datafile 4 to '/u01/app/oracle/oradata/cai/users01.dbf';
set newname for datafile 5 to '/u01/app/oracle/oradata/cai/test.dbf';
set newname for tempfile 1 to '/u01/app/oracle/oradata/cai/temp01.dbf';
duplicate target database for standby;
}
Oracle 11gR2 在VMWare虛擬機中安裝步驟
Debian 下 安裝 Oracle 11g XE R2
Oracle Data Guard 重要配置參數(shù)
基于同一主機配置 Oracle 11g Data Guard
探索Oracle之11g DataGuard
Oracle Data Guard (RAC+DG) 歸檔刪除策略及腳本
Oracle Data Guard 的角色轉(zhuǎn)換
Oracle Data Guard的日志FAL gap問題
Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 處理方法
更多Oracle相關信息見Oracle 專題頁面 ?tid=12
本文永久更新鏈接地址:
0
MySQL 5.5主從關于‘復制過濾’的深入探究
Oracle RMAN修復邏輯壞塊
相關資訊 DataGuard
圖片資訊
本文評論 查看全部評論 (0)
評論聲明
尊重網(wǎng)上道德,遵守中華人民共和國的各項有關法律法規(guī)
承擔一切因您的行為而直接或間接導致的民事或刑事法律責任
本站管理人員有權保留或刪除其管轄留言中的任意內(nèi)容
本站有權在網(wǎng)站內(nèi)轉(zhuǎn)載或引用您的評論
參與本評論即表明您已經(jīng)閱讀并接受上述條款
最新資訊
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com