Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • useful dg links Oracle
  • When to rebuld B-tree index Oracle
  • UTL_FILE test program Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Oracle Identifiers Oracle
  • Proc Compilation Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • column level grant syntax Oracle
  • telnet listening Linux/Unix
  • Library cahe Latches and internal explaination Oracle
  • grep multuple patterns Linux/Unix
  • RAC with RHEL4 and 11g 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

  • checking redhat linux version Linux/Unix
  • Zip and unzip with tar Linux/Unix
  • backspace in SQL Plus not working then..? Linux/Unix
  • scp with ssh2 Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • xargs use 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
  • Rename Tablespace Oracle
  • Database logon trigger issue Oracle
  • Single character replacement in Unix Linux/Unix
  • USER_TABLES.Freelists Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • cp_filesystem.sql Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • move_arch_files.ksh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme