Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • proc.sql Oracle
  • PLSQL Table Syntax 1 Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Oracle 11g Environment Setup Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • find_idle_cpu.sql Oracle
  • Check SQL Server edition SQL Server
  • How to check current redo log progress redo_progress.sql Oracle
  • How to see which patches are applied. Oracle
  • Oracle Material from OTN Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • For Search and replace unix command. Linux/Unix
  • Good links for x$ tables in oracle. Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Read CSV File using Python Python/PySpark

remove archfiles only when it is applied to DR rm_archfiles.sh

Posted on 08-Jul-2009 By Admin No Comments on remove archfiles only when it is applied to DR rm_archfiles.sh

/oracle/scripts/rm_archfiles.sh “/db9/archlog” “90” “/oracle/admin/TESTDB/bdump/alert_TESTDB.log”

#!/bin/sh

RUNNING=`ps -ef|grep rm_archfiles.sh|grep -v grep|wc -l`

if [ $RUNNING -gt 2 ]

then

echo “Exiting !!! Total $RUNNING occurence of rm_archfiles.sh are running at `date`”

exit

fi

Linux/Unix, shell

Post navigation

Previous Post: run this before doing any dbchange pvm_pre_change.sql
Next Post: remove archfiles only when it is applied to DR rm_archfiles.sh

Related Posts

  • CPU speed on solaris Linux/Unix
  • Logic to chech # of parameters command line parameters Linux/Unix
  • CPU Core related projections AWS
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • rm_backup_arch_file.ksh 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 (397)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (345)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to stop OCSSD Daemon Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • perf_today.sql Oracle
  • eplan.sql Oracle
  • Committing distributed transaction using commit force Oracle
  • Processes Parameter decision Oracle
  • tracksqltime.sql Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme