goldengate配置ddl支持
admin
2023-04-14 19:21:33
0

切换到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
where 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.

相关内容

热门资讯

【第一财经】“成就联盟开挂神器... 网上科普关于“成就联盟有没有挂”话题很是火热,小编也是针对成就联盟作*弊开挂的方法以及开挂对应的知识...
今日重大发现“新上游牛牛到底是... 有 亲,根据资深记者爆料新上游牛牛是可以开挂的,确实有挂(咨询软件无需打...
【第一财经】“yy比鸡到底是不... 网上科普关于“yy比鸡有没有挂”话题很是火热,小编也是针对yy比鸡作*弊开挂的方法以及开挂对应的知识...
【第一财经】“九九麻将可以开挂... 网上科普关于“九九麻将有没有挂”话题很是火热,小编也是针对九九麻将作*弊开挂的方法以及开挂对应的知识...
终于了解“新上游炸/金/花可以... 网上科普关于“新上游炸/金/花有没有挂”话题很是火热,小编也是针对新上游炸/金/花作*弊开挂的方法以...
今日重大消息“掼蛋可以开挂吗?... 家人们!今天小编来为大家解答掼蛋透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很多人...
玩家最新攻略“新圣游牛牛究竟有... 网上科普关于“新圣游牛牛有没有挂”话题很是火热,小编也是针对新圣游牛牛作*弊开挂的方法以及开挂对应的...
今日重大发现“熊猫竞技究竟有挂... 今日重大发现“熊猫竞技究竟有挂吗?”(详细开挂教程)您好,熊猫竞技这个游戏其实有挂的,确实是有挂的,...
玩家攻略科普“欢乐划水麻将开挂... 有 亲,根据资深记者爆料欢乐划水麻将是可以开挂的,确实有挂(咨询软件无需...
终于明白“天酷炸/金/花真的有... 家人们!今天小编来为大家解答天酷炸/金/花透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪...