Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Backup and Recovery Scenarios Oracle
  • Handling LOB data in Oracle Oracle
  • Find All internal Parameters Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • Import and export statements Oracle
  • Find_table_size.sql Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • executing Function from SQLPLUS prompt Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Finding locked objects Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Export Import with QUERY Oracle
  • create database syntax Oracle
  • DBMS_JOB all example Oracle
  • oracle fast start failover best practice 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

  • prepfiles.sh for step by step generating pending statistics files Oracle
  • checking connectivity between two servers Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • 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
  • create a folder in multiple places 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Explain Plan Output 2 Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Reading config file from other folder inside class Python/PySpark
  • upload.html PHP/MYSQL/Wordpress
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme