Template:SQWareProduction sqwora CopyDmpdp.ksh example: Difference between revisions

From Wiki_dbSQWare
Jump to navigation Jump to search
m Updated by BatchUser
No edit summary
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
<pre>
Sourcing sqwora_Global.lib v2022.06 SQWareProduction for Oracle (dbSQWare) ...  
Sourcing sqwora_Global.lib v2025.06 SQWareProduction for Oracle (dbSQWare) ...  


#Standard help for script sqwora_CopyDmpdp.ksh:
#Standard help for script sqwora_CopyDmpdp.ksh:


$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -h
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -h
Line 9: Line 8:


$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -Locale en -h
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -Locale en -h
#Display online help for this script with forcing of the 'fr' locale (default locale managed by the variable gvsqw_Locale)
#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
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -s
#Display usage examples for this script
#Display usage examples for this script


$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com'
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -PutInf <user@host:path>
#Add the mail list to the default address managed by the variable gvsqw_GlobalMail
#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 -SendReport
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -RD <path> -Exec
#Send the log by email at the end of the treatment even if there is no error
#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 -IS <SourceInstance> -FileIdent <fileident> -NoMail
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -Before <script> -Exec
#Deactivate sendmail on error to $gvsqw_GlobalMail (by default, send on error)
#Execute the script <script> then do "Copy get"


$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -IS <SourceInstance> -FileIdent <fileident> -GetInf <user@host:path> -Exec
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent ExpdpFull_MYORA -GetInf <user@host:path> -After $Home/scripts/XXX.ksh -Exec
#Copy get
#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 -IS <SourceInstance> -FileIdent <fileident> -PutInf <user@host:path> -Exec
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com' -Exec
#Copy put
#Add the mail list to the default address managed by the variable gvsqw_GlobalMail


$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -IS <SourceInstance> -FileIdent <fileident>
$gvsqw_OraBin/sqwora_CopyDmpdp.ksh -I $ORACLE_SID -FileIdent <fileident> -GetInf <user@host:path> -SendReport -Exec
#Generate commands but don't execute them !
#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 -IS <SourceInstance> -FileIdent <fileident> -FRT <NumericValue> -Exec
$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!)
#Force return code to '<NumericValue>' on error (if no error, "exit 0!")
#You can also force return code of this script on all your
#You can also force return code of this script on all your
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwora_CopyDmpdp=<NumericValue>
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwora_CopyDmpdp=<NumericValue>
#in configuration file $gvsqw_OraBin/../etc_cust/sqwora_GlobalVar.cfg
#in configuration file $gvsqw_OraBin/../etc_cust/sqwora_GlobalVar.cfg
# XXXXX : -RD
# XXXXX : -Before
# XXXXX : -After
</pre>
</pre>

Revision as of 18:51, 1 July 2025

Sourcing sqwora_Global.lib v2025.06 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