關(guān)于db版本升級之后ogg版本也升級的問題。 首先說明,此處的db版本升級是10.2.0.5升級到11.2.0.3,因此屬于 major version 的變化。 什么叫做 major version呢? mos文章Oracle Database End of Premier Support For Major Releases - Frequently Asked Quest
關(guān)于db版本升級之后ogg版本也升級的問題。
首先說明,此處的db版本升級是10.2.0.5升級到11.2.0.3,因此屬于 major version 的變化。
什么叫做 major version呢?
mos文章Oracle Database End of Premier Support For Major Releases - Frequently Asked Questions (Doc ID 1559513.1)
有如下的論述:
2. What is a major release?
For the Oracle Database, a major release has a distinct first two places in its version number. For example 11.1, 11.2, and 12.1 are major releases. Within each major release there are different version number variations for patch sets (e.g. 11.2.0.3, 11.2.0.4), and patches (e.g. 11.2.0.3.4) - all of those are considered part of the major release.
話題回到db版本升級之后ogg版本也升級的情形上。
由于屬于major version的升級,由于OGG版本是跟Oracle database software 的major version 匹配的,因此,OGG的版本也需要升級。
那么有人可能有疑問:適用于db 11.2.0.3下的OGG的新版本目錄下,所有的DDL復(fù)制腳本需要重新跑吧?比如下面的順序:
9. 執(zhí)行sql
SQL>@marker_setup.sql ------->該步在升級時(shí)不需要執(zhí)行。
10. 執(zhí)行sql
SQL>@ddl_setup.sql -------->OGG升級時(shí)跑這個(gè)腳本。
11. 執(zhí)行sql
SQL>@role_setup.sql -------->OGG升級時(shí)跑這個(gè)腳本。
12. 授權(quán)
SQL> grant ggs_ggsuser_role to goldengate; -------->OGG升級時(shí)執(zhí)行這個(gè)命令。
13. 執(zhí)行sql
SQL>@ddl_enable.sql -------->OGG升級時(shí)執(zhí)行這個(gè)命令。
其實(shí)是不需要全部重新跑的。哪些需要重新跑,按照mos文章How To Upgrade Goldengate From 11.2.1.x to 11.2.1.y for Oracle Database Doc ID 1601971.1進(jìn)行升級即可。
在該文章中,有如下的步驟:
8. If using DDL replication steps 9 to 14 to needs to be followed. If using only DML replication then skip steps 9 to 14
9. Stop doing DDL changes on the source db and run the ddl_disable script as sysdba to disable the OGG ddl trigger
10. Disconnect all sessions that ever issued DDL. Otherwise the database might generate ORA* errors
11. Run the ddl_setup script as sysdba. You will be prompted for the name of the Oracle GoldenGate
DDL schema.
12. Run the role_setupscript to recreate the Oracle GoldenGate DDL role.
13. Grant the role that you created to all Oracle GoldenGate users under which the
following Oracle GoldenGate processes run:Extract, Replicat, GGSCI, and Manager.
You might need to make multiple grants ifthe processes have different user names.
14. Run the ddl_enable.sqlscript to enable the DDL trigger.
遵照執(zhí)行即可!
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com