Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Database link password in user_db_links Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Goldengate Tutorial Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • DBMS_SQL for alter session. Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Jai Shree Ram Oracle
  • To see how much time or progress of long transaction Oracle
  • db_status.sql Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • find_string_in_database.sql Oracle
  • Find total file sizes Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle

Oracle GoldenGate lag monitoring shell script

Posted on 12-Jun-202318-Jun-2023 By Admin No Comments on Oracle GoldenGate lag monitoring shell script

Following script will be useful for tracking Oracle GoldenGate replicat process and related lag. This script will generate output on standard screen.  You can redirect it using file redirection to logfile or other locations. 

while true
do
<goldengate home directory>/ggsci <<EOF > test.out
info all
exit
EOF

lag=`cat test.out | grep TESTREPLICAT | awk '{print $4}'`
#echo $lag
echo `date +"%m-%d-%y %T"` $lag
sleep 5
done

You can also run the above file contents in background and redirect the output to file using below command.

nohup /home/paresh/check_gg_lag.sh 1>check_gg_lagout 2>&1 &
Linux/Unix, Oracle, shell Tags:extract lag, goldengate, goldengate lag, oracle, replicat lag, tracking

Post navigation

Previous Post: Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle
Next Post: Find all users who have DML privileges

Related Posts

  • Updated LCK.SQL file. Oracle
  • Some OS level threshold for performance. Linux/Unix
  • cold backup scripts to copy locally Linux/Unix
  • Small sample shell program Linux/Unix
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Oracle Metalink useful notes Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • logminer and my_lbu Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • plan10g.sql good Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • online_bkup.sql Oracle
  • Default User Profile Oracle
  • 10g oem configuration Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme