Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Resolving RMAN Hung Jobs Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • ORA-01220 Oracle
  • Search and replace pattern Linux/Unix
  • When to rebuld B-tree index Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • Jai Shree Ram Oracle
  • Jai Shree Ram Linux/Unix
  • nfs mount command Linux/Unix
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • V$transaction notes for finding XID composition. Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Giving Grant on v$DATABASE 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: remove archfiles only when it is applied to DR rm_archfiles.sh

Related Posts

  • Some OS level threshold for performance. Linux/Unix
  • crontab syntax Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • replace alphabets using sed Linux/Unix
  • Logic to chech # of parameters command line parameters Linux/Unix
  • runsql_once.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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • EXTPROC Oracle
  • catall.sh Linux/Unix
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • Updated LCK.SQL file. Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • cold backup scripts to copy locally Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme