Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Implementing Listener Security Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • configUOCIOTTO.ora Oracle
  • v$event_name Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Oracle Release Explaination Oracle
  • Python class import from different folders Python/PySpark
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • Composite Index creation tip from Vivek Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. 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

  • backspace in SQL Plus not working then..? Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • To see mem usage and CPU usage system wide. Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • send attachment from unix-shell script 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)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Directory wise folder wise space usage Linux/Unix
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • shr1.sql for MTS or Shared server configuration Oracle
  • For Search and replace unix command. Linux/Unix
  • Implementing Listener Security Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme