Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Mutating Table Error while using database trigger Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • How to set Processes Parameter Oracle
  • Rman Notes -1 Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Handling LOB data in Oracle Oracle
  • oracle Dba site Oracle
  • Search and Replace vi editor command. Linux/Unix
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • USE_NL and INDEX hints example Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Generating XML from SQLPLUS Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • pvm_pre_change.sql Oracle
  • SQL Server: How to see current transactions or requests SQL Server

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

  • Small sample shell program Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Paste command syntax Linux/Unix
  • How to collect CPU usage on Linux using 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)
  • 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
  • Building Our Own Namespaces with “Create Context” Oracle
  • Export Import with QUERY Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • adding new line after specific pattern using sed Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • configUOCIOTTO.ora Oracle
  • oradebug ipcrm ipcs Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme