WEB开发网
开发学院数据库Oracle Oracle 10G streams模式级复制 阅读

Oracle 10G streams模式级复制

 2009-07-03 11:50:09 来源:WEB开发网   
核心提示: sc_dest --- 配置应用进程队列begindbms_streams_adm.set_up_queue(queue_table => 'apply_scdtab',queue_name=> 'apply_scd',queue_user=&

sc_dest

-----------------------------------

配置应用进程队列

begin
dbms_streams_adm.set_up_queue(
  queue_table => 'apply_scdtab',
  queue_name  => 'apply_scd',
  queue_user  => 'strmadmin');
end;
/

sc_source

-----------------------------------

配置捕获进程

begin
dbms_streams_adm.add_schema_rules (
schema_name  => 'product',
  streams_type => 'capture',
  streams_name => 'capture_scstrm',
  queue_name  => 'capture_scs',
  include_dml => true,
  include_ddl => true,
  inclusion_rule => true);
end;
/

配置传播进程

begin
dbms_streams_adm.add_schema_propagation_rules (
  schema_name   => 'product',
  streams_name   => 'pro_source_to_dest',
  source_queue_name  => 'capture_scs',
  destination_queue_name  => 'apply_scd@sc_dest.net',
  include_dml   => true,
  include_ddl   => true,
  source_database  => 'sc_source.net');
end;
/

sc_dest

--------------------------------------------------------

配置应用进程

begin
dbms_streams_adm.add_schema_rules (
  schema_name  => 'product',
  streams_type  => 'apply',
  streams_name  => 'apply_scdtrm',
  queue_name  => 'apply_scd',
  include_dml  => true,
  include_ddl  => true,
  source_database => 'sc_source.net');
end;
/

Tags:Oracle streams 模式

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接