Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • 10g oem configuration Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Jai Shree Ram Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Good RAC & Standby Notes Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • DBMS_STATS Metalinks Notes Oracle
  • crontab syntax Linux/Unix
  • To Find Orphan OS processes. Linux/Unix
  • process id based files and processes Linux/Unix
  • OEM-Commnds Oracle
  • oradebug ipcrm ipcs Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm 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

  • send attachment from unix-shell script Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Sort with ASCII order and Numeric Order Linux/Unix
  • checking redhat linux version 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Proc Compilation Oracle
  • Drop database in Oracle 10g Oracle
  • get_vmstat.ksh for Solaris Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Sending SQLPLUS output in HTML format Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Find long Running Transaction Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme