GoldenGate Replication Check Script #!/bin/bash #Check Oracle GoldenGate replication by counting rows in a small table in Source and Target DBs, and check with adminclient "lag replicat " #chmod 700 thisscript due to password. export ORACLE_HOME=/u01/app/oracle/product/19.0.0/db export PATH=/usr/bin:/bin:/usr/sbin:/sbin:$ORACLE_HOME/bin #The following 35 or so lines can be used as a template to create another block to check another replication. If you have many checks, it's better to create a function. RECIPIENT=myemail SRCDB=mysrcdb; TGTDB=mytgtdb #source and target DB connect identifiers REP=myrepname; TGTHST=mytgthost #replicat name and target hostname (assume port 9100 as shown later) #Check 1: sample table row count SRCCNT=$(sqlplus -S system/mypassword@$SRCDB <