广告
返回顶部
首页 > 资讯 > 数据库 >goldengate配置ddl支持
  • 239
分享到

goldengate配置ddl支持

2024-04-02 19:04:59 239人浏览 安东尼
摘要

切换到Goldengate软件目录下面登录数据库sqlplus / as sysdba:a.@marker_setup.sqlb.@ddl_setup.sql  #此处的输入goldengate管

切换到Goldengate软件目录下面登录数据库sqlplus / as sysdba:
a.@marker_setup.sql
b.@ddl_setup.sql  #此处的输入goldengate管理用户oggadmin必须指定单独的表空间并且自动扩展。
c.@role_setup.sql
d.@ddl_enable.sql
e.@?/rdbms/admin/dbmspool.sql
f.@ddl_pin.sql oggadmin   ##此处oggadmin为配置在goldnegate中的管理账户

备注:oracle10需要关闭recyclebin,oracle11g以后不需要关闭recyclebin;
源端添加参数:
ddl &
include mapped objname app.t_bi_sku &
include mapped objname app.t_bi_barcode ;

pump进程添加参数:
ddl

应用进程添加参数:
DDL INCLUDE MAPPED
DDLERROR DEFAULT IGNORE RETRYOP


具体的脚本执行如下:
1.在源端执行marker_setup.sql脚本:
[oracle@goldengate]$ ls marker_setup.sql
marker_setup.sql
[oracle@goldengate]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Mar 19 15:21:11 2019
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @marker_setup.sql
Marker setup script
You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.
Enter Oracle GoldenGate schema name:oggadmin   ##配置goldengate的管理用户
Marker setup table script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to OGGADMIN
MARKER TABLE
-------------------------------
OK
MARKER SEQUENCE
-------------------------------
OK
Script complete.
SQL>

2.执行第二个脚本ddl_setup.sql:
SQL> @ddl_setup.sql
Oracle GoldenGate DDL Replication setup script
Verifying that current user has privileges to install DDL Replication...
You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: For an Oracle 10g source, the system recycle bin must be disabled. For Oracle 11g and later, it can be enabled.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.
Enter Oracle GoldenGate schema name:oggadmin
Working, please wait ...
Spooling to file ddl_setup_spool.txt
Checking for sessions that are holding locks on Oracle Golden Gate metadata tables ...
Check complete.
declare
*
ERROR at line 1:
ORA-20783:
ORA-20783:
Oracle GoldenGate DDL Replication setup:
*** Please move OGGADMIN to its own tablespace
ORA-06512: at line 34

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

解决:
alter user OGGADMIN default tablespace OGG_TBS;
alter user OGGADMIN quota unlimited on OGG_TBS;

3.
SQL> @role_setup.sql
GGS Role setup script
This script will drop and recreate the role GGS_GGSUSER_ROLE
To use a different role name, quit this script and then edit the params.sql script to change the gg_role parameter to the preferred name. (Do not run the script.)

You will be prompted for the name of a schema for the GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.
Enter GoldenGate schema name:oggadmin
Wrote file role_setup_set.txt
PL/SQL procedure successfully completed.
Role setup script complete
Grant this role to each user assigned to the Extract, GGSCI, and Manager processes, by using the following SQL command:
GRANT GGS_GGSUSER_ROLE TO <loggedUser>
where <loggedUser> is the user assigned to the GoldenGate processes.
SQL> grant GGS_GGSUSER_ROLE to oggadmin;
Grant succeeded.
4.执行其它的一些sql脚本:
SQL> @ddl_enable.sql

Trigger altered.

SQL> @?/rdbms/admin/dbmspool.sql

Package created.
Grant succeeded.
SQL>  @ddl_pin.sql oggadmin
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.

您可能感兴趣的文档:

--结束END--

本文标题: goldengate配置ddl支持

