oracle
首先創建物理備用庫
物理備庫上 停止redo應用
alter database recover managed STANDBY database cancel;
主庫上生成logminer 會發生幾次切換日志 報錯忽略
execute dbms_logstdby
物理備庫上 轉化為邏輯備用庫
alter database recover to logical standby orcl; <
shutdown immediate
startup mount
SELECT db_unique_name
備庫上 重建邏輯standby的密碼文件
orapwd file=$ORACLE_HOME/dbs/orapwstby password=oracle entries=
備庫上 修改參數
alter system set log_archive_dest_
alter system set log_archive_dest_
備庫上 創建備用日志
alter database add standby logfile group
alter database add standby logfile group
alter database add standby logfile group
select member from v$logfile;
備庫上 打開邏輯standby
alter database open resetlogs;
alter database start logical standby apply immediate;
備庫上 檢查
select instance_name
SELECT db_unique_name
select group#
測試
在主庫上 創建
create table scott
insert into scott
commit;
alter system switch logfile;
過一會兒 在邏輯備用庫上查詢
select * from scott
From:http://tw.wingwit.com/Article/program/Oracle/201311/19028.html