Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • move_arch_files.ksh Linux/Unix
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • sql_doing_fts.sql Oracle
  • create database link syntax Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • UTL_FILE test program Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • how to find OS block size Oracle
  • SAN 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

  • Logic to chech # of parameters command line parameters Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • ipcs -l Linux/Unix
  • age_alert.ksh aging out alert.log Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • copying/removing directory with all its subdirectory Linux/Unix
  • logminer and my_lbu Oracle
  • Default User Profile Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • Remove duplicate rows from table Oracle
  • Absolute file number and relative file number Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • Export Import with QUERY Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme