Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_string_in_database.sql Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • ipcs -l Linux/Unix
  • Find total file sizes Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • To see mem usage and CPU usage system wide. Linux/Unix
  • MYSQL for Oracle DBA MYSQL
  • Display the top 5 salaries for each department using single SQL Oracle
  • pvm_pre_change.sql Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix

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

  • Find all users who have DML privileges Oracle
  • sesswait.sql Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • secure crt settings Linux/Unix
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • temp_use.sql diplays usage of temp ts Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Good Link from metalink 1 Oracle
  • Composite Index creation tip from Vivek Oracle
  • Jai Shree Ram Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • SAN Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme