Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Remove duplicate rows from table Oracle
  • Export Oracle data and Compress at same time Oracle
  • Check Oracle installed products using one command Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Exadata Basics Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • cache buffer chain latch Oracle
  • Removing first line Linux/Unix
  • Nice notes on wait events Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. 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

  • purge_trc.sh Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix
  • To Find Orphan OS processes. Linux/Unix
  • cold backup scripts to copy locally Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORACLE_SID in sqlplus Oracle
  • get_vmstat_linux Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Good Doc 28-JUN-2006 Oracle
  • Database link password in user_db_links Oracle
  • PLSQL Table Syntax 1 Oracle
  • Composite Index creation tip from Vivek Oracle
  • Find nth max and min. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme