Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Alter procedure auditing Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • telnet listening Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • First Entry in RAC Oracle
  • RAC with RHEL4 and 11g Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Important Solaris Commands Linux/Unix
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Pending Transaction Neighbors Script Oracle
  • database trigger failing Oracle
  • Rman Notes -1 Oracle
  • lck.sql Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix

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

  • Debugging Shell FIles Linux/Unix
  • Session_info.ksh Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix
  • oracle 10g on linux Linux/Unix
  • ipcs -l Linux/Unix
  • move_arch_files.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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • scp with ssh2 Linux/Unix
  • Oracle 10g for solaris 10 Oracle
  • export import with parameter file. Oracle
  • Generating XML from SQLPLUS Oracle
  • online_ts_bkup.sql Oracle
  • Unix split command to split files Linux/Unix
  • Jai Shree Ram Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme