High Availability Architecture implementation Commands:
Environment Details:
Source Cluster:
It is two node cluster and Grid Home & database versions are 19c
Node1 → sourcedb01.oracle.com
Node2 → sourcedb02.oracle.com
Source DB Name: sourcedb
Target Cluster:
It is two node cluster and Grid Home & database versions are 19c
Node1 → targetdb01.oracle.com
Node2 → targetdb02.oracle.com
Target DB Name: targetdb
Installed Goldengate Version: 19
Architecture: Classic Architecture
Source side GG services: EXT, PMP are extract and pump processes.
Target side GG services: REP is the replicat process.
Note: This implementation is considered that unidirectional goldengate replication is already setup and only implementing HA for Goldengate services.
Implementation Steps:
Download XAG agent binaries.
What is XAG: Oracle Grid Infrastructure Bundled Agents (XAG) are Oracle Grid Infrastructure components that provide the HA framework to application resources and resource types managed through the bundled agent management interface, AGCTL.
https://www.oracle.com/database/technologies/xag-agents-download.htmlTo configure Grid agent, application vip resource is needed, select a free ip from cluster’s public network and assign it to a vip host.
Source cluster application vip is gg-sourcedb-vip.oracle.com
Target Cluster Application vip is gg-targetdb-vip.oracle.com
Note: These application vip names should be added in the DNS before the configuration.
XAG installation
Copy the downloaded zip file in step-1 to source and target cluster nodes ( sourcedb01, sourcedb02, targetdb01 & targetdb02 ) stage directory and follow below steps in all the nodes.
Unzip the file to stage directory:
$ cd /u01/app/oracle/xag_stage
$ unzip -q p31215432_190000_Generic.zip
Create XAG installation directory:
$ mkdir -p /u01/app/oracle/xag
Add XAG agent to PATH variable and also update the .bash_profile for persistence:
$ export PATH=$PATH:/u01/app/oracle/xag/bin
Install XAG agent:
$ cd /u01/app/oracle/xag_stage/xag
$ ./xagsetup.sh --install --directory \
/u01/app/oracle/xag --all_nodes
Verify the XAG agent release version after installation
$ agctl query releaseversion
Add service & TNS alias as mentioned below.
Commands for Goldengate source database:
Commands for Goldengate Target database:
No comments:
Post a Comment