Template:SQWareProduction sqwora CopyDmpdp.ksh example

From Wiki_dbSQWare
Jump to: navigation, search
Sourcing sqwora_Global.lib v2024.03 SQWareProduction for Oracle (dbSQWare) ... 

#Standard help for script sqwora_CopyDmpdp.ksh:

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

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -Locale en -h
#Display online help for this script with forcing of the 'en' locale (by default locale managed by $gvsqw_Locale)

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -s
#Display usage examples for this script

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -PutInf <user@host:path>
#Generate commands but don't execute them !

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -PutInf <user@host:path> -Exec
#Copy put, if the file is identified by <fileident>

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -RD <path> -Exec
#Copy get to local directory <path> (by default value is /orabackup/$ORACLE_SID/expdp manage by $gvsqw_RootExpdp)

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -Before <script> -Exec
#Execute the script <script> then do "Copy get"

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent ExpdpFull_MYORA -GetInf <user@host:path> -After $Home/scripts/XXX.ksh -Exec
#Copy get to local directory /orabackup/$ORACLE_SID/tmp/expdp, if the file is identified by ExpdpFull_MYORA <fileident> at <Host>:<Path> with <user> then execute the script $Home/scripts/XXX.ksh

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com' -Exec
#Add the mail list to the default address managed by the variable gvsqw_GlobalMail

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -SendReport -Exec
#Send the log by email at the end of the treatment even if there is no error

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -NoMail -Exec
#Disables sending an email on error to $gvsqw_GlobalMail (by default, send on error)

$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -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_sqwora_CopyDmpdp=<NumericValue>
#in configuration file $gvsqw_OraBin/../etc_cust/sqwora_GlobalVar.cfg