Oracle GoldenGate 18c Workshop Lab 3
Oracle GoldenGate 18c Workshop Lab 3
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
1
Check the ACFS status
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
2
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
3
[grid@rac01 ~]$ asmcmd
Note that the Manager process is only running on rac01 and not on rac02.
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
4
[oracle@rac02 ~]$ ps -ef |grep MGR.rpt |grep -v grep
[oracle@rac02 ~]$ netstat -an |grep 7809
Start the resource and test the relocation of the resource between nodes of the cluster
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
5
TARGET=ONLINE
STATE=ONLINE on rac02
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
6
CLEAN_TIMEOUT=60
CSS_CRITICAL=no
DEGREE=1
DELETE_TIMEOUT=60
DESCRIPTION=Application VIP
ENABLED=1
FAILOVER_DELAY=0
FAILURE_INTERVAL=0
FAILURE_THRESHOLD=0
GEN_USR_ORA_STATIC_VIP=
GEN_USR_ORA_VIP=
HOSTING_MEMBERS=
IGNORE_TARGET_ON_FAILURE=no
INSTANCE_FAILOVER=1
INTERMEDIATE_TIMEOUT=0
LOAD=1
LOGGING_LEVEL=1
MODIFY_TIMEOUT=60
NETWORK_RESOURCE=
NLS_LANG=
OFFLINE_CHECK_INTERVAL=0
PLACEMENT=balanced
RELOCATE_BY_DEPENDENCY=1
RELOCATE_KIND=offline
RESOURCE_GROUP=
RESTART_ATTEMPTS=0
RESTART_DELAY=0
SCRIPT_TIMEOUT=60
SERVER_CATEGORY=
SERVER_POOLS=*
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
7
START_CONCURRENCY=0
START_DEPENDENCIES=hard(ora.net1.network) pullup(ora.net1.network)
START_TIMEOUT=0
STOP_CONCURRENCY=0
STOP_DEPENDENCIES=hard(intermediate:ora.net1.network)
STOP_TIMEOUT=0
TARGET_DEFAULT=default
TYPE_VERSION=1.1
UPTIME_THRESHOLD=7d
USER_WORKLOAD=no
USE_STICKINESS=0
USR_ORA_ENV=
USR_ORA_VIP=192.168.56.130
VERSION=12.1.0.1.0
WORKLOAD_CPU=0
WORKLOAD_CPU_CAP=0
WORKLOAD_MEMORY_MAX=0
WORKLOAD_MEMORY_TARGET=0
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
8
Download and install Grid Infrastructure Agent for GoldenGate.
http://www.oracle.com/technetwork/database/database-technologies/clusterware/downloads/xag-agents-downloads-3636484.html
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
9
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
10
[oracle@rac01 xag]$ su - grid
Password:
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
11
Create the GoldenGate Resource via agctl.
[grid@rac01 xag]$ su - oracle
Password:
[oracle@rac01 bin]$ ./agctl add goldengate ogg_ha --gg_home /acfs_oh/app/goldengate --nodes rac01,rac02 --vip_name ogg_vip --
filesystems ora.acfs_dg.acfs_vol.acfs --databases ora.cdb1.db --oracle_home /acfs_oh/product/12.2.0/dbhome_1 --monitor_extracts
ext1,pump1 --critical_extracts ext1,pump1
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
12
[oracle@rac01 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is not running
Add variable GRID_HOME to the .bash_profile (on both rac01 and rac02)
[oracle@rac01 ~]$ vi .bash_profile
export ORACLE_HOME=/acfs_oh/product/12.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export GRID_HOME=/u01/app/12.2.0/grid
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
13
GGSCI (rac01.localdomain) 1> edit params ./GLOBALS
CHECKPOINTTABLE pdb2.c##oggadmin.chkptab
XAG_ENABLE
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
14
Request processed.
2019-01-13 12:03:37 INFO OGG-02407 CRS/XAG status: CRS-2677: Stop of 'xag.ogg_ha.goldengate' on 'rac01' succeeded.
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
15
[oracle@rac01 goldengate]$ ./ggsci
[oracle@rac01 bin]$ su -
Password:
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
16
[oracle@rac02 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is not running
Note: it may take a few minutes to start GoldenGate processes on node rac02 after failover
Additional Information:
https://www.oracle.com/technetwork/database/features/availability/maa-wp-gg-oracledbm-128760.pdf
Oracle GoldenGate 18c and GoldenGate Cloud Services Workshop Lab Exercise 3
17