Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Reading parameter file and printing Linux/Unix
  • lck.sql Oracle
  • Search and Replace vi editor command. Linux/Unix
  • proc.sql Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Oracle Identifiers Oracle
  • get_vmstat.ksh for Solaris Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • grep multuple patterns Linux/Unix
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: 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

  • ipcs -l Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix
  • Directory wise folder wise space usage Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • secure crt settings 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • To check whether standby is recovering properly or not?? Oracle
  • Find Plan Hash value fphv.sql Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Proc code Oracle
  • Removing first line Linux/Unix
  • set_env_dba Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme