first perfom steps mentioned in

https://dbatracker.com/2020/10/14/golden-gate-plugging-deployment-for-oem-13c/

https://dbatracker.com/2020/10/14/installing-oracle-goldengate-monitor-agent/

go to monitor agent directory

[oracle@oel6-rac01 ogg_agent]$ cd /home/oracle/gg_monitor/oggmon/ogg_agent
[oracle@oel6-rac01 ogg_agent]$ pwd
/home/oracle/gg_monitor/oggmon/ogg_agent

set java to correct verison

[oracle@oel6-rac01 ogg_agent]$ which java
~/goldengate_19c/GGSRC/jdk/bin/java
[oracle@oel6-rac01 ogg_agent]$ env|grep JAVA
JAVA_HOME=/home/oracle/goldengate_19c/GGSRC/jdk
[oracle@oel6-rac01 ogg_agent]$ env|grep PATH
LD_LIBRARY_PATH=/u01/app/oracle/product/12.1.0.2/db_1/lib:/lib:/usr/lib
PATH=/home/oracle/goldengate_19c/GGSRC/jdk/bin:/home/oracle/goldengate_19c/GGSRC/jdk//bin:/home/oracle/goldengate_19c/GGSRC/jdk/bin/bin:/u01/app/oracle/product/12.1.0.2/db_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
CLASSPATH=/u01/app/oracle/product/12.1.0.2/db_1/jlib:/u01/app/oracle/product/12.1.0.2/db_1/rdbms/jlib
[oracle@oel6-rac01 bin]$ java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

create agent instance

enter GG home path and the agent instance path

[oracle@oel6-rac01 ogg_agent]$ ls
cfg_templates createMonitorAgentInstance.sh dirprm_templates displayMonitorAgentVersion.sh pw_agent_util.sh upgradeToMonitorAgent1221.sh
createMonitorAgentInstance.bat dirjar displayMonitorAgentVersion.bat pw_agent_util.bat upgradeToMonitorAgent1221.bat
[oracle@oel6-rac01 ogg_agent]$ ./createMonitorAgentInstance.sh
Please enter absolute path of Oracle GoldenGate home directory : /home/oracle/goldengate_19c/GGSRC
Please enter absolute path of OGG Agent instance : /home/oracle/gg_agent_inst/GGSRC
Please enter unique name to replace timestamp in startMonitorAgent script (startMonitorAgentInstance_20201012153526.sh) : GGSRC
Successfully created OGG Agent instance.

now we will create wallet.

so edit config.properities

[oracle@oel6-rac01 cfg]$ pwd
/home/oracle/gg_agent_inst/GGSRC/cfg
[oracle@oel6-rac01 cfg]$ ls
Config.properties jps-config-jse.xml logging-config.xml mpmetadata-em.xml mpmetadata-new.xml MPMetadataSchema.xsd mpmetadata.xml
[oracle@oel6-rac01 cfg]$

change below values

[oracle@oel6-rac01 cfg]$ vi Config.properties
Change below values
jagent.host= oel6-rac01.localdomain (default is localhost)
jagent.jmx.port=5555 (default is 5555)
jagent.username=root (default oggmajmxuser)
jagent.rmi.port=5559 (default is 5559)
agent.type.enabled=OEM (default is OGGMON)

rename dirwlt

[oracle@oel6-rac01 cfg]$ cd ..
[oracle@oel6-rac01 GGSRC]$ ls
backup bin cfg dirchk dircrt dirprm dirwlt logs
[oracle@oel6-rac01 GGSRC]$ pwd
/home/oracle/gg_agent_inst/GGSRC
[oracle@oel6-rac01 GGSRC]$ mv dirwlt dirwlt_orig
[oracle@oel6-rac01 GGSRC]$ ls
backup bin cfg dirchk dircrt dirprm dirwlt_orig logs
[oracle@oel6-rac01 GGSRC]$ cd bin
[oracle@oel6-rac01 bin]$ pwd
/home/oracle/gg_agent_inst/GGSRC/bin
[oracle@oel6-rac01 bin]$ ls
displayMonitorAgentVersion.sh pw_agent_util.sh startMonitorAgentInstance_GGSRC.sh

create wallet

[oracle@oel6-rac01 bin]$ ./pw_agent_util.sh -jagentonly
Password given is = root123
[oracle@oel6-rac01 bin]$ ./pw_agent_util.sh -jagentonly
Please create a password for Java Agent:
Please confirm password for Java Agent:
Oct 12, 2020 3:45:18 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
Oct 12, 2020 3:45:19 PM oracle.security.jps.JpsStartup start
INFO: Jps started.
Wallet is created successfully.
[oracle@oel6-rac01 bin]$

add ENABLEMONITORING in GLOBALS

GGSCI (oel6-rac01.localdomain) 3> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING E_ICR01 00:00:09 00:00:05
GGSCI (oel6-rac01.localdomain) 2> view params ./GLOBALS
ENABLEMONITORING

exit and login again. you will be able to to see JAGENT and PMSRVR processes.

GGSCI (oel6-rac01.localdomain) 4> exit
[oracle@oel6-rac01 GGSRC]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 12c on Oct 18 2019 01:38:51
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
GGSCI (oel6-rac01.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
JAGENT STOPPED
PMSRVR STOPPED
EXTRACT RUNNING E_ICR01 00:00:09 00:00:04

now edit the jagent.prm file and give absolute path of java

[oracle@oel6-rac01 dirprm]$ pwd
/home/oracle/goldengate_19c/GGSRC/dirprm
[oracle@oel6-rac01 dirprm]$ ls
e_icr01.prm jagent.prm mgr.prm

update the files

[oracle@oel6-rac01 bin]$ ls -ltr /home/oracle/goldengate_19c/GGSRC/jdk/bin/java
-rwxr-xr-x. 1 oracle oinstall 8464 Jul 8 2019 /home/oracle/goldengate_19c/GGSRC/jdk/bin/java
[oracle@oel6-rac01 dirprm]$ cat jagent.prm
COMMAND /home/oracle/goldengate_19c/GGSRC/jdk/bin/java -Dconfig.dir=/home/oracle/gg_agent_inst/GGSRC/cfg -Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration -Doracle.core.ojdl.logging.config.file=/home/oracle/gg_agent_inst/GGSRC/cfg/logging-config.xml -Doracle.core.ojdl.logging.componentId=JAGENT -jar -Xms512m -Xmx1024m /home/oracle/gg_monitor/oggmon/ogg_agent/dirjar/jagent.jar

stop all proecess

GGSCI (oel6-rac01.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
JAGENT STOPPED
PMSRVR STOPPED
EXTRACT RUNNING E_ICR01 00:00:09 00:00:06
GGSCI (oel6-rac01.localdomain) 2> stop extract *
Sending STOP request to EXTRACT E_ICR01 …
Request processed.
GGSCI (oel6-rac01.localdomain) 3> stop mgr!
Sending STOP request to MANAGER …
Request processed.
Manager stopped.
GGSCI (oel6-rac01.localdomain) 4> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
JAGENT STOPPED
PMSRVR STOPPED
EXTRACT STOPPED E_ICR01 00:00:12 00:00:09

start in below sequence

GGSCI (oel6-rac01.localdomain) 4> start PMSRVR
PMSRVR started
GGSCI (oel6-rac01.localdomain) 6> start mgr
Manager started.
GGSCI (oel6-rac01.localdomain) 8> start extract *
Sending START request to MANAGER …
EXTRACT E_ICR01 starting
GGSCI (oel6-rac01.localdomain) 10> start JAGENT
Sending START request to MANAGER …
GGCMD JAGENT starting
GGSCI (oel6-rac01.localdomain) 11> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
JAGENT RUNNING
PMSRVR RUNNING
EXTRACT RUNNING E_ICR01 00:00:10 00:00:06

Discover GG target

you can see 3 targets discovered in golden gate

Kown issue – targets are not discovered

you need to apply patch 26982776 on golden gate monitor home

ogg_agent.log shows belwo error

$OGG_AGENT_INST_HOME/logs/ogg_agent.log
nsuccessful connection response from Message Web Service. Query String: messages/last ; Response Code: 404 ; Response Message: Not Found
[2020-10-13T12:04:40.007+05:30] [JAGENT] [ERROR] [OGGMON-20603] [com.goldengate.monitor.jagent.comm.ws.ManagerService] [tid: MessageCollector] [ecid: 0000NKWY7_s2ZNYjLpYROA1VXK6c000002,0] RESTful Web Service with name messages/last has become unresponsive
[2020-10-13T12:04:42.505+05:30] [JAGENT] [ERROR] [OGGMON-20494] [com.goldengate.monitor.jagent.comm.ws.NotificationsCollector] [tid: StatusCollector] [ecid: 0000NKWY7_N2ZNYjLpYROA1VXK6c000001,0] Error occurred while registering the OGG process. Exception: [[
source parameter must not be null
]]
[2020-10-13T12:04:45.008+05:30] [JAGENT] [ERROR] [OGGMON-20609] [com.goldengate.monitor.jagent.comm.ws.ManagerService] [tid: MessageCollector] [ecid: 0000NKWY7_s2ZNYjLpYROA1VXK6c000002,0] Unsuccessful connection response from Message Web Service. Query String: messages/last ; Response Code: 404 ; Response Message: Not Found
[2020-10-13T12:04:45.008+05:30] [JAGENT] [ERROR] [OGGMON-20603] [com.goldengate.monitor.jagent.comm.ws.ManagerService] [tid: MessageCollector] [ecid: 0000NKWY7_s2ZNYjLpYROA1VXK6c000002,0] RESTful Web Service with name messages/last has become unresponsive
[2020-10-13T12:04:45.009+05:30] [JAGENT] [ERROR] [OGGMON-20609] [com.goldengate.monitor.jagent.comm.ws.ManagerService] [tid: MessageCollector] [ecid: 0000NKWY7_s2ZNYjLpYROA1VXK6c000002,0] Unsuccessful connection response from Message Web Service. Query String: messages/last ; Response Code: 404 ; Response Message: Not Found
[2020-10-13T12:04:45.009+05:30] [JAGENT] [ERROR] [OGGMON-20603] [com.goldengate.monitor.jagent.comm.ws.ManagerService] [tid: MessageCollector] [ecid: 0000NKWY7_s2ZNYjLpYROA1VXK6c000002,0] RESTful Web Service with name messages/last has become unresponsive

set ORACLE_HOME and PATH variable to point monior home

[oracle@oel6-rac01 ~]$ cd gg_monitor
[oracle@oel6-rac01 gg_monitor]$ ls
cfgtoollogs inventory oggmon OPatch oracle_common oraInst.loc oui veridata wlserver
[oracle@oel6-rac01 gg_monitor]$ pwd
/home/oracle/gg_monitor
[oracle@oel6-rac01 gg_monitor]$ export ORACLE_HOME=/home/oracle/gg_monitor
[oracle@oel6-rac01 gg_monitor]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@oel6-rac01 gg_monitor]$ which opatch
~/gg_monitor/OPatch/opatch
[oracle@oel6-rac01 gg_monitor]$ opatch lsinventory
Oracle Interim Patch Installer version 13.9.1.0.0
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /home/oracle/gg_monitor
Central Inventory : /u01/app/oraInventory
from : /home/oracle/gg_monitor/oraInst.loc
OPatch version : 13.9.1.0.0
OUI version : 13.9.1.0.0
Log file location : /home/oracle/gg_monitor/cfgtoollogs/opatch/opatch2020-10-13_12-19-50PM_1.log
OPatch detects the Middleware Home as "/home/oracle/gg_monitor"
Lsinventory Output file location : /home/oracle/gg_monitor/cfgtoollogs/opatch/lsinv/lsinventory2020-10-13_12-19-50PM.txt

Local Machine Information::
Hostname: oel6-rac01.localdomain
ARU platform id: 226
ARU platform description:: Linux x86-64
Interim patches (6) :
Patch 21663638 : applied on Mon Oct 12 15:23:18 IST 2020
Unique Patch ID: 20477024
Patch description: "One-off"
Created on 31 Aug 2016, 21:01:13 hrs UTC
Bugs fixed:
21663638
Patch 19795066 : applied on Mon Oct 12 15:22:48 IST 2020
Unique Patch ID: 19149348
Patch description: "One-off"
Created on 16 Jul 2015, 15:51:43 hrs UTC
Bugs fixed:
19795066
Patch 19632480 : applied on Mon Oct 12 15:22:19 IST 2020
Unique Patch ID: 19278519
Patch description: "One-off"
Created on 25 Aug 2015, 07:19:43 hrs UTC
Bugs fixed:
19632480
Patch 19030178 : applied on Mon Oct 12 15:21:51 IST 2020
Unique Patch ID: 19234068
Patch description: "One-off"
Created on 4 Aug 2015, 05:40:22 hrs UTC
Bugs fixed:
19030178
Patch 22754279 : applied on Mon Oct 12 15:21:16 IST 2020
Unique Patch ID: 20383951
Patch description: "One-off"
Created on 9 Jul 2016, 00:36:58 hrs UTC
Bugs fixed:
22754279
Patch 19154304 : applied on Mon Oct 12 15:20:47 IST 2020
Unique Patch ID: 19278518
Patch description: "One-off"
Created on 25 Aug 2015, 07:10:13 hrs UTC
Bugs fixed:
19154304

OPatch succeeded.

unzip the patch

[oracle@oel6-rac01 30241740]$ cd /shared_dir/ogg_monitor/
[oracle@oel6-rac01 ogg_monitor]$ ls -ltr
total 436940
-rwxrwxrwx. 1 root root 224416 Feb 13 2020 OGG_Monitor_12.2.1.2.200131_Release_Notes.pdf
-rwxrwxrwx. 1 root root 445820174 Sep 6 21:34 fmw_12.2.1.2.0_ogg_Disk1_1of1 (1).zip
drwxrwxrwx. 1 root root 0 Oct 12 11:01 fmw_12.2.1.2.0_ogg_Disk1_1of1
-rwxrwxrwx. 1 root root 1379580 Oct 13 12:23 p26982776_122120_Generic.zip
[oracle@oel6-rac01 ogg_monitor]$ unzip p26982776_122120_Generic.zip

stop all GG processes

GGSCI (oel6-rac01.localdomain) 49>
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
JAGENT STOPPED
PMSRVR STOPPED
EXTRACT STOPPED E_ICR01 00:00:10 00:00:30

apply patch

[oracle@oel6-rac01 ogg_monitor]$ cd 26982776
[oracle@oel6-rac01 26982776]$ pwd
/shared_dir/ogg_monitor/26982776
[oracle@oel6-rac01 26982776]$ opatch apply
Oracle Interim Patch Installer version 13.9.1.0.0
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /home/oracle/gg_monitor
Central Inventory : /u01/app/oraInventory
from : /home/oracle/gg_monitor/oraInst.loc
OPatch version : 13.9.1.0.0
OUI version : 13.9.1.0.0
Log file location : /home/oracle/gg_monitor/cfgtoollogs/opatch/opatch2020-10-13_12-25-16PM_1.log
OPatch detects the Middleware Home as "/home/oracle/gg_monitor"
Verifying environment and performing prerequisite checks…
OPatch continues with these patches: 26982776
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/home/oracle/gg_monitor')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files…
Applying interim patch '26982776' to OH '/home/oracle/gg_monitor'
ApplySession: Optional component(s) [ oracle.rcu.oggmon, 12.2.1.2.0 ] , [ oracle.rcu.oggmon, 12.2.1.2.0 ] , [ oracle.ogg.monitor.server, 12.2.1.2.0 ] , [ oracle.fmw.upgrade.oggmon, 12.2.1.2.0 ] , [ oracle.fmw.upgrade.oggmon, 12.2.1.2.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.ogg.monitor.agent, 12.2.1.2.0…
Patching component oracle.ogg.monitor.agent, 12.2.1.2.0…
Patch 26982776 successfully applied.
Log file location: /home/oracle/gg_monitor/cfgtoollogs/opatch/opatch2020-10-13_12-25-16PM_1.log
OPatch succeeded.
[oracle@oel6-rac01 26982776]$ opatch lsinventory
Oracle Interim Patch Installer version 13.9.1.0.0
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /home/oracle/gg_monitor
Central Inventory : /u01/app/oraInventory
from : /home/oracle/gg_monitor/oraInst.loc
OPatch version : 13.9.1.0.0
OUI version : 13.9.1.0.0
Log file location : /home/oracle/gg_monitor/cfgtoollogs/opatch/opatch2020-10-13_12-27-22PM_1.log
OPatch detects the Middleware Home as "/home/oracle/gg_monitor"
Lsinventory Output file location : /home/oracle/gg_monitor/cfgtoollogs/opatch/lsinv/lsinventory2020-10-13_12-27-22PM.txt

Local Machine Information::
Hostname: oel6-rac01.localdomain
ARU platform id: 226
ARU platform description:: Linux x86-64
Interim patches (7) :
Patch 26982776 : applied on Tue Oct 13 12:26:47 IST 2020
Unique Patch ID: 21992599
Patch description: "One-off"
Created on 31 Oct 2017, 15:25:44 hrs PST8PDT
Bugs fixed:
20714185, 21909349, 21943985, 22004103, 22179784, 22752926, 23564507
23756494, 24324655, 24477119, 24525589, 25101869, 25289835, 25497895
26569656, 26569895, 26589791, 26630294, 26673458, 26847646
Patch 21663638 : applied on Mon Oct 12 15:23:18 IST 2020
Unique Patch ID: 20477024
Patch description: "One-off"
Created on 31 Aug 2016, 21:01:13 hrs UTC
Bugs fixed:
21663638
Patch 19795066 : applied on Mon Oct 12 15:22:48 IST 2020
Unique Patch ID: 19149348
Patch description: "One-off"
Created on 16 Jul 2015, 15:51:43 hrs UTC
Bugs fixed:
19795066
Patch 19632480 : applied on Mon Oct 12 15:22:19 IST 2020
Unique Patch ID: 19278519
Patch description: "One-off"
Created on 25 Aug 2015, 07:19:43 hrs UTC
Bugs fixed:
19632480
Patch 19030178 : applied on Mon Oct 12 15:21:51 IST 2020
Unique Patch ID: 19234068
Patch description: "One-off"
Created on 4 Aug 2015, 05:40:22 hrs UTC
Bugs fixed:
19030178
Patch 22754279 : applied on Mon Oct 12 15:21:16 IST 2020
Unique Patch ID: 20383951
Patch description: "One-off"
Created on 9 Jul 2016, 00:36:58 hrs UTC
Bugs fixed:
22754279
Patch 19154304 : applied on Mon Oct 12 15:20:47 IST 2020
Unique Patch ID: 19278518
Patch description: "One-off"
Created on 25 Aug 2015, 07:10:13 hrs UTC
Bugs fixed:
19154304

OPatch succeeded.

start GG processes

GGSCI (oel6-rac01.localdomain) 55> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
JAGENT RUNNING
PMSRVR RUNNING
EXTRACT RUNNING E_ICR01 00:02:31 00:00:06

discover replicat

in this example our GG target db and replicat are on same server

create instance for replicat

[oracle@oel6-rac01 gg_monitor]$ cd /home/oracle/gg_monitor/oggmon/ogg_agent

[oracle@oel6-rac01 ogg_agent]$ pwd
/home/oracle/gg_monitor/oggmon/ogg_agent

[oracle@oel6-rac01 ogg_agent]$ which java
/usr/bin/java

[oracle@oel6-rac01 ogg_agent]$ export JAVA_HOME=/home/oracle/goldengate_19c/GGTGT/jdk

[oracle@oel6-rac01 ogg_agent]$ export PATH=$JAVA_HOME/bin:$PATH
[oracle@oel6-rac01 ogg_agent]$ which java
~/goldengate_19c/GGTGT/jdk/bin/java

[oracle@oel6-rac01 ogg_agent]$ java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

[oracle@oel6-rac01 ogg_agent]$ env|grep PATH
LD_LIBRARY_PATH=/u01/app/oracle/product/12.1.0.2/db_1/lib:/lib:/usr/lib
PATH=/home/oracle/goldengate_19c/GGTGT/jdk/bin:/home/oracle/gg_monitor/OPatch:/u01/app/oracle/product/12.1.0.2/db_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
CLASSPATH=/u01/app/oracle/product/12.1.0.2/db_1/jlib:/u01/app/oracle/product/12.1.0.2/db_1/rdbms/jlib

[oracle@oel6-rac01 ogg_agent]$ pwd
/home/oracle/gg_monitor/oggmon/ogg_agent

[oracle@oel6-rac01 ogg_agent]$ ls
cfg_templates createMonitorAgentInstance.sh dirprm_templates displayMonitorAgentVersion.sh pw_agent_util.sh upgradeToMonitorAgent1221.sh
createMonitorAgentInstance.bat dirjar displayMonitorAgentVersion.bat pw_agent_util.bat upgradeToMonitorAgent1221.bat

[oracle@oel6-rac01 ogg_agent]$ ./createMonitorAgentInstance.sh
Please enter absolute path of Oracle GoldenGate home directory : /home/oracle/goldengate_19c/GGTGT
Please enter absolute path of OGG Agent instance : /home/oracle/gg_agent_inst/GGTGT
Please enter unique name to replace timestamp in startMonitorAgent script (startMonitorAgentInstance_20201013132921.sh) : GGTGT
Successfully created OGG Agent instance.

create wallet

[oracle@oel6-rac01 cfg]$ pwd
/home/oracle/gg_agent_inst/GGTGT/cfg
[oracle@oel6-rac01 cfg]$ ls
Config.properties jps-config-jse.xml logging-config.xml mpmetadata-em.xml mpmetadata-new.xml MPMetadataSchema.xsd mpmetadata.xml
[oracle@oel6-rac01 cfg]$ vi Config.properties

modify belwo values. as our extract is on same server we will choose different port no. then the one we choose for extract wallte creation above.

jagent.host= oel6-rac01.localdomain (default is localhost)
jagent.jmx.port=5556 (default is 5555)
jagent.username=root (default oggmajmxuser)
jagent.rmi.port=5569 (default is 5559)
agent.type.enabled=OEM (default is OGGMON)

create wallet

[oracle@oel6-rac01 cfg]$ cd ..
[oracle@oel6-rac01 GGTGT]$ ls
backup bin cfg dirchk dircrt dirprm dirwlt logs
[oracle@oel6-rac01 GGTGT]$ mv dirwlt dirwlt_orig
[oracle@oel6-rac01 GGTGT]$ cd bin
[oracle@oel6-rac01 bin]$ pwd
/home/oracle/gg_agent_inst/GGTGT/bin
[oracle@oel6-rac01 bin]$ ls
displayMonitorAgentVersion.sh pw_agent_util.sh startMonitorAgentInstance_GGTGT.sh
passord - root123
[oracle@oel6-rac01 bin]$ ./pw_agent_util.sh -jagentonly
Please create a password for Java Agent:
Please confirm password for Java Agent:
Oct 13, 2020 1:34:30 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
Oct 13, 2020 1:34:32 PM oracle.security.jps.JpsStartup start
INFO: Jps started.
Wallet is created successfully.

edit GLOBALS files

if multiple jagents on same host like extract and replicat on same host then use below for enablemonitoring. otherwise PMSRVR will not start.

JAGENT And PMSRVR Shutdown Gracefully Without An Error GoldenGate 12.3.0.1.4+ When Multiple Installs On Same Host (Doc ID 2375004.1)

GGSCI (oel6-rac01.localdomain) 4> edit params ./GLOBALS
GGSCI (oel6-rac01.localdomain) 11> view params ./GLOBALS
ENABLEMONITORING UDP UDPPORT 9940 HTTPPORT 9010

modify jagent.prm with full path of java

[oracle@oel6-rac01 GGTGT]$ cd /home/oracle/goldengate_19c/GGTGT/dirprm
[oracle@oel6-rac01 dirprm]$ ls
global.dat jagent.prm mgr.prm pmsrvr-config.dat pmsrvr-resources.dat r_icj01.prm
[oracle@oel6-rac01 dirprm]$ vi jagent.prm
[oracle@oel6-rac01 dirprm]$ ls -ltr /home/oracle/goldengate_19c/GGTGT/jdk/bin/java
-rwxr-xr-x. 1 oracle oinstall 8464 Jul 8 2019 /home/oracle/goldengate_19c/GGTGT/jdk/bin/java
[oracle@oel6-rac01 dirprm]$ cat jagent.prm
COMMAND /home/oracle/goldengate_19c/GGTGT/jdk/bin/java -Dconfig.dir=/home/oracle/gg_agent_inst/GGTGT/cfg -Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration -Doracle.core.ojdl.logging.config.file=/home/oracle/gg_agent_inst/GGTGT/cfg/logging-config.xml -Doracle.core.ojdl.logging.componentId=JAGENT -jar -Xms512m -Xmx1024m /home/oracle/gg_monitor/oggmon/ogg_agent/dirjar/jagent.jar
[oracle@oel6-rac01 dirprm]$

exit and login again and stop any running process

GGSCI (oel6-rac01.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
JAGENT STOPPED
PMSRVR STOPPED
REPLICAT STOPPED R_ICJ01 00:00:00 00:00:39

start in below sequence

GGSCI (oel6-rac01.localdomain) 8> start PMSRVR
PMSRVR started
GGSCI (oel6-rac01.localdomain) 13> start mgr
Manager started.
GGSCI (oel6-rac01.localdomain) 14> start *
Sending START request to MANAGER …
REPLICAT R_ICJ01 starting
GGSCI (oel6-rac01.localdomain) 15> start JAGENT
Sending START request to MANAGER …
GGCMD JAGENT starting
GGSCI (oel6-rac01.localdomain) 16> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
JAGENT RUNNING
PMSRVR RUNNING
REPLICAT RUNNING R_ICJ01 00:00:00 00:00:09

Discover Replicat in OEM

follow above approach and once complete it should look like this

setting preferred credentials for extract and replicat

you may see message like this if prefferred credential are not set