Template:SQWareProduction sqwora CheckInstance.ksh example

From Wiki_dbSQWare
Jump to: navigation, search

#Standard help for script sqwora_CheckInstance.ksh:


$gvsqw_OraBin/sqwora_CheckInstance.ksh -h
#Display online help for this script

$gvsqw_OraBin/sqwora_CheckInstance.ksh -I $ORACLE_SID -NoMail
#Desactivate sendmail on error to $gvsqw_Mail_oracle (by default, send on error)

$gvsqw_OraBin/sqwora_CheckInstance.ksh -I $ORACLE_SID -Ins
#Insert results in SQWareRepository

$gvsqw_OraBin/sqwora_CheckInstance.ksh -I $ORACLE_SID -FRT <NumericValue>
#Force return code to '<NumericValue>' on error (if no error, exit 0!)
#You can also force return code of this script on all your
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwora_CheckInstance=<NumericValue>
#in configuration file $gvsqw_OraBin/../etc_cust/sqwora_GlobalVar.cfg