重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 331|回复: 1
打印 上一主题 下一主题

[Oracle] 参数ENABLE_GOLDENGATE_REPLICATION

[复制链接]
跳转到指定楼层
楼主
发表于 2025-11-28 16:44:45 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
APPLIES TO:




Oracle GoldenGate - Version 11.2.0.0.0 and later
Information in this document applies to any platform.
PURPOSE




To better track GoldenGate product license, a new database init parameter,  ENABLE_GOLDENGATE_REPLICATION, is introduced in Oracle 11.2.0.4 and 12.1.0.2 and up.
这个参数在11.2.0.4和12.1.0.2以后才出现,而且这个参数是在源端和目标端同时设定该参数。
DETAILS




For Oracle DB versions 11.2.0.4 and 12.1.0.2 there will be a new init.ora parameter called ENABLE_GOLDENGATE_REPLICATION.  In order for some of the Oracle GoldenGate functionality to work, this parameter must be set to true.  It will enable access to the TDE/TSE integration with classic extract, Integrated Capture, Integrated Apply,  DBLOGREADER functionality, replicat functionality like suppression of triggers and deferring referential constrains, and other integration points.  
上面的意思是为了更好的监视你使用OGG,所以把gg绑定到DB中,只有设置了改参数为true,才能使用OGG的一些功能。




So, in order to use OGG, on Oracle 11.2.0.4, or Oracle 12.1.0.2+, you will need to issue the following command through SQL*Plus.




ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION = TRUE SCOPE=BOTH;




This only needs to be done once, and in a RAC environment, will take effect on all instances.   It can be done without bouncing the database instance, and you’ll want to use SCOPE=BOTH or update the init.ora file to ensure that when the database is bounced, the setting remains in effect.




If this parameter is not set and/or missing privileges (exec DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE ( '' ); exec DBMS_XSTREAM_AUTH.GRANT_ADMIN_PRIVILEGE ( '' );), you may get an Oracle error, ORA-26947 or ORA-26945 when attempting to use any of the GoldenGate functionality.




Here is the complete text of the oracle error (as shown from orerr utility)




26947, 00000, "Oracle GoldenGate replication is not enabled."
// *Cause: The 'enable_goldengate_replication' parameter was not set to 'true'.
// *Action: Set the 'enable_goldengate_replication' parameter to 'true'
//           and retry the operation.
//          Oracle GoldenGate license is needed to use this parameter.   




To correct, grant privileges to the Replicat Oracle DB user by running the dbms_goldengate_auth.grant_admin_privilege procedure.




ie:




exec dbms_goldengate_auth.grant_admin_privilege('gguser','*',TRUE);

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2025-11-28 17:43:26 | 只看该作者
验证参数修改是否成功:
SELECT enable_goldengate_replication FROM v$parameter WHERE name = 'enable_goldengate_replication';
若返回值为 TRUE,则说明参数已成功设置。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2026-4-17 20:58 , Processed in 0.259955 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表