oracle STREAM 單向使用者配置流程步驟總結
alter system set aq_tm_processes=2 scope=both;
alter system set global_names=true scope=both;
alter system set job_queue_processes=10 scope=both;
alter system set parallel_max_servers=20 scope=both;
alter system set undo_retention=3600 scope=both;
alter system set nls_date_format='YYYY-MM-DD HH24:MI:SS' scope=spfile;
alter system set streams_pool_size=25M scope=spfile;
alter system set utl_file_dir='*' scope=spfile;
alter system set open_links=4 scope=spfile;
在source與slave主機建立db_link。
主SOURCE stream佇列:
begin
dbms_streams_adm.set_up_queue(
queue_table => 'RACDB_queue_table',
queue_name => 'RACDB_queue');
end;
/
主source capture捕獲程式:
begin
dbms_streams_adm.add_schema_rules(
schema_name => 'STREAM',
streams_type => 'capture',
streams_name => 'capture_RACDB',
queue_name => 'strmadmin.RACDB_queue',
include_dml => true,
include_ddl => true,
include_tagged_lcr => false,
source_database => null,
inclusion_rule => true);
end;
/
主source propagation傳播程式:
begin
dbms_streams_adm.add_schema_propagation_rules(
schema_name => 'STREAM',
streams_name => 'RACDB_to_ORAPRI',
source_queue_name => 'strmadmin.RACDB_queue',
destination_queue_name => ,
include_dml => true,
include_ddl => true,
include_tagged_lcr => false,
source_database => 'RACDB',
inclusion_rule => true);
end;
/
從slave receive 接收佇列:
begin
dbms_streams_adm.set_up_queue(
queue_table => 'ORAPRI_queue_table',
queue_name => 'ORAPRI_queue');
end;
/
從slave APPLY程式:
begin
dbms_streams_adm.add_schema_rules(
schema_name => 'STREAM',
streams_type => 'apply',
streams_name => 'apply_ORAPRI',
queue_name => 'strmadmin.ORAPRI_queue',
include_dml => true,
include_ddl => true,
include_tagged_lcr => false,
source_database => 'RACDB',
inclusion_rule => true);
end;
/
從slave start:
begin
dbms_apply_adm.start_apply(
apply_name => 'apply_ORAPRI');
end;
/
主source start:
begin
dbms_capture_adm.start_capture(
capture_name => 'capture_RACDB');
end;
/
修改LCR實現實時應用(可能報錯11g):
begin
dbms_aqadm.alter_propagation_schedule(
queue_name => 'RACDB_queue',
destination => 'ORAPRI',
latency => 0);
end;
/
修改LCR實現實時應用(11g):
begin
dbms_aqadm.alter_propagation_schedule(
queue_name => 'RACDB_queue',
destination => 'ORAPRI',
destination_queue => 'ORAPRI_queue',
latency => 0);
end;
/
主:
begin
dbms_aqadm.alter_propagation_schedule(
queue_name => 'racdb_queue',
destination => 'orapri',
latency => 0);
end;
/
主:
begin
dbms_aqadm.alter_propagation_schedule(
queue_name => 'racdb_queue',
destination => 'orapri',
destination_queue => 'orapri_queue',
latency => 5);
end;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28612416/viewspace-1173991/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Stream配置詳細步驟(使用者模式)Oracle模式
- Oracle Stream配置詳細步驟Oracle
- stream配置總結
- 一步一步配置Oracle StreamOracle
- 機器學習-步驟總結機器學習
- 一步一步配置ORACLE STREAM【轉載】Oracle
- VMware中配置ORACLE DATAGUARD步驟Oracle
- 簡單oracle安裝步驟Oracle
- ORACLE 11G 搭建dataguard詳細步驟(所有操作總結)Oracle
- GitHub倉庫配置SSH keys步驟流程圖解Github流程圖圖解
- oracle資料庫使用者建立步驟Oracle資料庫
- 簡單介紹Git合併分支的流程步驟Git
- Oracle 11g dataguard 配置簡約步驟Oracle
- Oracle資料庫登入流程的步驟介紹Oracle資料庫
- AS4 10g 單節點遷移到ASM RAC步驟總結ASM
- ORACLE10g Stream使用者級複製配置Oracle
- hacmp 5.5配置步驟ACM
- Oracle Stream概述與配置Oracle
- 【BUILD_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(二)詳細配置步驟UIOracleASMFilter
- DataGuard寫測試實驗步驟及總結
- [總結]rac不可用的排錯步驟
- Oracle 10G重建OEM 的簡單步驟Oracle 10g
- mysqldump執行流程步驟介紹MySql
- ERP實施流程/步驟(轉)
- Mac OS 配置Maven步驟MacMaven
- 配置 Windows Terminal 步驟Windows
- oracle---oracle的單向ogg搭建流程(DML+DDL)Oracle
- Oracle重建awr步驟Oracle
- oracle 安裝步驟Oracle
- oracle升級步驟Oracle
- ORACLE啟動步驟Oracle
- Linux Oracle 11g Dataguard配置詳細步驟LinuxOracle
- Oracle 高階複製配置步驟詳細說明Oracle
- Oracle 9i 配置備用資料庫步驟Oracle資料庫
- 專案review步驟還有專案交接總結View
- Android遊戲開發設計步驟總結Android遊戲開發
- [原創]總結:實施goldengate director的步驟Go
- 物件導向第二單元總結物件