Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • sql_plan9i.sql Oracle
  • Recovering lost SYS password Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • MYSQL for Oracle DBA MYSQL
  • scripts to take listener.log backup Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Oracle Connections expire_time and firewall Oracle
  • process id based files and processes Linux/Unix
  • Oracle Support Metalink ID 161818.1 Oracle
  • Sample WW22 listener.ora Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • Reading parameter file and printing Linux/Unix

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

  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • setting prompt display with .profile Linux/Unix
  • move_arch_files.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)
  • 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
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • scripts to take listener.log backup Linux/Unix
  • TOP-N Sql to find Nth max or Top N rows Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme