Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ Upgrade Goldengate 11.1.1.1.2 to 11.2.1.0.1     - Disk Management LVM (Linux)

- Redhat 7 modify the default run level method --RHEL7 use systemd to create a symbolic link to the default runlevel (Linux)

- Two network security scanning tools under ubuntu (Linux)

- Java concurrent programming using the synchronized keyword ReentrantLock alternative primitive (Programming)

- The formatted Linux hard drive and mount (Linux)

- Linux common network tools: ping host sweep (Linux)

- Postfix mail service system principle and configuration (Linux)

- Fedora 22 users to install the VLC media player (Linux)

- Python-- for anomalies and reflection of objects articles (Programming)

- Linux create and delete user step (Linux)

- MongoDB upgrade from 2.4.9 to 2.6.0 and PHP record of mongo extension upgrade from 1.4.5 to 1.5.1 (Database)

- Linux system ARP attack solution (Linux)

- MongoDB fragmentation (Cluster) (Database)

- CentOS 6.6 compile and install phpMyAdmin configuration PostgreSQL9.4.1 (Database)

- CentOS 6 kernel upgrade to Kernel 3.x (Linux)

- Using IPFilter bridge filter in the FreeBSD system (Linux)

- Linux System Getting Started Tutorial: How to find the maximum memory your system supports (Linux)

- To setup CentOS LAMP environment (Server)

- How to use the Vault secure password storage and API key (Linux)

- Let CentOS perform PPPoE dial-up, ADSL can be used in a network environment! (Linux)

 
         
  Upgrade Goldengate 11.1.1.1.2 to 11.2.1.0.1
     
  Add Date : 2018-11-21      
         
         
         
  Configure the environment:

Source:
OGG: 11.2.1.0.1
Name: linux1

Target:
OGG: 11.1.1.1.2
Name: linux2

Target will now be upgraded to the same version of the source

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

See if the end of the extraction process Source active:

GGSCI (linux1) 6> send extract ext1 logend

Sending LOGEND request to EXTRACT EXT1 ...
YES.


GGSCI (linux1) 7> send extract ext2 logend

Sending LOGEND request to EXTRACT EXT2 ...
YES.

Found no extraction and transmission of data, you can stop the process
See Target end replication whether active:

GGSCI (linux2) 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 (linux1) 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 (linux2) 6> info all

Program Status Group Lag Time Since Chkpt

MANAGER STOPPED
REPLICAT STOPPED REP1 00:00:00 00:01:26

Target:
Remove the previously installed ogg contents of the directory, the new version of ogg decompression inside

[Ogg @ linux2 ogg] $ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14

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

 

GGSCI (linux2) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED


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

GGSCI (linux2) 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 installs support 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 installs the 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.

Configuring 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 (linux2) 1> create subdirs
GGSCI (linux2) 1> view param ./GLOBALS
GGSCHEMA ogg
CHECKPOINTTABLE ogg.checkpoint
GGSCI (linux2) 2> add replicat rep1, exttrail / ogg / dirdat / sa, checkpointtable ogg.checkpoint
GGSCI (linux2) 19> edit param rep1

REPLICAT rep1
ASSUMETARGETDEFS
USERID ogg, PASSWORD ogg
discardfile ./dirdat/rep1_discard.txt,append,megabytes 5
DDL INCLUDE MAPPED
DDLOPTIONS REPORT
--BATCHSQL
DBOPTIONS DEFERREFCONST
DBOPTIONS LOBWRITESIZE 102400
HANDLECOLLISIONS
DDLERROR DEFAULT DISCARD RETRYOP MAXRETRIES 5 RETRYDELAY 20
--grouptransops 1
--maxtransops 1
APPLYNOOPUPDATES
. MAP linuxxx *, TARGET linuxxx *.;

Source:
Version control parameter format release removed

GGSCI (linux1) 44> view param ext1

EXTRACT EXT1
setenv (NLS_LANG = AMERICAN_AMERICA.ZHS16GBK)
USERID ogg, PASSWORD ogg
DDL &
INCLUDE MAPPED OBJTYPE 'TABLE' &
INCLUDE MAPPED OBJTYPE 'IDNEX' &
INCLUDE MAPPED OBJTYPE 'SEQUENCE' &
INCLUDE MAPPED OBJTYPE 'VIEW' &
INCLUDE MAPPED OBJTYPE 'PROCEDURE' &
INCLUDE MAPPED OBJTYPE 'FUNCTION' &
INCLUDE MAPPED OBJTYPE 'PACKAGE' &
INCLUDE MAPPED OBJTYPE 'MATERIALIZED VIEW' &
EXCLUDE OPTYPE COMMENT
DDLOPTIONS ADDTRANDATA NOCROSSRENAME REPORT
REPORTCOUNT EVERY 1 MINUTES, RATE
DISCARDFILE ./dirrpt/EXTSA.DSC,APPEND,MEGABYTES 1024
THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 60000 IOLATENCY 60000
DBOPTIONS ALLOWUNUSEDCOLUMN
WARNLONGTRANS 2H, CHECKINTERVAL 3M
--exttrail ./dirdat/sa,format release 11.1
exttrail ./dirdat/sa
FETCHOPTIONS NOUSESNAPSHOT, FETCHPKUPDATECOLS, MISSINGROW REPORT
table linuxxx *.;


GGSCI (linux1) 45> view param ext2

EXTRACT EXT2
passthru
RMTHOST 192.168.56.61, MGRPORT 7839, COMPRESS
--RMTTRAIL ./dirdat/sa,format Release 11.1
RMTTRAIL ./dirdat/sa
table linuxxx *.;

Because the version of the problem, the file will not be available before the trail, forcing the extraction process to write a new trail file:

GGSCI (linux1) 47> alter extract ext1 etrollover

GGSCI (linux1) 25> alter extract ext2 etrollover

2015-03-06 01:26:06 INFO OGG-01520 Rollover performed. For each affected output trail of Version 10 or higher format, after starting the source extract, issue ALTER EXTSEQNO for that trail's reader (either pump EXTRACT or REPLICAT) to move the reader's scan to the new trail file; it will not happen automatically.
EXTRACT altered.

start mgr
start ext1

GGSCI (linux1) 39> alter extract ext2, EXTSEQNO 1, EXTRBA 0
EXTRACT altered.


GGSCI (linux1) 40> start ext2

Sending START request to MANAGER ...
EXTRACT EXT2 starting


GGSCI (linux1) 41> info ext2

EXTRACT EXT2 Last Started 2015-03-06 01:46 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:10 ago)
Log Read Checkpoint File / ogg / dirdat / sa000001
                    First Record RBA 0


Target:
GGSCI (linux2) 4> alter REPLICAT rep1, EXTSEQNO 1, EXTRBA 0
REPLICAT altered.


GGSCI (linux2) 5> start rep1

Sending START request to MANAGER ...
REPLICAT REP1 starting


GGSCI (linux2) 6> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT RUNNING REP1 00:00:00 00:00:08


GGSCI (linux2) 7> info rep1

REPLICAT REP1 Last Started 2015-03-06 01:43 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:00 ago)
Log Read Checkpoint File / ogg / dirdat / sa000001
                    First Record RBA 0

start mgr
start rep1

Since ogg sink upgraded successfully
     
         
         
         
  More:      
 
- Tree Traversals Again (Programming)
- Cobbler batch install Ubuntu / CentOS system (Linux)
- C language macro definition #define Usage (Programming)
- Linux stand-alone OGG synchronous Oracle 11g DB test (Database)
- Java, extends and implements Usage (Programming)
- How to use the DM-Crypt encryption Linux File System (Linux)
- Linux Telnet access Windows 7 configuration procedure (Linux)
- Build RubyMine + Ruby On Rails + MySQL development environment under Windows (Server)
- Hibernate Search and Lucene quick introduction (Linux)
- Linux5 install MySQL 5.6 (RPM mode) (Database)
- Configuring the remote Linux server SSH key authentication to automatically login in Mac OS X (Server)
- Linux host dual LAN transceiver package ARP problem (Linux)
- Why use Docker (Programming)
- OpenSSH version smooth upgrade method (Linux)
- Linux system firewall defense network attacks (Linux)
- Java study notes: String (Programming)
- Linux non-root user uses less than 1024 ports (Linux)
- Linux System Getting Started Learning: the local time in between Perl and UNIX timestamp conversion (Linux)
- In Spring AOP example explanation (Programming)
- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.