Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • catting.sh Linux/Unix
  • sid_wise_sql.sql Further explaination Oracle
  • Locktree.sql Oracle
  • Sequence Resetting Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • How to change hostname in Linux Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Jai Shree Ram Oracle
  • handling filenname with space Linux/Unix
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Jai Shree Ram Linux/Unix
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Oracle Material from OTN Oracle

Logic to chech # of parameters command line parameters

Posted on 05-Oct-2006 By Admin No Comments on Logic to chech # of parameters command line parameters

# Exit if no first parameter $1.

if [ -z “$1” ]

then

echo “Usage: check_parms.ksh

<#_days> (where value is > 100)”

exit 99

fi

# Exit if no second parameter $2.

if [ -z “$2” ]

then

echo “Usage: check_parms.ksh

<#_days> (where value is > 100)”

exit 99

fi

# Exit if parm is not greater than 100.

tmp=`expr $2` # Convert string to number.

if [ $tmp -lt 101 ]

then

echo

echo “Argument two is less than 100.

Aborting Script.”

echo

exit 99

fi

Linux/Unix, shell

Post navigation

Previous Post: oracle tips… from http://www.bijoos.com/oracle/douknow.htm
Next Post: Some useful Unix Commands

Related Posts

  • move_arch_files.ksh Linux/Unix
  • fuser to check who is using diretory Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Find long Running Transaction Linux/Unix
  • Search and replace pattern Linux/Unix
  • How to change hostname in Linux 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
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • CPU Core related projections AWS
  • Create type and Grant on it. Oracle
  • Pending Transaction Neighbors Script Oracle
  • runsql_once.ksh Linux/Unix
  • Virtual Indexes in Oracle Oracle
  • To see how much time or progress of long transaction Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme