Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Gathering statistics with DBMS_STATS Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • Nice notes on wait events Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • Roles and Stored Procs II Oracle
  • cp_filesystem.sql Oracle
  • how to find VIP from ifconfig Linux/Unix
  • Renaming the column name Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • dbms_job.submit example Oracle

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: How to remove blank lines using vi editor command

Related Posts

  • nfs mount command Linux/Unix
  • Session_info.ksh Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • setting prompt display with .profile Linux/Unix
  • Jai Shree Ram Linux/Unix
  • scripts to take listener.log backup 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
  • newupload.html PHP/MYSQL/Wordpress
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • login.sql Oracle
  • How to set Processes Parameter Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • find checksum of a file. Linux/Unix
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • find_idle_cpu.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme