Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ipcs -l Linux/Unix
  • ORACLE_SID in sqlplus Oracle
  • TNSNAMES entries details Oracle
  • telnet listening Linux/Unix
  • Wait.sql Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • Oracle Standby Database Library Index from Metalink Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • RAC 11g with vmware Oracle
  • SAN Linux/Unix
  • Ports used by Oracle Software Oracle
  • Oracle 11g Environment Setup Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Shuffle an array PHP/MYSQL/Wordpress

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

  • Linux CPU info. Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • ipcs -l Linux/Unix
  • how to find VIP from ifconfig Linux/Unix
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Important Solaris Commands 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)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Goldengate Tutorial Oracle
  • Monitor Long Running Job Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • CPU Core related projections AWS
  • crontab syntax Linux/Unix
  • Check Oracle installed products using one command Oracle
  • sess_server.sql Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme