Home  >  Article  >  Database  >  GoldenGate单向复制配置(支持DDL复制)

GoldenGate单向复制配置(支持DDL复制)

WBOY
WBOYOriginal
2016-06-07 17:40:08997browse

在上一篇文件中的OGG单向复制配置不支持DLL的同步,只支持DML,因而本文在之前的基础上增加对DDL语句的复制,下面是简要配置过程记录!一:验证之前的配置不支持

在上一篇文件中的OGG单向复制配置不支持DLL的同步,只支持DML,因而本文在之前的基础上增加对DDL语句的复制,下面是简要配置过程记录!

一:验证之前的配置不支持DDL复制,香港虚拟主机,这里在source端,新建一张表,发现无法复制到target端!target端也新建相同的表后,服务器空间,DML操作可以成功复制

二:开始配置OGG支持DDL复制(在source端操作)
1:赋予ogg用户相应的权限,香港服务器,修改全局配置文件添加ggschema参数

2:运行相关的sql脚本

3:source端修改extract进程的params文件,添加"ddl include all"参数,重启extract进程

4:target端修改replicat进程的params文件,添加"ddl include all"和"ddlerror default ignore retryop maxretries 3 retrydelay 5" 参数,重启replicat进程

三:测试

 

本文出自 “斩月” 博客,谢绝转载!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article: 读Clean CodeNext article: Oracle体系结构