Modèle:SQWareProduction sqwsyb UpdtStatsDatabase.ksh example

De WikiFr_dbSQWare
Révision datée du 6 avril 2020 à 08:33 par BatchUser (discussion | contributions) (Updated by BatchUser)
Aller à : navigation, rechercher
Sourcing sqwsyb_Global.lib v2020.02 SQWareProduction for Sybase (dbSQWare) ... 

#Standard (Locale) help for script sqwsyb_UpdtStatsDatabase.ksh:


$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -h
#Affichage de l'aide en ligne pour ce script

$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -NoMail
#Desactive l'envoi de mail sur erreur a to $gvsqw_GlobalMail (by default, send on error)

$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -Exec
#Execute les commandes generees

$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName>
#Genere les commandes mais ne les execute pas !

$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -FSS <SampleSize> -Exec
#to force sample size 'with sampling=<SampleSize> percent'
#by default, script dynamically calculates this sample

$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -Del -Exec
#delete statistics before compute them: 'delete statistics $lvsqw_Owner.$lvsqw_Table'

$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -FRT <NumericValue> -Exec
#Force le code retour a '<NumericValue>' sur erreur (si pas d'erreur, exit 0!)
#Vous pouvez aussi forcer le code retour de ce script pour tous
#si vous settez la variable d'environnement: $gvsqw_ForcedReturnCodeScript_sqwsyb_UpdtStatsDatabase=<NumericValue>
#dans le fichier de configuration $gvsqw_SybBin/../etc_cust/sqwsyb_GlobalVar.cfg

#Options to generate table list with filters (you can mix all off them):
$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -IT <listtbl>
#Generate table list with 'in list':
#=> and name in ('$ListInclude')
$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -ET <listtbl>
#Generate table list with 'not in list':
#=> and name not in ('$ListExclude')
$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -IL <likeclause>
#Generate table list with 'like':
#=> and name like '$LikeClause'
$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -EL <likeclause>
#Generate table list with 'not like':
#=> and name not like '$NotLikeClause'
$gvsqw_SybBin/sqwsyb_UpdtStatsDatabase.ksh -I $DSQUERY -D <DbName> -W <whereclause>
#Generate table list with 'where clause':
#=> and '$WhereClause'