以Sysdba角色运行脚本

SQL> @marker_setup

SQL> alter session set recyclebin=OFF;

Session altered.

SQL> @ddl_setup

SQL> @role_setup

SQL> grant ggs_ggsuser_role to ggs;

Grant succeeded.

SQL> @ddl_enable

Trigger altered.

SQL> @ddl_pin GGS

BEGIN dbms_shared_pool.keep('SYS. GGS_DDL_TRIGGER_BEFORE', 'R'); END;

*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_SHARED_POOL.KEEP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

@$ORACLE_HOME/rdbms/admin/dbmspool.sql
 @ddl_pin goldengate

Turn Recyclebin OFF

We need to set the parameter recyclebin to OFF via the ALTER SYSTEM SET RECYCLEBIN=OFF command in order to prevent this error which we will see if we try and configure DDL support and then start the Extract process.

2010-02-19 11:13:30 GGS ERROR 2003 RECYCLEBIN must be turned off. For 10gr2 and up, set RECYCLEBIN in parameter file to OFF. For 10gr1, set _RECYCLEBI
N in parameter file to FALSE. Then restart database and extract.
2010-02-19 11:13:30 GGS ERROR 190 PROCESS ABENDING.

Enable additional logging at the table level

Note- We had earlier enabled additional supplemental logging at the database level. Using the ADD TRANDATA command we now enable it at even the table level as this is required by GoldenGate for DDL support.

GGSCI (linuxoel54.gj.com) 5> DBLOGIN USERID ggs, PASSWORD ggs

Successfully logged into database.

GGSCI (linuxoel54.gj.com) 6> ADD TRANDATA scott.emp

Logging of supplemental redo data enabled for table SCOTT.EMP.

Edit the parameter file for the Extract process to enable DDL synchronization

We had earlier created a parameter file for an Extract process ext1. We now edit that parameter file and add the entry
DDL INCLUDE MAPPED

This means that DDL support is now enabled for all tables which have been mapped and in this case it will only apply to the SCOTT.EMP table as that is the only table which is being processed here. We can also use the INCLUDE ALL or EXCLUDE ALL or wildcard characters to specify which tables to enable the DDL support for.

GGSCI (linuxoel54.gj.com) 1> EDIT PARAM EXT1

EXTRACT ext1
USERID ggs, PASSWORD ggs
RMTHOST zeusaix53 , MGRPORT 7809
RMTTRAIL /u01/oracle/software/goldengate/dirdat/rt
DDL INCLUDE MAPPED
TABLE scott.emp;

Test the same

We will now alter the structure of the EMP table by adding a column and we can see that this new table structure is also reflected on the target system.

On Source

SQL> ALTER TABLE EMP ADD NEW_COL VARCHAR2(10);
Table altered.

On Target

SQL> desc emp;
Name Null? Type
—————————————– ——– —————————-
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(20)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
MYCOL VARCHAR2(10)
NEW_COL VARCHAR2(10)

配置Goldengate支持DDL相关推荐

  1. goldengate ddl mysql_配置GoldenGate同步DDL语句(3)

    在配置GoldenGate同步DDL语句(2)中我们针对多种DDL语句在GoldenGate环境中的同步进行了测试,但在默认情况下replicat在复制DDL语句失败时不会在replicat repo ...

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

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

  3. 【OGG】OGG的单向复制配置-支持DDL(二)

    [OGG]OGG的单向复制配置-支持DDL(二) 一.1  BLOG文档结构图 一.2  前言部分 一.2.1  导读 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的 ...

  4. goldengate ddl mysql_Oracle GoldenGate 12.2-异构环境的单项复制(支持DDL复制)

    Oracle Golden gate 12版本已经很长世间了,对比前几个版本变化很大.在安装过程已经摈弃了原有命令行形式,采用了与Oracle DB以及weblogic一样的图形解决,在界面上可以选择 ...

  5. PostgreSQL Oracle GoldenGate支持种类繁多的数据库的同步,功能非常强大 pgsql_admin_script ogg_oracle_replicate_to_postgres

    PostgreSQL Oracle GoldenGate支持种类繁多的数据库的同步,功能非常强大 pgsql_admin_script ogg_oracle_replicate_to_postgres ...

  6. oracle goldengate 触发器,Goldengate开启DDL操作

    Goldengate开启DDL操作 以下操作在源端.目标端都要执行 安装DDL相关对象时,建议退出所有应用程序,并防止数据库有新的连接,否则可能导致操作失败. 安装支持DDL同步对象,可通过下述命令实 ...

  7. android 关闭jack_Android7.0 配置JACK支持多用户同时编译

    # Android7.0 配置JACK支持多用户同时编译 reference: 背景 需要在一个Android7平台上进行有关的工作,但是编译的时候发现有问题.记录一下.因为和同事共用一台服务器,因为 ...

  8. DTS增量/同步支持DDL迁移的说明

    DTS目前并不支持所有数据库类型时间的DDL迁移,特别是异构数据库之间的迁移.不得不承认DDL的迁移还是非常复杂的,因为这涉及到DDL的解析(DDL的过滤)及转换(库表列映射及异构数据库),详情参考D ...

  9. 10分钟快速配置sublime2支持jQuery开发

    昨天介绍了javascript的开发工具sublime 2 edit,今天我们将介绍如何10分钟快速配置sublime2支持jQuery开发.希望大家能喜欢着款jQuery开发工具. 相关介绍:使用s ...

最新文章

  1. ESXi主机遗忘密码重置密码
  2. java获取服务器信息吗_java获取服务器一些信息的方法
  3. c语言中go的作用,go语言与c语言的相互调用
  4. 查看域名真实IP地址NSlookup命令使用浅析
  5. 修改overflow图标 修改ActionBar的三个点的图标
  6. “数据分析”如何作用于“用户研究”?--转载微博
  7. vrrp路由器三种状态_VRRP技术详解和实战演练
  8. Java多线程sleep和wait的区别,总结得非常好
  9. yii3正式版什么时候发布_事业单位联考结束,成绩什么时候发布?合格分数线怎么算?...
  10. 保障了罗振宇跨年演讲的PTS铂金版正式上线,产品体验全新升级
  11. C 语言实例 - 斐波那契数列
  12. 自动化测试---Assert
  13. java client和servers_“java -server”和“java -client”之间的真正区别?
  14. Windows 2000命令行如何查看进程PID和杀进程
  15. Java List retainAll方法使用注意事项
  16. 如何用SOLIDWORKS实现文字雕刻?来试试这样做!
  17. 分享老齐【学方法】宽信用周期对股市的影响!
  18. 软件配置---重装系统---品牌电脑重启快捷键表
  19. yocs_cmd_vel_mux和yocs_velocity_smoother
  20. 1.JS高级红宝书程序设计之JS的嵌入方式

热门文章

  1. D3js(四):箭头arrow
  2. 钉钉小程序------子组件监测父组件的数据更新
  3. PHP错误处理 - debug_backtrace()的用法
  4. python中的__iter__ __reversed__ __next__
  5. Python 正则 —— 捕获与分组
  6. macOS 10.13 安装Virtualbox失败
  7. mongodb--find高级用法
  8. LeetCode Find the Duplicate Number 找重复出现的数(技巧)
  9. Win 2008 R2安装SQL Server 2008“性能计数器注册表配置单元一致性”失败的解决办法...
  10. 海思108M 4D1模式含义