Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Drop database in Oracle 10g Oracle
  • online_bkup.sql Oracle
  • Implementing Listener Security Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Sending email with file attachment. Linux/Unix
  • Reading config file from other folder inside class Python/PySpark
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Oracle Internal Good Websites 1 Oracle
  • All About Trace Fils Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • grep multuple patterns Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • column level grant syntax Oracle

check_copy_progress.sh

Posted on 04-Jun-2009 By Admin No Comments on check_copy_progress.sh

#!/bin/ksh

LOGFILE=/export/home/oracle/paresh/mylog.log

NOTIFY_LIST=me@pvmehta.com

while true

do

echo “Reading Time : `date` n” >> ${LOGFILE}

echo “Following Files are currently copying” >>${LOGFILE}

ls -rlt /db*/oradata/800JPOE/*.dbf | tail -2 >>${LOGFILE}

echo “Out of 116 files, `ls -rlt /db*/oradata/800JPOE/*.dbf | wc -l` files copied so far” >> ${LOGFILE}

echo “df -k /800JPOEARCH” >> ${LOGFILE}

df -k /800JPOEARCH >> ${LOGFILE}

echo “Oldest files in /800JPOEARCH folder” >>${LOGFILE}

ls -lt /800JPOEARCH/*.arc | tail -2 >>${LOGFILE}

echo “Latest files in /800JPOEARCH folder” >>${LOGFILE}

ls -rlt /800JPOEARCH/*.arc | tail -2 >>${LOGFILE}

tail -15 ${LOGFILE} | mailx -s “copy status from source1 to target1” ${NOTIFY_LIST}

sleep 900

done

Linux/Unix, shell

Post navigation

Previous Post: find_string_in_database.sql
Next Post: ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME

Related Posts

  • To Find Orphan OS processes. Linux/Unix
  • grep multuple patterns Linux/Unix
  • restarting network in linux Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • How to change hostname in Linux Linux/Unix

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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to see which patches are applied. Oracle
  • switchlogfile.sh Linux/Unix
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • SQL Server: How to see historical transactions SQL Server
  • To see how much time or progress of long transaction Oracle
  • CPU speed on Linux Linux/Unix
  • Rownum with Order by Oracle
  • Find all users who have DML privileges Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme