Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle 11g Training on 29JAN1010 Oracle
  • All Hints for Oracle Databases Oracle
  • sql_doing_fts.sql Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • Linux CPU info. Linux/Unix
  • block_ident.sql Oracle
  • For Search and replace unix command. Linux/Unix
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Committing distributed transaction using commit force Oracle
  • find_idle_cpu.sql Oracle
  • v$event_name Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • sess_server.sql Oracle
  • Reading config file from other folder inside class Python/PySpark

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

  • Committing distributed transaction using commit force Oracle
  • setting prompt display with .profile Linux/Unix
  • myfile Oracle
  • How to calculate PROCESSES parameter Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME 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
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Find_table_size.sql Oracle
  • catall.sh Linux/Unix
  • All Hints for Oracle Databases Oracle
  • To see how much time or progress of long transaction Oracle
  • crontab syntax Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme