#!/bin/ksh # # Scriptname : $II_SYSTEM/ingres/scripts/db_size.ksh # # Description : Checks the current checkpoint usage of all databases on a given installation. # # Parameters : $1 = f # # Author : M S Ramsay 20 October 1999 # # History Date Name Reason # ---- ---- ------ # xx/xx/xx xxx xxxxxxxxxxxxxxxxxxxxxxxx # ############################################################################ # #Parameter validation. # SDS_scriptname="`basename $0`" SDS_runtype=${1:-b} if [[ $SDS_runtype != 'b' ]] && [[ $SDS_runtype != 'f' ]] && [[ $SDS_runtype != 'h' ]] then echo "" echo "ERROR in script $SDS_scriptname - Variable \$1 is invalid. Should not be $1." echo "" echo "Try:-" echo "" echo "b - Basic output" echo "f - Full output" echo "h - Help" echo "" exit fi if [[ $SDS_runtype = 'h' ]] then echo "" echo "Parameters:- " echo "" echo "b - Basic output" echo "f - Full output" echo "h - Help" echo "" exit fi clear echo "*********************************************************************" echo "" echo "Run type is set to $SDS_runtype. Where b is Basic and F is Full". echo "" echo "*********************************************************************" echo "" echo "" echo "" echo "=====================================================================" # #Get a list of all databases on the current installation. # SDS_dblist=$(sql iidbdb <