SlideShare a Scribd company logo
1 of 55
1
GoldenGate 12c Advanced Workshop Lab Exercise 1
GoldenGate 12c Advanced Workshop
Hands-on Lab Exercise 1
Goldengate High Availability with ASM Cluster File System
2
GoldenGate 12c Advanced Workshop Lab Exercise 1
Check the ADVM Driver Status
[oracle@rac01 ogg]$ . oraenv
ORACLE_SID = [sourcedb] ? +ASM1
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@rac01 ogg]$ asmca
We can see that the ADVM Drivers are showing status as Not Installed and the Volumes and ASM Cluster File System tabs
are greyed out as well.
3
GoldenGate 12c Advanced Workshop Lab Exercise 1
The acfsdriverstate command also shows that the current OS kernel version does not support the version of ACFS
(12.1.0.2).
[oracle@rac01 bin]$ acfsdriverstate -orahome $ORACLE_HOME supported
ACFS-9459: ADVM/ACFS is not supported on this OS version: '4.1.12-37.4.1.el6uek.x86_64'
ACFS-9201: Not Supported
[oracle@rac01 bin]$ uname -a
Linux rac01.localdomain 4.1.12-37.4.1.el6uek.x86_64 #2 SMP Tue May 17 07:23:38 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
4
GoldenGate 12c Advanced Workshop Lab Exercise 1
Review MOS note - ACFS Support on OS Platforms (Certification Matrix).
(Doc ID 1369107.1)
Download and apply patch 22810422
5
GoldenGate 12c Advanced Workshop Lab Exercise 1
Update opatch version on both nodes of the RAC cluster
[oracle@rac01 bin]$ cd $ORACLE_HOME
[oracle@rac01 grid]$ cd OPatch/
[oracle@rac01 OPatch]$ ./opatch version
OPatch Version: 12.1.0.1.3
OPatch succeeded.
6
GoldenGate 12c Advanced Workshop Lab Exercise 1
[oracle@rac01 OPatch]$ pwd
/u01/app/12.1.0/grid/OPatch
[oracle@rac01 OPatch]$ su
Password:
[root@rac01 OPatch]# cd ..
[root@rac01 grid]# mv OPatch OPatch.old
[root@rac01 grid]# cd /media/sf_software/p6880880_121010_Linux-x86-64
[root@rac01 p6880880_121010_Linux-x86-64]# ls
OPatch
[root@rac01 p6880880_121010_Linux-x86-64]# cp -fR OPatch /u01/app/12.1.0/grid/
7
GoldenGate 12c Advanced Workshop Lab Exercise 1
[root@rac01 p6880880_121010_Linux-x86-64]# cd /u01/app/12.1.0/grid/
[root@rac01 grid]# chown -R oracle:oinstall OPatch
[root@rac01 grid]# exit
Exit
[oracle@rac01 OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.9
OPatch succeeded.
[root@rac01 22810422]# pwd
/media/sf_software/p22810422/22810422
Apply patch22810422 on both nodes of the RAC cluster (as root)
[root@rac01 22810422]# /u01/app/12.1.0/grid/OPatch/opatchauto apply -oh /u01/app/12.1.0/grid
Note : Ignore error messages which may appear like :
java.text.ParseException: Unparseable date: "2017.Jun.30 10:14:56 WST"
…
…
Executing OPatch prereq operations to verify patch applicability on home /u01/app/12.1.0/grid
Patch applicability verified successfully on home /u01/app/12.1.0/grid
8
GoldenGate 12c Advanced Workshop Lab Exercise 1
Bringing down CRS service on home /u01/app/12.1.0/grid
Prepatch operation log file location: /u01/app/12.1.0/grid/cfgtoollogs/crsconfig/crspatch_rac01_2017-06-26_04-02-53PM.log
CRS service brought down successfully on home /u01/app/12.1.0/grid
Start applying binary patch on home /u01/app/12.1.0/grid
Binary patch applied successfully on home /u01/app/12.1.0/grid
Starting CRS service on home /u01/app/12.1.0/grid
Postpatch operation log file location: /u01/app/12.1.0/grid/cfgtoollogs/crsconfig/crspatch_rac01_2017-06-26_04-05-55PM.log
CRS service started successfully on home /u01/app/12.1.0/grid
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:rac01
CRS Home:/u01/app/12.1.0/grid
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /media/sf_software/p22810422/22810422/22810422
Log: /u01/app/12.1.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-26_16-04-36PM_1.log
9
GoldenGate 12c Advanced Workshop Lab Exercise 1
OPatchauto session completed at Mon Jun 26 16:09:49 2017
Time taken to complete the session 8 minutes, 3 seconds
[root@rac01 22810422]# /u01/app/12.1.0/grid/OPatch/opatchauto apply -oh /u01/app/12.1.0/grid
Also apply the patch on rac02 (as root).
Verify the patch application
[root@rac01 22810422]# su – oracle
[oracle@rac01 ~]$ cd /u01/app/12.1.0/grid/OPatch
[oracle@rac02 OPatch]$ ./opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.9
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/12.1.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/12.1.0/grid/oraInst.loc
OPatch version : 12.2.0.1.9
OUI version : 12.1.0.2.0
Log file location : /u01/app/12.1.0/grid/cfgtoollogs/opatch/opatch2017-07-02_12-41-38PM_1.log
Lsinventory Output file location : /u01/app/12.1.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2017-07-02_12-41-38PM.txt
10
GoldenGate 12c Advanced Workshop Lab Exercise 1
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: rac01.localdomain
ARU platform id: 226
ARU platform description:: Linux x86-64
Installed Top-level Products (1):
Oracle Grid Infrastructure 12c 12.1.0.2.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch 22810422 : applied on Sun Jul 02 12:37:02 AWST 2017
Unique Patch ID: 20844425
Patch description: "ACFS Interim patch for 22810422"
Created on 12 Dec 2016, 11:28:23 hrs PST8PDT
Bugs fixed:
19452723, 18900953, 21208140, 19844362, 19526234, 18951113, 22810422
18899600, 20923224, 19517835, 18185024, 19013966, 19195735, 19001684
19509898, 22087780, 19053182, 20438706, 19593769, 19610001, 19475588
19811784, 18957085, 19279106, 20098064, 19184398, 22222222, 22198405
20140148, 21519796, 19450090, 19859183, 19502657, 18877486, 21231953
18915417, 19060056, 18955907, 19078259, 19919907, 19127216, 20010980
18934139, 19335268, 21555038, 20681968, 18851012, 19149476, 20952520
19526283, 19428756, 19183802, 19051391, 19690653, 19355146, 20314907
20402287, 19644505, 22198176, 19353057, 19201087, 19270227, 21233961
21124596, 19901825, 19610022, 19446719, 19649858, 18321597, 22319558
21076821, 19557156, 19469788, 19528981, 18510745, 21369858, 19134464
11
GoldenGate 12c Advanced Workshop Lab Exercise 1
--------------------------------------------------------------------------------
OPatch succeeded.
[oracle@rac01 OPatch]$ . oraenv
ORACLE_SID = [racdb1] ? +ASM1
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@rac01 OPatch]$ acfsdriverstate -orahome $ORACLE_HOME supported
ACFS-9200: Supported
Create the mount point on both nodes for the ACFS File System
[root@rac01 ~]# mkdir /ogg
[root@rac01 ~]# chown oracle:oinstall /ogg
[root@rac01 ~]# ssh root@rac02
root@rac02's password:
Last login: Mon Jun 26 15:59:47 2017 from rac01.localdomain
[root@rac02 ~]# mkdir /ogg
[root@rac02 ~]# chown oracle:oinstall /ogg
12
GoldenGate 12c Advanced Workshop Lab Exercise 1
Create the ACFS Volume and ACFS File System
 Create the ASM Disk Group
 Create the ACFS Volume
 Create the ASM Cluster File System
