Upgrade Goldengate11.1.1.1.2to11.2.1.0.1

Source: Internet
Author: User
Upgrade Goldengate11.1.1.1.2to11.2.1.0.1

Upgrade Goldengate 11.1.1.1.2 to 11.2.1.0.1

Configuration environment:

Source:
OGG: 11.2.1.0.1
Name: linuxidc1

Target:
OGG: 11.1.1.1.2
Name: linuxidc2

Upgrade Target to the same version as the source.

Backup Target ogg installation directory:
[Root @ linuxidc2/] # cp-R ogg // database/

Check whether the Source extraction process is active:

GGSCI (linuxidc1) 6> send extract ext1 logend

Sending LOGEND request to EXTRACT EXT1...
YES.


GGSCI (linuxidc1) 7> send extract ext2 logend

Sending LOGEND request to EXTRACT EXT2...
YES.

If no data is extracted or transmitted, stop the process.
Check whether the Target replication is active:

GGSCI (linuxidc2) 2> send replicat rep1 status

Sending STATUS request to REPLICAT REP1...
Current status: At EOF
Sequence #: 3
RBA: 2434
0 records in current transaction

Stop all processes:

Source:
GGSCI (linuxidc1) 13> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED
Extract stopped EXT1 00:00:00 00:01:35
Extract stopped EXT2 00:00:00 00:01:32


Target:
GGSCI (linuxidc2) 6> info all

Program Status Group Lag Time Since Chkpt

MANAGER STOPPED
Replicat stopped REP1 00:00:00

Target:
Delete the content in the previous ogg installation directory and decompress the new version of ogg.

[Ogg @ linuxidc2 ogg] $./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 oggcore_11.2.1.0.20.platforms_120423.0230_fbo
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14

Copyright (C) 1995,201 2, Oracle and/or its affiliates. All rights reserved.

GGSCI (linuxidc2) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED


GGSCI (linuxidc2) 2> dblogin userid ogg, password ogg;
Successfully logged into database.

GGSCI (linuxidc2) 3> upgrade checkpointtable ogg. checkpoint

Successfully upgraded checkpoint table ogg. checkpoint.

In the target database:

Installing the DDL objects:
1. Run the @ marker_setup. SQL script. This script installsupport for the Oracle GoldenGate
Marker system, which is required for DDL support. You will be prompted for the name
Of the Oracle GoldenGate schema.
Drop trigger ggs_ddl_trigger_before;
Grant create table, create view, create sequence to ogg;
2. Run the @ ddl_setup. SQL script Script that INSTALLThe Oracle GoldenGate DDL extraction and
Replication objects. (Oracle installations)
3. Run the @ role_setup. SQL script. This script drops and creates the role needed for DDL
Synchronization. It grants DML permissions on the Oracle GoldenGate DDL objects
4. Grant the role to all Oracle GoldenGate Extract users. You may need to make multiple
Grants if the processes have different user names.
Run the @ ddl_enable. SQL script to enable the DDL trigger.
5. To improve the performance of the DDL trigger, make the ddl_pin script part of the database
Startup. It must be invoked with the Oracle GoldenGate DDL user name, as in:
@? /Rdbms/admin/dbmspool. SQL
SQL> @ ddl_pin ogg
To improve the performance of the DDL trigger
This script pins the PL/SQL package that is used by the trigger into memory. If executing
This script from SQL * Plus, connect as SYSDBA from the Oracle GoldenGate home directory.
This script relies on the Oracle dmbs_shared_pool system package, so install that package
Before using ddl_pin.

Configure Target:

View param mgr
Port 7839
DYNAMICPORTLIST 7840-7914
USERID ogg, PASSWORD ogg
Autorestart replicat *, RETRIES 5, WAITMINUTES 3
PURGEOLDEXTRACTS./DIRDAT/*, MINKEEPDAYS 3
Purgeddlhistory minkeepdays 7, MAXKEEPDAYS 10, FREQUENCYMINUTES 30
Purgemarkerhistory minkeepdays 7, MAXKEEPDAYS 10
LAGREPORTHOURS 1
LAGINFOMINUTES 30
LAGCRITICALMINUTES 45

GGSCI (linuxidc2) 1> create subdirs
GGSCI (linuxidc2) 1> view param./GLOBALS
GGSCHEMA ogg
CHECKPOINTTABLE ogg. checkpoint
GGSCI (linuxidc2) 2> add replicat rep1, exttrail/ogg/dirdat/sa, checkpointtable ogg. checkpoint
GGSCI (linuxidc2) 19> edit param rep1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.