Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Default User Profile Oracle
  • When to rebuld B-tree index Oracle
  • Create type and Grant on it. Oracle
  • sqlnet.ora paramters Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • get_aix_vmstat.ksh Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Renaming Oracle Instance Name Oracle
  • All About oracle password and security from metalink Oracle
  • S3 Basic info AWS
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • chk_space_SID.ksh Linux/Unix

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

  • rm_backup_arch_file.ksh Linux/Unix
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • proper cpu stats 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 (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
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • GSQ.sql Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • Clean up Oracle
  • Some useful Unix Commands Linux/Unix
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Debugging Shell FIles Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme