Difference between revisions of "Template:SQWareProduction sqwsyb DumpDatabase.ksh example"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | Sourcing sqwsyb_Global.lib v2024. | + | Sourcing sqwsyb_Global.lib v2024.03 SQWareProduction for Sybase (dbSQWare) ... |
#Standard help for script sqwsyb_DumpDatabase.ksh: | #Standard help for script sqwsyb_DumpDatabase.ksh: | ||
Line 20: | Line 20: | ||
#Make a dump of target database | #Make a dump of target database | ||
− | $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -RD < | + | $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -RD <DirName> -CR <NumericValue> -Exec |
#Specify the path to write dump with an estimated compression ratio (by default, $gvsqw_DefCompRate=22) | #Specify the path to write dump with an estimated compression ratio (by default, $gvsqw_DefCompRate=22) | ||
Line 33: | Line 33: | ||
$gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -NewSyntax -Exec | $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -NewSyntax -Exec | ||
− | #Force to write dump using the new syntax ( | + | #Force to write dump using the new syntax (by default, $gvsqw_DumpSyntaxType=NewSyntax) |
$gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -CrossPlatform -Exec | $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -CrossPlatform -Exec | ||
Line 64: | Line 64: | ||
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwsyb_DumpDatabase=<NumericValue> | #environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwsyb_DumpDatabase=<NumericValue> | ||
#in configuration file $gvsqw_SybBin/../etc_cust/sqwsyb_GlobalVar.cfg | #in configuration file $gvsqw_SybBin/../etc_cust/sqwsyb_GlobalVar.cfg | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Revision as of 15:14, 26 April 2024
Sourcing sqwsyb_Global.lib v2024.03 SQWareProduction for Sybase (dbSQWare) ... #Standard help for script sqwsyb_DumpDatabase.ksh: $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -h #Display online help for this script $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -Locale en -h #Display online help for this script with forcing of the 'en' locale (by default locale managed by $gvsqw_Locale) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -s #Display usage examples for this script $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> #Generate commands but don't execute them ! $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -Exec #Make a dump of target database $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -RD <DirName> -CR <NumericValue> -Exec #Specify the path to write dump with an estimated compression ratio (by default, $gvsqw_DefCompRate=22) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -CL <NumericValue> -Exec #Applies a compression rate to dump (by default, $gvsqw_DefCompLevel=1) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -SMS <NumericValue> -Exec #Specify the max stripe size in Mo (by default, $gvsqw_DefMaxSizeStrip=4096) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -OldSyntax -Exec #Force to write dump using the old syntax (by default, $gvsqw_DumpSyntaxType=NewSyntax) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -NewSyntax -Exec #Force to write dump using the new syntax (by default, $gvsqw_DumpSyntaxType=NewSyntax) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -CrossPlatform -Exec #Puts the database in 'single user' mode and execute sp_flushstats before dumping $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -AddFlagName -Exec #Puts '.mflag' at the end of dump's name $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -HI <NumberOfGenerations> -Exec #change the number of generation to keep $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -Type <TypedeDump> -Exec #Execute generated commands and change dump type (full,inc,stb,fstb) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -NS <NumberOfStripes> -Exec #Generate Dump on <NumberOfStripes> stripes $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com' -Exec #Add the mail list to the default address managed by the variable gvsqw_GlobalMail $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -SendReport -Exec #Send the log by email at the end of the treatment even if there is no error $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -NoMail -Exec #Disables sending an email on error to $gvsqw_GlobalMail (by default, send on error) $gvsqw_SybBin/sqwsyb_DumpDatabase.ksh -I $DSQUERY -D <DbName> -FRT <NumericValue> -Exec #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_sqwsyb_DumpDatabase=<NumericValue> #in configuration file $gvsqw_SybBin/../etc_cust/sqwsyb_GlobalVar.cfg