[oracle@rac01 OPatch]$ echo $ORACLE_SID
+ASM1
[oracle@rac01 OPatch]$ asmca
13
GoldenGate 12c Advanced Workshop Lab Exercise 1
14
GoldenGate 12c Advanced Workshop Lab Exercise 1
Click Create
15
GoldenGate 12c Advanced Workshop Lab Exercise 1
Change Allocation Unit Size to 4 MB
16
GoldenGate 12c Advanced Workshop Lab Exercise 1
17
GoldenGate 12c Advanced Workshop Lab Exercise 1
18
GoldenGate 12c Advanced Workshop Lab Exercise 1
Click Exit
19
GoldenGate 12c Advanced Workshop Lab Exercise 1
[oracle@rac01 asmca]$ asmcmd
ASMCMD> volcreate -G ACFS -s 4G oggvol
ASMCMD> volinfo --all
Diskgroup Name: ACFS
Volume Name: OGGVOL
Volume Device: /dev/asm/oggvol-439
State: ENABLED
Size (MB): 4096
Resize Unit (MB): 64
Redundancy: UNPROT
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:
ASMCMD> volinfo -G ACFS -a
Diskgroup Name: ACFS
Volume Name: OGGVOL
Volume Device: /dev/asm/oggvol-439
State: ENABLED
Size (MB): 4096
Resize Unit (MB): 64
Redundancy: UNPROT
20
GoldenGate 12c Advanced Workshop Lab Exercise 1
Stripe Columns: 8
Stripe Width (K): 1024
Usage: ACFS
Mountpath: /ogg
[oracle@rac01 OPatch]$ echo $ORACLE_SID
+ASM1
[oracle@rac01 OPatch]$ asmca
21
GoldenGate 12c Advanced Workshop Lab Exercise 1
22
GoldenGate 12c Advanced Workshop Lab Exercise 1
Click Create
23
GoldenGate 12c Advanced Workshop Lab Exercise 1
24
GoldenGate 12c Advanced Workshop Lab Exercise 1
25
GoldenGate 12c Advanced Workshop Lab Exercise 1
[root@rac01 ~]# /u01/app/oracle/cfgtoollogs/asmca/scripts/acfs_script.sh
ACFS file system /ogg is mounted on nodes rac01,rac02
Click on Exit
26
GoldenGate 12c Advanced Workshop Lab Exercise 1
Verify the ACFS /ogg file system
[oracle@rac01 asmca]$ df -h /ogg
Filesystem Size Used Avail Use% Mounted on
/dev/asm/oggvol-439 4.0G 85M 4.0G 3% /ogg
[oracle@rac01 asmca]$ ssh oracle@rac02
Last login: Sat Jul 1 18:42:31 2017 from rac01.localdomain
[oracle@rac02 ~]$ df -h /ogg
Filesystem Size Used Avail Use% Mounted on
/dev/asm/oggvol-439 4.0G 85M 4.0G 3% /ogg
Prepare the Oracle RAC Database for GoldenGate Replication
[oracle@rac01 asmca]$ . oraenv
ORACLE_SID = [+ASM1] ? racdb
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@rac01 asmca]$ export ORACLE_SID=racdb1
[oracle@rac01 asmca]$ sqlplus sys as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Mon Jul 3 08:39:50 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter password:
27
GoldenGate 12c Advanced Workshop Lab Exercise 1
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
SQL> alter database force logging;
Database altered.
SQL> alter database add supplemental log data;
Database altered.
SQL> alter system set enable_goldengate_replication=true sid='*';
System altered.
SQL> alter system set streams_pool_size=1024m scope=spfile sid='*';
System altered.
SQL> alter system set sga_target=1440m scope=spfile sid='*';
System altered.
SQL> alter system set remote_listener='rac-scan:1521' sid='*' scope=both;
System altered.
SQL> create user oggadmin identified by oracle;
28
GoldenGate 12c Advanced Workshop Lab Exercise 1
User created.
SQL> grant dba to oggadmin;
Grant succeeded.
SQL> exec dbms_goldengate_auth.grant_admin_privilege('OGGADMIN');
PL/SQL procedure successfully completed.
SQL> quit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
[oracle@rac01 22810422]$ srvctl stop database -d racdb
[oracle@rac01 22810422]$ srvctl start database -d racdb
Download Oracle GoldenGate 12.2.0.1
http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html
29
GoldenGate 12c Advanced Workshop Lab Exercise 1
30
GoldenGate 12c Advanced Workshop Lab Exercise 1
Install Oracle GoldenGate 12.2.0.1
[oracle@rac01 fbo_ggs_Linux_x64_shiphome]$ pwd
/media/sf_software/GoldenGate12c_Software/fbo_ggs_Linux_x64_shiphome
[oracle@rac01 fbo_ggs_Linux_x64_shiphome]$ ls
Disk1
[oracle@rac01 fbo_ggs_Linux_x64_shiphome]$ cd Disk1
[oracle@rac01 Disk1]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 2752 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2185 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-06-27_08-53-48AM. Please wait ...[oracle@rac01 Disk1]$
31
GoldenGate 12c Advanced Workshop Lab Exercise 1
32
GoldenGate 12c Advanced Workshop Lab Exercise 1
33
GoldenGate 12c Advanced Workshop Lab Exercise 1
Ignore the warning message about the /ogg directory not being empty. This is because the ‘lost+found’ directory was
automatically created and exists.
[oracle@rac01 asmca]$ cd /ogg
[oracle@rac01 ogg]$ ls
lost+found
34
GoldenGate 12c Advanced Workshop Lab Exercise 1
35
GoldenGate 12c Advanced Workshop Lab Exercise 1
36
GoldenGate 12c Advanced Workshop Lab Exercise 1
37
GoldenGate 12c Advanced Workshop Lab Exercise 1
38
GoldenGate 12c Advanced Workshop Lab Exercise 1
39
GoldenGate 12c Advanced Workshop Lab Exercise 1
40
GoldenGate 12c Advanced Workshop Lab Exercise 1
Edit the MGR parameter file
[oracle@rac01 xag]$ cd /ogg
[oracle@rac01 ogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO
Linux, x64, 64bit (optimized), Oracle 12c on Dec 12 2015 02:56:48
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
GGSCI (rac01.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
GGSCI (rac01.localdomain) 5> edit params mgr
PORT 7809
DYNAMICPORTLIST 7810-7890
LAGREPORTMINUTES 5
LAGINFOMINUTES 5
LAGCRITICALMINUTES 15
41
GoldenGate 12c Advanced Workshop Lab Exercise 1
AUTOSTART EXTRACT e*
AUTOSTART EXTRACT p*
AUTOSTART REPLICAT r*
AUTORESTART EXTRACT e
AUTORESTART EXTRACT p*
AUTORESTART REPLICAT r*
PURGEOLDEXTRACTS ./dirdat/* MINKEEPDAYS 1 USECHECKPOINTS
ACCESSRULE, PROG *, IPADDR *, ALLOW
GGSCI (rac01.localdomain) 6> stop mgr
Manager process is required by other GGS processes.
Are you sure you want to stop it (y/n)?y
Sending STOP request to MANAGER ...
Request processed.
Manager stopped.
GGSCI (rac01.localdomain) 7> start mgr
Manager started.
GGSCI (rac01.localdomain) 8> info mgr
Manager is running (IP port rac01.localdomain.7809, Process ID 1459).
42
GoldenGate 12c Advanced Workshop Lab Exercise 1
Create the Credential Store
GGSCI (rac01.localdomain) 2> add credentialstore
Credential store created in ./dircrd/.
GGSCI (rac01.localdomain) 4> alter credentialstore add user oggadmin@racdb alias oggadmin
Password:
Credential store in ./dircrd/ altered.
GGSCI (rac01.localdomain) 5> dblogin useridalias oggadmin
Successfully logged into database.
Create and start the Integrated Extract
GGSCI (rac01.localdomain as oggadmin@racdb2) 6> add extract ext1 integrated tranlog begin now
EXTRACT (Integrated) added.
GGSCI (rac01.localdomain as oggadmin@racdb2) 7> add exttrail ./dirdat/lt extract ext1
EXTTRAIL added.
GGSCI (rac01.localdomain as oggadmin@racdb2) 5> register extract ext1 database
2017-07-03 09:32:48 INFO OGG-02003 Extract EXT1 successfully registered with database at SCN 2301494.
43
GoldenGate 12c Advanced Workshop Lab Exercise 1
SQL> col capture_name format a40
SQL> select capture_name, start_scn,CAPTURED_SCN,status from dba_capture;
CAPTURE_NAME START_SCN CAPTURED_SCN STATUS
---------------------------------------- ---------- ------------ --------
OGG$CAP_EXT1 2301494 2301494 ENABLED
GGSCI (rac01.localdomain as oggadmin@racdb2) 10> edit params ext1
EXTRACT ext1
USERIDALIAS oggadmin
EXTTRAIL ./dirdat/lt
TABLE sh.customers;
GGSCI (rac01.localdomain as oggadmin@racdb2) 11> start ext1
Sending START request to MANAGER ...
EXTRACT EXT1 starting
GGSCI (rac01.localdomain as oggadmin@racdb2) 12> info ext1
EXTRACT EXT1 Initialized 2017-06-27 10:19 Status STARTING
Checkpoint Lag 00:00:00 (updated 00:08:53 ago)
Process ID 859
Log Read Checkpoint Oracle Integrated Redo Logs
2017-06-27 10:19:07
SCN 0.0 (0)
44
GoldenGate 12c Advanced Workshop Lab Exercise 1
GGSCI (rac01.localdomain as oggadmin@racdb2) 13> !
info ext1
EXTRACT EXT1 Initialized 2017-06-27 10:19 Status STARTING
Checkpoint Lag 00:00:00 (updated 00:08:57 ago)
Process ID 859
Log Read Checkpoint Oracle Integrated Redo Logs
2017-06-27 10:19:07
SCN 0.0 (0)
GGSCI (rac01.localdomain as oggadmin@racdb2) 14> !
info ext1
EXTRACT EXT1 Last Started 2017-06-27 10:28 Status RUNNING
Checkpoint Lag 00:00:06 (updated 00:00:01 ago)
Process ID 859
Log Read Checkpoint Oracle Integrated Redo Logs
2017-06-27 10:28:13
SCN 0.2253480 (2253480)
SQL> select capture_name, start_scn,CAPTURED_SCN,status from dba_capture;
CAPTURE_NAME START_SCN CAPTURED_SCN STATUS
---------------------------------------- ---------- ------------ --------
OGG$CAP_EXT1 2301494 2325224 ENABLED
SQL> select sid,serial#,capture_name,SGA_ALLOCATED,SGA_USED,BYTES_OF_REDO_MINED
45
GoldenGate 12c Advanced Workshop Lab Exercise 1
from v$goldengate_capture;
no rows selected
SQL> select inst_id,sid,serial#,capture_name,SGA_ALLOCATED,SGA_USED,BYTES_OF_REDO_MINED
from gv$goldengate_capture;
INST_ID SID SERIAL# CAPTURE_NAME
---------- ---------- ---------- ----------------------------------------
SGA_ALLOCATED SGA_USED
------------- ----------
BYTES_OF_REDO_MINED
----------------------------------------------------------------
2 79 14964 OGG$CAP_EXT1
1047541168 41001752
112234852
Note that the Manager process is only running on rac01 and not on rac02.
[oracle@rac01 ogg]$ ps -ef |grep MGR.rpt |grep -v grep
oracle 31775 1 0 08:57 ? 00:00:00 ./mgr PARAMFILE /ogg/dirprm/mgr.prm REPORTFILE /ogg/dirrpt/MGR.rpt PROCESSID MGR
USESUBDIRS
[oracle@rac01 ogg]$ netstat -an |grep -w 7809
tcp 0 0 :::7809 :::* LISTEN
[oracle@rac01 ogg]$ ssh oracle@rac02
Last login: Tue Jun 27 09:03:29 2017 from rac01.localdomain
46
GoldenGate 12c Advanced Workshop Lab Exercise 1
[oracle@rac02 ~]$ ps -ef |grep MGR.rpt |grep -v grep
[oracle@rac02 ~]$ netstat -an |grep -w 7809
Create the clusterware managed Application VIP type resource.
[oracle@rac01 ogg]$ su -
Password:
[root@rac01 ~]# cd /u01/app/12.1.0/grid/bin
[root@rac01 bin]# ./appvipcfg create -network=1 -ip=192.168.56.130 -vipname=ogg_vip -user=root -group=oinstall
[root@rac01 bin]# ./crsctl setperm resource ogg_vip -u user:oracle:r-x
Start the resource and test the relocation of the resource between nodes of the cluster
[root@rac01 bin]# ./crsctl start resource ogg_vip
CRS-2672: Attempting to start 'ogg_vip' on 'rac01'
CRS-2676: Start of 'ogg_vip' on 'rac01' succeeded
[root@rac01 bin]# ./crsctl status resource ogg_vip
NAME=ogg_vip
TYPE=app.appvipx.type
TARGET=ONLINE
STATE=ONLINE on rac01
47
GoldenGate 12c Advanced Workshop Lab Exercise 1
[root@rac01 bin]# ./crsctl relocate resource ogg_vip -n rac02
CRS-2673: Attempting to stop 'ogg_vip' on 'rac01'
CRS-2677: Stop of 'ogg_vip' on 'rac01' succeeded
CRS-2672: Attempting to start 'ogg_vip' on 'rac02'
CRS-2676: Start of 'ogg_vip' on 'rac02' succeeded
[root@rac01 bin]# ./crsctl status resource ogg_vip
NAME=ogg_vip
TYPE=app.appvipx.type
TARGET=ONLINE
STATE=ONLINE on rac02
[root@rac01 bin]# ./crsctl relocate resource ogg_vip -n rac01
CRS-2673: Attempting to stop 'ogg_vip' on 'rac02'
CRS-2677: Stop of 'ogg_vip' on 'rac02' succeeded
CRS-2672: Attempting to start 'ogg_vip' on 'rac01'
CRS-2676: Start of 'ogg_vip' on 'rac01' succeeded
Download and install Grid Infrastructure Agent for GoldenGate.
http://www.oracle.com/technetwork/database/database-technologies/clusterware/downloads/xag-agents-downloads-3636484.html
48
GoldenGate 12c Advanced Workshop Lab Exercise 1
49
GoldenGate 12c Advanced Workshop Lab Exercise 1
[oracle@rac01 ogg]$ cd $HOME
[oracle@rac01 ~]$ cp /media/sf_software/xagpack_72.zip .
[oracle@rac01 ~]$ unzip xagpack_72.zip
Archive: xagpack_72.zip
creating: xag/
inflating: xag/agmysqlas.pm
creating: xag/bin/
inflating: xag/bin/oerr.pl
creating: xag/template/
inflating: xag/template/app.appvip.type
…
…
…
inflating: xag/xagdiagcollection.pl
inflating: xag/agapache.pm
inflating: xag/agsiebsrvras.pm
inflating: xag/xagsetup.pl
[oracle@rac01 ~]$
[oracle@rac01 xag]$ pwd
/home/oracle/xag
[oracle@rac01 xag]$ ./xagsetup.sh --install --directory /u01/app/oracle/product/xag --all_nodes
Installing Oracle Grid Infrastructure Agents on: rac01
Installing Oracle Grid Infrastructure Agents on: rac02
Done.
50
GoldenGate 12c Advanced Workshop Lab Exercise 1
Create the GoldenGate Resource via agctl.
[oracle@rac01 bin]$ cd /u01/app/oracle/product/xag/bin
[oracle@rac01 bin]$ ls agctl*
agctl
[oracle@rac01 bin]$ ./agctl add goldengate ogg_ha --gg_home /ogg --nodes rac01,rac02 --vip_name ogg_vip --filesystems
ora.acfs.oggvol.acfs --databases ora.racdb.db --oracle_home /u01/app/oracle/product/12.1.0/dbhome_1 --monitor_extracts ext1 --
critical_extracts ext1
[oracle@rac01 bin]$ ./agctl start goldengate ogg_ha
[oracle@rac01 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is running on rac01
[oracle@rac01 bin]$ ./agctl config goldengate ogg_ha
GoldenGate location is: /ogg
GoldenGate instance type is: dual
Configured to run on Nodes: rac01 rac02
ORACLE_HOME location is: /u01/app/oracle/product/12.1.0/dbhome_1
Databases needed: ora.racdb.db
File System resources needed: ora.acfs.oggvol.acfs
VIP name: ogg_vip
EXTRACT groups to monitor: ext1
REPLICAT groups to monitor:
Critical EXTRACT groups: ext1
Critical REPLICAT groups:
Autostart on DataGuard role transition to PRIMARY: no
51
GoldenGate 12c Advanced Workshop Lab Exercise 1
Autostart JAgent: no
Integrate GoldenGate with Grid Infrastructure XAG.
[oracle@rac01 bin]$ cd /ogg
[oracle@rac01 ogg]$ ./ggsci
GGSCI (rac01.localdomain) 1> edit params ./GLOBALS
XAG_ENABLE
Exit from ggsci and launch ggsci again.
[oracle@rac01 ogg]$ ./ggsci
GGSCI (rac01.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt XAG
MANAGER RUNNING MANAGED/xag.ogg_ha.goldengate
EXTRACT RUNNING EXT1 00:00:10 00:00:09 CRITICAL
Check the XAG/Goldengate Integration is working.
GGSCI (rac01.localdomain) 2> stop mgr !
52
GoldenGate 12c Advanced Workshop Lab Exercise 1
Transparent Integration with XAG is enabled. Sending the command STOP MANAGER to XAG...
GGSCI (rac01.localdomain) 3> quit
[oracle@rac01 ogg]$ cd -
/u01/app/oracle/product/xag/bin
[oracle@rac01 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is not running
[oracle@rac01 bin]$ cd -
/ogg
[oracle@rac01 ogg]$ ./ggsci
GGSCI (rac01.localdomain) 3> start mgr
Transparent Integration with XAG is enabled. Sending the command START MANAGER to XAG...
GGSCI (rac01.localdomain) 2> quit
[oracle@rac01 ogg]$ cd -
/u01/app/oracle/product/xag/bin
[oracle@rac01 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is running on rac01
Test the Goldengate Failover by shutting down rac01 node.
Connect to rac02 and note that GoldenGate resource is currently running on rac01.
53
GoldenGate 12c Advanced Workshop Lab Exercise 1
[oracle@rac02 ~]$ cd /u01/app/oracle/product/xag/bin/
[oracle@rac02 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is running on rac01
As root connect to rac01 and shut down the node.
[oracle@rac01 bin]$ su -
Password:
[root@rac01 ~]# shutdown -h now
On rac02, note the failover of GoldenGate to rac02 is in progress.
[oracle@rac02 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is not running
[oracle@rac02 bin]$ ./agctl status goldengate ogg_ha
Goldengate instance 'ogg_ha' is running on rac02
[oracle@rac02 bin]$ cd /ogg
[oracle@rac02 ogg]$ ./ggsci
GGSCI (rac02.localdomain) 1> info all
54
GoldenGate 12c Advanced Workshop Lab Exercise 1
Program Status Group Lag at Chkpt Time Since Chkpt XAG
MANAGER RUNNING MANAGED/xag.ogg_ha.goldengate
EXTRACT RUNNING EXT1 00:00:09 00:00:02 CRITICAL
Remove the GoldenGate Resource.
[oracle@rac02 ogg]$ cd /u01/app/oracle/product/xag/bin/
[oracle@rac02 bin]$ ./agctl stop goldengate ogg_ha
[oracle@rac02 bin]$ cd /ogg
[oracle@rac02 ogg]$ ./ggsci
GGSCI (rac02.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt XAG
MANAGER STOPPED MANAGED/xag.ogg_ha.goldengate
EXTRACT STOPPED EXT1 00:00:08 00:00:22 CRITICAL
GGSCI (rac02.localdomain) 2> dblogin useridalias oggadmin
55
GoldenGate 12c Advanced Workshop Lab Exercise 1
Successfully logged into database.
GGSCI (rac02.localdomain as oggadmin@racdb1) 3> unregister extract ext1 database
2017-06-27 13:47:11 INFO OGG-01750 Successfully unregistered EXTRACT EXT1 from database.
GGSCI (rac02.localdomain as oggadmin@racdb1) 4> delete extract ext1
Deleted EXTRACT EXT1.
[oracle@rac02 ContentsXML]$ cd /u01/app/oracle/product/xag/bin
[oracle@rac02 bin]$ ./agctl remove goldengate ogg_ha
[oracle@rac02 bin]$ ./agctl status goldengate ogg_ha
XAG-212: Instance 'ogg_ha' is not yet registered.

More Related Content

Similar to GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx

DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerSteve Smith
 
How to debug ocfs2 hang problem
How to debug ocfs2 hang problemHow to debug ocfs2 hang problem
How to debug ocfs2 hang problemGang He
 
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案inwin stack
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!All Things Open
 
PuppetConf 2016: Nano Server, Puppet, and DSC
PuppetConf 2016: Nano Server, Puppet, and DSCPuppetConf 2016: Nano Server, Puppet, and DSC
PuppetConf 2016: Nano Server, Puppet, and DSCMichael Smith
 
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...Puppet
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsiChanaka Lasantha
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareNikhil Kumar
 
Femap API Ideas.pdf
Femap API Ideas.pdfFemap API Ideas.pdf
Femap API Ideas.pdfssuser0aadda
 
Adrian Mouat - Docker Tips and Tricks
 Adrian Mouat - Docker Tips and Tricks Adrian Mouat - Docker Tips and Tricks
Adrian Mouat - Docker Tips and TricksKevin Cross
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Voeurng Sovann
 
AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingSteve Smith
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Yury Velikanov
 
Oracle 12c Multi Process Multi Threaded
Oracle 12c Multi Process Multi ThreadedOracle 12c Multi Process Multi Threaded
Oracle 12c Multi Process Multi ThreadedMarkus Flechtner
 
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation ToolsEdwin Beekman
 
Top-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptxTop-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptxTier1 app
 
Docker on openstack by OpenSource Consulting
Docker on openstack by OpenSource ConsultingDocker on openstack by OpenSource Consulting
Docker on openstack by OpenSource ConsultingOpen Source Consulting
 
CoreOS, or How I Learned to Stop Worrying and Love Systemd
CoreOS, or How I Learned to Stop Worrying and Love SystemdCoreOS, or How I Learned to Stop Worrying and Love Systemd
CoreOS, or How I Learned to Stop Worrying and Love SystemdRichard Lister
 

Similar to GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx (20)

Docker: ao vivo e a cores
Docker: ao vivo e a coresDocker: ao vivo e a cores
Docker: ao vivo e a cores
 
DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to Docker
 
How to debug ocfs2 hang problem
How to debug ocfs2 hang problemHow to debug ocfs2 hang problem
How to debug ocfs2 hang problem
 
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!
 
PuppetConf 2016: Nano Server, Puppet, and DSC
PuppetConf 2016: Nano Server, Puppet, and DSCPuppetConf 2016: Nano Server, Puppet, and DSC
PuppetConf 2016: Nano Server, Puppet, and DSC
 
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
How Puppet Enables the Use of Lightweight Virtualized Containers - PuppetConf...
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
 
Femap API Ideas.pdf
Femap API Ideas.pdfFemap API Ideas.pdf
Femap API Ideas.pdf
 
Adrian Mouat - Docker Tips and Tricks
 Adrian Mouat - Docker Tips and Tricks Adrian Mouat - Docker Tips and Tricks
Adrian Mouat - Docker Tips and Tricks
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration training
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
 
AEO Training - 2023.pdf
AEO Training - 2023.pdfAEO Training - 2023.pdf
AEO Training - 2023.pdf
 
Oracle 12c Multi Process Multi Threaded
Oracle 12c Multi Process Multi ThreadedOracle 12c Multi Process Multi Threaded
Oracle 12c Multi Process Multi Threaded
 
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation Tools
 
Top-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptxTop-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptx
 
Docker on openstack by OpenSource Consulting
Docker on openstack by OpenSource ConsultingDocker on openstack by OpenSource Consulting
Docker on openstack by OpenSource Consulting
 
CoreOS, or How I Learned to Stop Worrying and Love Systemd
CoreOS, or How I Learned to Stop Worrying and Love SystemdCoreOS, or How I Learned to Stop Worrying and Love Systemd
CoreOS, or How I Learned to Stop Worrying and Love Systemd
 

More from tricantino1973

Oracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docxOracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docxtricantino1973
 
Oracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docxOracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docxtricantino1973
 
upgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdfupgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdftricantino1973
 
freetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeeefreetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeeetricantino1973
 
ASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdfASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdftricantino1973
 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_tricantino1973
 

More from tricantino1973 (6)

Oracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docxOracle-GoldenGate-18c-Workshop-Lab-16.docx
Oracle-GoldenGate-18c-Workshop-Lab-16.docx
 
Oracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docxOracle-GoldenGate-18c-Workshop-Lab-17.docx
Oracle-GoldenGate-18c-Workshop-Lab-17.docx
 
upgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdfupgrade_migrate_consolidate_19999c (1).pdf
upgrade_migrate_consolidate_19999c (1).pdf
 
freetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeeefreetools-170503222740.pdforacleeeeeeeee
freetools-170503222740.pdforacleeeeeeeee
 
ASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdfASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdf
 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_
 

Recently uploaded

The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)thephillipta
 
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶delhimunirka444
 
Jeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson
 
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...home
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...anilsa9823
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingLyneSun
 
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | DelhiFULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | DelhiSaketCallGirlsCallUs
 
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...anilsa9823
 
AaliyahBell_themist_v01.pdf .
AaliyahBell_themist_v01.pdf             .AaliyahBell_themist_v01.pdf             .
AaliyahBell_themist_v01.pdf .AaliyahB2
 
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607dollysharma2066
 
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...anilsa9823
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comthephillipta
 
Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...
Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...
Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...anilsa9823
 
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...anilsa9823
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024samlnance
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomdiscovermytutordmt
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKedwardsara83
 
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...anilsa9823
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design projecttbatkhuu1
 

Recently uploaded (20)

The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)
 
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
 
Jeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel Throwing
 
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to Sing
 
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | DelhiFULL NIGHT — 9999894380 Call Girls In Saket | Delhi
FULL NIGHT — 9999894380 Call Girls In Saket | Delhi
 
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
 
AaliyahBell_themist_v01.pdf .
AaliyahBell_themist_v01.pdf             .AaliyahBell_themist_v01.pdf             .
AaliyahBell_themist_v01.pdf .
 
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
 
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
 
RAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOT
RAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOTRAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOT
RAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOT
 
Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...
Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...
Lucknow 💋 Russian Call Girls Sushant Golf City - 450+ Call Girl Cash Payment ...
 
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel room
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
 
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design project
 

GoldenGate-12c-Advanced-Workshop-Lab-Exercise-1.docx

  • 1. 1 GoldenGate 12c Advanced Workshop Lab Exercise 1 GoldenGate 12c Advanced Workshop Hands-on Lab Exercise 1 Goldengate High Availability with ASM Cluster File System
  • 2. 2 GoldenGate 12c Advanced Workshop Lab Exercise 1 Check the ADVM Driver Status [oracle@rac01 ogg]$ . oraenv ORACLE_SID = [sourcedb] ? +ASM1 The Oracle base remains unchanged with value /u01/app/oracle [oracle@rac01 ogg]$ asmca We can see that the ADVM Drivers are showing status as Not Installed and the Volumes and ASM Cluster File System tabs are greyed out as well.
  • 3. 3 GoldenGate 12c Advanced Workshop Lab Exercise 1 The acfsdriverstate command also shows that the current OS kernel version does not support the version of ACFS (12.1.0.2). [oracle@rac01 bin]$ acfsdriverstate -orahome $ORACLE_HOME supported ACFS-9459: ADVM/ACFS is not supported on this OS version: '4.1.12-37.4.1.el6uek.x86_64' ACFS-9201: Not Supported [oracle@rac01 bin]$ uname -a Linux rac01.localdomain 4.1.12-37.4.1.el6uek.x86_64 #2 SMP Tue May 17 07:23:38 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
  • 4. 4 GoldenGate 12c Advanced Workshop Lab Exercise 1 Review MOS note - ACFS Support on OS Platforms (Certification Matrix). (Doc ID 1369107.1) Download and apply patch 22810422
  • 5. 5 GoldenGate 12c Advanced Workshop Lab Exercise 1 Update opatch version on both nodes of the RAC cluster [oracle@rac01 bin]$ cd $ORACLE_HOME [oracle@rac01 grid]$ cd OPatch/ [oracle@rac01 OPatch]$ ./opatch version OPatch Version: 12.1.0.1.3 OPatch succeeded.
  • 6. 6 GoldenGate 12c Advanced Workshop Lab Exercise 1 [oracle@rac01 OPatch]$ pwd /u01/app/12.1.0/grid/OPatch [oracle@rac01 OPatch]$ su Password: [root@rac01 OPatch]# cd .. [root@rac01 grid]# mv OPatch OPatch.old [root@rac01 grid]# cd /media/sf_software/p6880880_121010_Linux-x86-64 [root@rac01 p6880880_121010_Linux-x86-64]# ls OPatch [root@rac01 p6880880_121010_Linux-x86-64]# cp -fR OPatch /u01/app/12.1.0/grid/
  • 7. 7 GoldenGate 12c Advanced Workshop Lab Exercise 1 [root@rac01 p6880880_121010_Linux-x86-64]# cd /u01/app/12.1.0/grid/ [root@rac01 grid]# chown -R oracle:oinstall OPatch [root@rac01 grid]# exit Exit [oracle@rac01 OPatch]$ ./opatch version OPatch Version: 12.2.0.1.9 OPatch succeeded. [root@rac01 22810422]# pwd /media/sf_software/p22810422/22810422 Apply patch22810422 on both nodes of the RAC cluster (as root) [root@rac01 22810422]# /u01/app/12.1.0/grid/OPatch/opatchauto apply -oh /u01/app/12.1.0/grid Note : Ignore error messages which may appear like : java.text.ParseException: Unparseable date: "2017.Jun.30 10:14:56 WST" … … Executing OPatch prereq operations to verify patch applicability on home /u01/app/12.1.0/grid Patch applicability verified successfully on home /u01/app/12.1.0/grid
  • 8. 8 GoldenGate 12c Advanced Workshop Lab Exercise 1 Bringing down CRS service on home /u01/app/12.1.0/grid Prepatch operation log file location: /u01/app/12.1.0/grid/cfgtoollogs/crsconfig/crspatch_rac01_2017-06-26_04-02-53PM.log CRS service brought down successfully on home /u01/app/12.1.0/grid Start applying binary patch on home /u01/app/12.1.0/grid Binary patch applied successfully on home /u01/app/12.1.0/grid Starting CRS service on home /u01/app/12.1.0/grid Postpatch operation log file location: /u01/app/12.1.0/grid/cfgtoollogs/crsconfig/crspatch_rac01_2017-06-26_04-05-55PM.log CRS service started successfully on home /u01/app/12.1.0/grid OPatchAuto successful. --------------------------------Summary-------------------------------- Patching is completed successfully. Please find the summary as follows: Host:rac01 CRS Home:/u01/app/12.1.0/grid Summary: ==Following patches were SUCCESSFULLY applied: Patch: /media/sf_software/p22810422/22810422/22810422 Log: /u01/app/12.1.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-26_16-04-36PM_1.log
  • 9. 9 GoldenGate 12c Advanced Workshop Lab Exercise 1 OPatchauto session completed at Mon Jun 26 16:09:49 2017 Time taken to complete the session 8 minutes, 3 seconds [root@rac01 22810422]# /u01/app/12.1.0/grid/OPatch/opatchauto apply -oh /u01/app/12.1.0/grid Also apply the patch on rac02 (as root). Verify the patch application [root@rac01 22810422]# su – oracle [oracle@rac01 ~]$ cd /u01/app/12.1.0/grid/OPatch [oracle@rac02 OPatch]$ ./opatch lsinventory Oracle Interim Patch Installer version 12.2.0.1.9 Copyright (c) 2017, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/12.1.0/grid Central Inventory : /u01/app/oraInventory from : /u01/app/12.1.0/grid/oraInst.loc OPatch version : 12.2.0.1.9 OUI version : 12.1.0.2.0 Log file location : /u01/app/12.1.0/grid/cfgtoollogs/opatch/opatch2017-07-02_12-41-38PM_1.log Lsinventory Output file location : /u01/app/12.1.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2017-07-02_12-41-38PM.txt
  • 10. 10 GoldenGate 12c Advanced Workshop Lab Exercise 1 -------------------------------------------------------------------------------- Local Machine Information:: Hostname: rac01.localdomain ARU platform id: 226 ARU platform description:: Linux x86-64 Installed Top-level Products (1): Oracle Grid Infrastructure 12c 12.1.0.2.0 There are 1 products installed in this Oracle Home. Interim patches (1) : Patch 22810422 : applied on Sun Jul 02 12:37:02 AWST 2017 Unique Patch ID: 20844425 Patch description: "ACFS Interim patch for 22810422" Created on 12 Dec 2016, 11:28:23 hrs PST8PDT Bugs fixed: 19452723, 18900953, 21208140, 19844362, 19526234, 18951113, 22810422 18899600, 20923224, 19517835, 18185024, 19013966, 19195735, 19001684 19509898, 22087780, 19053182, 20438706, 19593769, 19610001, 19475588 19811784, 18957085, 19279106, 20098064, 19184398, 22222222, 22198405 20140148, 21519796, 19450090, 19859183, 19502657, 18877486, 21231953 18915417, 19060056, 18955907, 19078259, 19919907, 19127216, 20010980 18934139, 19335268, 21555038, 20681968, 18851012, 19149476, 20952520 19526283, 19428756, 19183802, 19051391, 19690653, 19355146, 20314907 20402287, 19644505, 22198176, 19353057, 19201087, 19270227, 21233961 21124596, 19901825, 19610022, 19446719, 19649858, 18321597, 22319558 21076821, 19557156, 19469788, 19528981, 18510745, 21369858, 19134464
  • 11. 11 GoldenGate 12c Advanced Workshop Lab Exercise 1 -------------------------------------------------------------------------------- OPatch succeeded. [oracle@rac01 OPatch]$ . oraenv ORACLE_SID = [racdb1] ? +ASM1 The Oracle base remains unchanged with value /u01/app/oracle [oracle@rac01 OPatch]$ acfsdriverstate -orahome $ORACLE_HOME supported ACFS-9200: Supported Create the mount point on both nodes for the ACFS File System [root@rac01 ~]# mkdir /ogg [root@rac01 ~]# chown oracle:oinstall /ogg [root@rac01 ~]# ssh root@rac02 root@rac02's password: Last login: Mon Jun 26 15:59:47 2017 from rac01.localdomain [root@rac02 ~]# mkdir /ogg [root@rac02 ~]# chown oracle:oinstall /ogg
  • 12. 12 GoldenGate 12c Advanced Workshop Lab Exercise 1 Create the ACFS Volume and ACFS File System  Create the ASM Disk Group  Create the ACFS Volume  Create the ASM Cluster File System [oracle@rac01 OPatch]$ echo $ORACLE_SID +ASM1 [oracle@rac01 OPatch]$ asmca
  • 13. 13 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 14. 14 GoldenGate 12c Advanced Workshop Lab Exercise 1 Click Create
  • 15. 15 GoldenGate 12c Advanced Workshop Lab Exercise 1 Change Allocation Unit Size to 4 MB
  • 16. 16 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 17. 17 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 18. 18 GoldenGate 12c Advanced Workshop Lab Exercise 1 Click Exit
  • 19. 19 GoldenGate 12c Advanced Workshop Lab Exercise 1 [oracle@rac01 asmca]$ asmcmd ASMCMD> volcreate -G ACFS -s 4G oggvol ASMCMD> volinfo --all Diskgroup Name: ACFS Volume Name: OGGVOL Volume Device: /dev/asm/oggvol-439 State: ENABLED Size (MB): 4096 Resize Unit (MB): 64 Redundancy: UNPROT Stripe Columns: 8 Stripe Width (K): 1024 Usage: Mountpath: ASMCMD> volinfo -G ACFS -a Diskgroup Name: ACFS Volume Name: OGGVOL Volume Device: /dev/asm/oggvol-439 State: ENABLED Size (MB): 4096 Resize Unit (MB): 64 Redundancy: UNPROT
  • 20. 20 GoldenGate 12c Advanced Workshop Lab Exercise 1 Stripe Columns: 8 Stripe Width (K): 1024 Usage: ACFS Mountpath: /ogg [oracle@rac01 OPatch]$ echo $ORACLE_SID +ASM1 [oracle@rac01 OPatch]$ asmca
  • 21. 21 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 22. 22 GoldenGate 12c Advanced Workshop Lab Exercise 1 Click Create
  • 23. 23 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 24. 24 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 25. 25 GoldenGate 12c Advanced Workshop Lab Exercise 1 [root@rac01 ~]# /u01/app/oracle/cfgtoollogs/asmca/scripts/acfs_script.sh ACFS file system /ogg is mounted on nodes rac01,rac02 Click on Exit
  • 26. 26 GoldenGate 12c Advanced Workshop Lab Exercise 1 Verify the ACFS /ogg file system [oracle@rac01 asmca]$ df -h /ogg Filesystem Size Used Avail Use% Mounted on /dev/asm/oggvol-439 4.0G 85M 4.0G 3% /ogg [oracle@rac01 asmca]$ ssh oracle@rac02 Last login: Sat Jul 1 18:42:31 2017 from rac01.localdomain [oracle@rac02 ~]$ df -h /ogg Filesystem Size Used Avail Use% Mounted on /dev/asm/oggvol-439 4.0G 85M 4.0G 3% /ogg Prepare the Oracle RAC Database for GoldenGate Replication [oracle@rac01 asmca]$ . oraenv ORACLE_SID = [+ASM1] ? racdb The Oracle base remains unchanged with value /u01/app/oracle [oracle@rac01 asmca]$ export ORACLE_SID=racdb1 [oracle@rac01 asmca]$ sqlplus sys as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Mon Jul 3 08:39:50 2017 Copyright (c) 1982, 2014, Oracle. All rights reserved. Enter password:
  • 27. 27 GoldenGate 12c Advanced Workshop Lab Exercise 1 Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options SQL> alter database force logging; Database altered. SQL> alter database add supplemental log data; Database altered. SQL> alter system set enable_goldengate_replication=true sid='*'; System altered. SQL> alter system set streams_pool_size=1024m scope=spfile sid='*'; System altered. SQL> alter system set sga_target=1440m scope=spfile sid='*'; System altered. SQL> alter system set remote_listener='rac-scan:1521' sid='*' scope=both; System altered. SQL> create user oggadmin identified by oracle;
  • 28. 28 GoldenGate 12c Advanced Workshop Lab Exercise 1 User created. SQL> grant dba to oggadmin; Grant succeeded. SQL> exec dbms_goldengate_auth.grant_admin_privilege('OGGADMIN'); PL/SQL procedure successfully completed. SQL> quit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options [oracle@rac01 22810422]$ srvctl stop database -d racdb [oracle@rac01 22810422]$ srvctl start database -d racdb Download Oracle GoldenGate 12.2.0.1 http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html
  • 29. 29 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 30. 30 GoldenGate 12c Advanced Workshop Lab Exercise 1 Install Oracle GoldenGate 12.2.0.1 [oracle@rac01 fbo_ggs_Linux_x64_shiphome]$ pwd /media/sf_software/GoldenGate12c_Software/fbo_ggs_Linux_x64_shiphome [oracle@rac01 fbo_ggs_Linux_x64_shiphome]$ ls Disk1 [oracle@rac01 fbo_ggs_Linux_x64_shiphome]$ cd Disk1 [oracle@rac01 Disk1]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 2752 MB Passed Checking swap space: must be greater than 150 MB. Actual 2185 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-06-27_08-53-48AM. Please wait ...[oracle@rac01 Disk1]$
  • 31. 31 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 32. 32 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 33. 33 GoldenGate 12c Advanced Workshop Lab Exercise 1 Ignore the warning message about the /ogg directory not being empty. This is because the ‘lost+found’ directory was automatically created and exists. [oracle@rac01 asmca]$ cd /ogg [oracle@rac01 ogg]$ ls lost+found
  • 34. 34 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 35. 35 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 36. 36 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 37. 37 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 38. 38 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 39. 39 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 40. 40 GoldenGate 12c Advanced Workshop Lab Exercise 1 Edit the MGR parameter file [oracle@rac01 xag]$ cd /ogg [oracle@rac01 ogg]$ ./ggsci Oracle GoldenGate Command Interpreter for Oracle Version 12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO Linux, x64, 64bit (optimized), Oracle 12c on Dec 12 2015 02:56:48 Operating system character set identified as UTF-8. Copyright (C) 1995, 2015, Oracle and/or its affiliates. All rights reserved. GGSCI (rac01.localdomain) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING GGSCI (rac01.localdomain) 5> edit params mgr PORT 7809 DYNAMICPORTLIST 7810-7890 LAGREPORTMINUTES 5 LAGINFOMINUTES 5 LAGCRITICALMINUTES 15
  • 41. 41 GoldenGate 12c Advanced Workshop Lab Exercise 1 AUTOSTART EXTRACT e* AUTOSTART EXTRACT p* AUTOSTART REPLICAT r* AUTORESTART EXTRACT e AUTORESTART EXTRACT p* AUTORESTART REPLICAT r* PURGEOLDEXTRACTS ./dirdat/* MINKEEPDAYS 1 USECHECKPOINTS ACCESSRULE, PROG *, IPADDR *, ALLOW GGSCI (rac01.localdomain) 6> stop mgr Manager process is required by other GGS processes. Are you sure you want to stop it (y/n)?y Sending STOP request to MANAGER ... Request processed. Manager stopped. GGSCI (rac01.localdomain) 7> start mgr Manager started. GGSCI (rac01.localdomain) 8> info mgr Manager is running (IP port rac01.localdomain.7809, Process ID 1459).
  • 42. 42 GoldenGate 12c Advanced Workshop Lab Exercise 1 Create the Credential Store GGSCI (rac01.localdomain) 2> add credentialstore Credential store created in ./dircrd/. GGSCI (rac01.localdomain) 4> alter credentialstore add user oggadmin@racdb alias oggadmin Password: Credential store in ./dircrd/ altered. GGSCI (rac01.localdomain) 5> dblogin useridalias oggadmin Successfully logged into database. Create and start the Integrated Extract GGSCI (rac01.localdomain as oggadmin@racdb2) 6> add extract ext1 integrated tranlog begin now EXTRACT (Integrated) added. GGSCI (rac01.localdomain as oggadmin@racdb2) 7> add exttrail ./dirdat/lt extract ext1 EXTTRAIL added. GGSCI (rac01.localdomain as oggadmin@racdb2) 5> register extract ext1 database 2017-07-03 09:32:48 INFO OGG-02003 Extract EXT1 successfully registered with database at SCN 2301494.
  • 43. 43 GoldenGate 12c Advanced Workshop Lab Exercise 1 SQL> col capture_name format a40 SQL> select capture_name, start_scn,CAPTURED_SCN,status from dba_capture; CAPTURE_NAME START_SCN CAPTURED_SCN STATUS ---------------------------------------- ---------- ------------ -------- OGG$CAP_EXT1 2301494 2301494 ENABLED GGSCI (rac01.localdomain as oggadmin@racdb2) 10> edit params ext1 EXTRACT ext1 USERIDALIAS oggadmin EXTTRAIL ./dirdat/lt TABLE sh.customers; GGSCI (rac01.localdomain as oggadmin@racdb2) 11> start ext1 Sending START request to MANAGER ... EXTRACT EXT1 starting GGSCI (rac01.localdomain as oggadmin@racdb2) 12> info ext1 EXTRACT EXT1 Initialized 2017-06-27 10:19 Status STARTING Checkpoint Lag 00:00:00 (updated 00:08:53 ago) Process ID 859 Log Read Checkpoint Oracle Integrated Redo Logs 2017-06-27 10:19:07 SCN 0.0 (0)
  • 44. 44 GoldenGate 12c Advanced Workshop Lab Exercise 1 GGSCI (rac01.localdomain as oggadmin@racdb2) 13> ! info ext1 EXTRACT EXT1 Initialized 2017-06-27 10:19 Status STARTING Checkpoint Lag 00:00:00 (updated 00:08:57 ago) Process ID 859 Log Read Checkpoint Oracle Integrated Redo Logs 2017-06-27 10:19:07 SCN 0.0 (0) GGSCI (rac01.localdomain as oggadmin@racdb2) 14> ! info ext1 EXTRACT EXT1 Last Started 2017-06-27 10:28 Status RUNNING Checkpoint Lag 00:00:06 (updated 00:00:01 ago) Process ID 859 Log Read Checkpoint Oracle Integrated Redo Logs 2017-06-27 10:28:13 SCN 0.2253480 (2253480) SQL> select capture_name, start_scn,CAPTURED_SCN,status from dba_capture; CAPTURE_NAME START_SCN CAPTURED_SCN STATUS ---------------------------------------- ---------- ------------ -------- OGG$CAP_EXT1 2301494 2325224 ENABLED SQL> select sid,serial#,capture_name,SGA_ALLOCATED,SGA_USED,BYTES_OF_REDO_MINED
  • 45. 45 GoldenGate 12c Advanced Workshop Lab Exercise 1 from v$goldengate_capture; no rows selected SQL> select inst_id,sid,serial#,capture_name,SGA_ALLOCATED,SGA_USED,BYTES_OF_REDO_MINED from gv$goldengate_capture; INST_ID SID SERIAL# CAPTURE_NAME ---------- ---------- ---------- ---------------------------------------- SGA_ALLOCATED SGA_USED ------------- ---------- BYTES_OF_REDO_MINED ---------------------------------------------------------------- 2 79 14964 OGG$CAP_EXT1 1047541168 41001752 112234852 Note that the Manager process is only running on rac01 and not on rac02. [oracle@rac01 ogg]$ ps -ef |grep MGR.rpt |grep -v grep oracle 31775 1 0 08:57 ? 00:00:00 ./mgr PARAMFILE /ogg/dirprm/mgr.prm REPORTFILE /ogg/dirrpt/MGR.rpt PROCESSID MGR USESUBDIRS [oracle@rac01 ogg]$ netstat -an |grep -w 7809 tcp 0 0 :::7809 :::* LISTEN [oracle@rac01 ogg]$ ssh oracle@rac02 Last login: Tue Jun 27 09:03:29 2017 from rac01.localdomain
  • 46. 46 GoldenGate 12c Advanced Workshop Lab Exercise 1 [oracle@rac02 ~]$ ps -ef |grep MGR.rpt |grep -v grep [oracle@rac02 ~]$ netstat -an |grep -w 7809 Create the clusterware managed Application VIP type resource. [oracle@rac01 ogg]$ su - Password: [root@rac01 ~]# cd /u01/app/12.1.0/grid/bin [root@rac01 bin]# ./appvipcfg create -network=1 -ip=192.168.56.130 -vipname=ogg_vip -user=root -group=oinstall [root@rac01 bin]# ./crsctl setperm resource ogg_vip -u user:oracle:r-x Start the resource and test the relocation of the resource between nodes of the cluster [root@rac01 bin]# ./crsctl start resource ogg_vip CRS-2672: Attempting to start 'ogg_vip' on 'rac01' CRS-2676: Start of 'ogg_vip' on 'rac01' succeeded [root@rac01 bin]# ./crsctl status resource ogg_vip NAME=ogg_vip TYPE=app.appvipx.type TARGET=ONLINE STATE=ONLINE on rac01
  • 47. 47 GoldenGate 12c Advanced Workshop Lab Exercise 1 [root@rac01 bin]# ./crsctl relocate resource ogg_vip -n rac02 CRS-2673: Attempting to stop 'ogg_vip' on 'rac01' CRS-2677: Stop of 'ogg_vip' on 'rac01' succeeded CRS-2672: Attempting to start 'ogg_vip' on 'rac02' CRS-2676: Start of 'ogg_vip' on 'rac02' succeeded [root@rac01 bin]# ./crsctl status resource ogg_vip NAME=ogg_vip TYPE=app.appvipx.type TARGET=ONLINE STATE=ONLINE on rac02 [root@rac01 bin]# ./crsctl relocate resource ogg_vip -n rac01 CRS-2673: Attempting to stop 'ogg_vip' on 'rac02' CRS-2677: Stop of 'ogg_vip' on 'rac02' succeeded CRS-2672: Attempting to start 'ogg_vip' on 'rac01' CRS-2676: Start of 'ogg_vip' on 'rac01' succeeded Download and install Grid Infrastructure Agent for GoldenGate. http://www.oracle.com/technetwork/database/database-technologies/clusterware/downloads/xag-agents-downloads-3636484.html
  • 48. 48 GoldenGate 12c Advanced Workshop Lab Exercise 1
  • 49. 49 GoldenGate 12c Advanced Workshop Lab Exercise 1 [oracle@rac01 ogg]$ cd $HOME [oracle@rac01 ~]$ cp /media/sf_software/xagpack_72.zip . [oracle@rac01 ~]$ unzip xagpack_72.zip Archive: xagpack_72.zip creating: xag/ inflating: xag/agmysqlas.pm creating: xag/bin/ inflating: xag/bin/oerr.pl creating: xag/template/ inflating: xag/template/app.appvip.type … … … inflating: xag/xagdiagcollection.pl inflating: xag/agapache.pm inflating: xag/agsiebsrvras.pm inflating: xag/xagsetup.pl [oracle@rac01 ~]$ [oracle@rac01 xag]$ pwd /home/oracle/xag [oracle@rac01 xag]$ ./xagsetup.sh --install --directory /u01/app/oracle/product/xag --all_nodes Installing Oracle Grid Infrastructure Agents on: rac01 Installing Oracle Grid Infrastructure Agents on: rac02 Done.
  • 50. 50 GoldenGate 12c Advanced Workshop Lab Exercise 1 Create the GoldenGate Resource via agctl. [oracle@rac01 bin]$ cd /u01/app/oracle/product/xag/bin [oracle@rac01 bin]$ ls agctl* agctl [oracle@rac01 bin]$ ./agctl add goldengate ogg_ha --gg_home /ogg --nodes rac01,rac02 --vip_name ogg_vip --filesystems ora.acfs.oggvol.acfs --databases ora.racdb.db --oracle_home /u01/app/oracle/product/12.1.0/dbhome_1 --monitor_extracts ext1 -- critical_extracts ext1 [oracle@rac01 bin]$ ./agctl start goldengate ogg_ha [oracle@rac01 bin]$ ./agctl status goldengate ogg_ha Goldengate instance 'ogg_ha' is running on rac01 [oracle@rac01 bin]$ ./agctl config goldengate ogg_ha GoldenGate location is: /ogg GoldenGate instance type is: dual Configured to run on Nodes: rac01 rac02 ORACLE_HOME location is: /u01/app/oracle/product/12.1.0/dbhome_1 Databases needed: ora.racdb.db File System resources needed: ora.acfs.oggvol.acfs VIP name: ogg_vip EXTRACT groups to monitor: ext1 REPLICAT groups to monitor: Critical EXTRACT groups: ext1 Critical REPLICAT groups: Autostart on DataGuard role transition to PRIMARY: no
  • 51. 51 GoldenGate 12c Advanced Workshop Lab Exercise 1 Autostart JAgent: no Integrate GoldenGate with Grid Infrastructure XAG. [oracle@rac01 bin]$ cd /ogg [oracle@rac01 ogg]$ ./ggsci GGSCI (rac01.localdomain) 1> edit params ./GLOBALS XAG_ENABLE Exit from ggsci and launch ggsci again. [oracle@rac01 ogg]$ ./ggsci GGSCI (rac01.localdomain) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt XAG MANAGER RUNNING MANAGED/xag.ogg_ha.goldengate EXTRACT RUNNING EXT1 00:00:10 00:00:09 CRITICAL Check the XAG/Goldengate Integration is working. GGSCI (rac01.localdomain) 2> stop mgr !
  • 52. 52 GoldenGate 12c Advanced Workshop Lab Exercise 1 Transparent Integration with XAG is enabled. Sending the command STOP MANAGER to XAG... GGSCI (rac01.localdomain) 3> quit [oracle@rac01 ogg]$ cd - /u01/app/oracle/product/xag/bin [oracle@rac01 bin]$ ./agctl status goldengate ogg_ha Goldengate instance 'ogg_ha' is not running [oracle@rac01 bin]$ cd - /ogg [oracle@rac01 ogg]$ ./ggsci GGSCI (rac01.localdomain) 3> start mgr Transparent Integration with XAG is enabled. Sending the command START MANAGER to XAG... GGSCI (rac01.localdomain) 2> quit [oracle@rac01 ogg]$ cd - /u01/app/oracle/product/xag/bin [oracle@rac01 bin]$ ./agctl status goldengate ogg_ha Goldengate instance 'ogg_ha' is running on rac01 Test the Goldengate Failover by shutting down rac01 node. Connect to rac02 and note that GoldenGate resource is currently running on rac01.
  • 53. 53 GoldenGate 12c Advanced Workshop Lab Exercise 1 [oracle@rac02 ~]$ cd /u01/app/oracle/product/xag/bin/ [oracle@rac02 bin]$ ./agctl status goldengate ogg_ha Goldengate instance 'ogg_ha' is running on rac01 As root connect to rac01 and shut down the node. [oracle@rac01 bin]$ su - Password: [root@rac01 ~]# shutdown -h now On rac02, note the failover of GoldenGate to rac02 is in progress. [oracle@rac02 bin]$ ./agctl status goldengate ogg_ha Goldengate instance 'ogg_ha' is not running [oracle@rac02 bin]$ ./agctl status goldengate ogg_ha Goldengate instance 'ogg_ha' is running on rac02 [oracle@rac02 bin]$ cd /ogg [oracle@rac02 ogg]$ ./ggsci GGSCI (rac02.localdomain) 1> info all
  • 54. 54 GoldenGate 12c Advanced Workshop Lab Exercise 1 Program Status Group Lag at Chkpt Time Since Chkpt XAG MANAGER RUNNING MANAGED/xag.ogg_ha.goldengate EXTRACT RUNNING EXT1 00:00:09 00:00:02 CRITICAL Remove the GoldenGate Resource. [oracle@rac02 ogg]$ cd /u01/app/oracle/product/xag/bin/ [oracle@rac02 bin]$ ./agctl stop goldengate ogg_ha [oracle@rac02 bin]$ cd /ogg [oracle@rac02 ogg]$ ./ggsci GGSCI (rac02.localdomain) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt XAG MANAGER STOPPED MANAGED/xag.ogg_ha.goldengate EXTRACT STOPPED EXT1 00:00:08 00:00:22 CRITICAL GGSCI (rac02.localdomain) 2> dblogin useridalias oggadmin
  • 55. 55 GoldenGate 12c Advanced Workshop Lab Exercise 1 Successfully logged into database. GGSCI (rac02.localdomain as oggadmin@racdb1) 3> unregister extract ext1 database 2017-06-27 13:47:11 INFO OGG-01750 Successfully unregistered EXTRACT EXT1 from database. GGSCI (rac02.localdomain as oggadmin@racdb1) 4> delete extract ext1 Deleted EXTRACT EXT1. [oracle@rac02 ContentsXML]$ cd /u01/app/oracle/product/xag/bin [oracle@rac02 bin]$ ./agctl remove goldengate ogg_ha [oracle@rac02 bin]$ ./agctl status goldengate ogg_ha XAG-212: Instance 'ogg_ha' is not yet registered.