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
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
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
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]$
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
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
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.