本文链接: https://www.lsjlt.com/news/45605.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • goldengate配置ddl支持
    切换到goldengate软件目录下面登录数据库sqlplus / as sysdba:a.@marker_setup.sqlb.@ddl_setup.sql  #此处的输入goldengate管...
    99+
    2022-10-18
  • 配置GoldenGate同步DDL语句(
    在配置GoldenGate同步DDL语句(2)中我们针对多种DDL语句在GoldenGate环境中的同步进行了测试,但在默认情况下replicat在复制DDL语句失败时不会在replicat report或者ggserr.log等日志文件中...
    99+
    2023-01-31
    语句 GoldenGate DDL
  • GoldenGate 配置
    准备:两个已经有数据库的虚拟机,现在关闭状态--源端数据库的操作[root@localhost ~]# su - oracle[oracle@localhost ~]$ sqlplus "/as sysdb...
    99+
    2022-10-18
  • 1.--Goldgate单向复制(支持DDL)
    OGG单向复制(支持DDL) 版本说明: ./ggsci -v Oracle GoldenGate Command Interpreter for Oracle Version 11.2.1....
    99+
    2022-10-18
  • Oracle Goldengate 安装配置
    首先要下载ogg的安装包。下载地址如下http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html 将安装包上传至...
    99+
    2022-10-18
  • 怎么配置J2EE支持Mysql
    这篇文章主要讲解了“怎么配置J2EE支持Mysql”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么配置J2EE支持Mysql”吧! ...
    99+
    2022-10-18
  • Asp.netCore项目配置HTTPS支持
    最近把公司的一些产品迁移到了.net core下,随之而来了一个新的问题:在公网部署的环境下,如何在Kestrel的self host模式下部署Https。本文这里就简单的介绍下.n...
    99+
    2022-11-13
  • 如何配置CentOS支持reiserFS
    这篇文章主要讲解了“如何配置CentOS支持reiserFS”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“如何配置CentOS支持reiserFS”吧!CentOS默认安装情况下并不能支持r...
    99+
    2023-06-10
  • Nginx支持websocket怎么配置
    今天小编给大家分享一下Nginx支持websocket怎么配置的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。一、对wss与n...
    99+
    2023-07-05
  • Oracle GoldenGate现在支持从 PostgreSQL 捕获数据
        Oracle GoldenGate PostgreSQL Capture支持已全面上市。自GoldenGate 12.1发行以来,已支持GoldenGate PostgreSQL交付(投递),并允许用户将数据从GoldenGate支...
    99+
    2019-01-02
    Oracle GoldenGate现在支持从 PostgreSQL 捕获数据 数据库入门 数据库基础教程 数据库 mysql
  • MySQL8.0新特性——支持原子DDL语句
       MySQL 8.0开始支持原子数据定义语言(DDL)语句。此功能称为原子DDL。原子DDL语句将与DDL操作关联的数据字典更新,存储引擎操作和二进制日志写入组合到单个原子事务中。即...
    99+
    2022-10-18
  • Oracle GoldenGate Director配置手册
    一.         GoldenGate Director 介绍 GoldenGat...
    99+
    2022-10-18
  • Goldengate双向复制配置
     一、Goldengate双向复制配置 1.1.在进行如下配置之前,先在源数据库source system(原来的目标数据库)端添加辅助的redolog配置:SQL>alter d...
    99+
    2022-10-18
  • Nginx支持websocket的配置详解
    目录一、对wss与nginx代理wss的理解:二、Nginx 支持websocket的配置一、对wss与nginx代理wss的理解: 1、wss协议实际是websocket+SSL,...
    99+
    2023-03-06
    Nginx websocket配置 Nginx websocket
  • apache 支持 php5 的配置方法
    小编给大家分享一下apache 支持 php5 的配置方法,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!下载apache安装包,并执行安装。2.下载php5的zi...
    99+
    2023-06-07
  • 配置部署Oracle Goldengate Version 11.2.1.0.1
    配置部署Oracle Goldengate Version 11.2.1.0.1 配置用户环境变量vi .bash_profile添加:export OGG_HOME=/data0/temp/og...
    99+
    2022-10-18
  • Oracle GoldenGate配置参数分析
    这篇文章主要介绍“Oracle GoldenGate配置参数分析”,在日常操作中,相信很多人在Oracle GoldenGate配置参数分析问题上存在疑惑,小编查阅了各式资料,...
    99+
    2022-10-19
  • webpack如何配置支持es6 to es5
    这篇文章将为大家详细讲解有关webpack如何配置支持es6 to es5,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。1. 安装webpacknpm inst...
    99+
    2022-10-19
  • Nginx如何安装配置Lua支持
    目录Nginx安装配置Lua支持Nginx中配置lua脚本,访问url总是提示404总结Nginx安装配置Lua支持 默认情况下Nginx不支持Lua模块,需要安装LuaJIT解释器...
    99+
    2023-05-18
    Nginx安装配置Lua Nginx安装配置Lua支持 Nginx安装Lua
  • Linux服务器---配置apache支持php
    apache支持phpphp是最好用的服务器语言了,Apache对php有很强大的支持    检测是否安装php,如果什么信息也没有,那么你就要自己安装php了[root@localhost ~]#&...
    99+
    2023-06-06
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作