Difference between revisions of "SQWareProduction:adabas:etc:sqwada CreInst CrontabRef.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
 
m (Updated by BatchUser)
 
Line 6: Line 6:
 
<pre>
 
<pre>
 
## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command
 
## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command
# Dump
+
# Backup
00 20 * * * ksh -c '. $HOME/.profile <ADA_SID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <ADA_SID> -A Dump > $HOME/tmp/Dump_<ADA_SID>.log 2>&1'
+
00 20 * * * ksh -c '. $HOME/.profile <DBID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <DBID> -A Backup > $HOME/tmp/Backup_<DBID>.log 2>&1'
# Optimize
+
# DeleteCheckpoints
00 04 * * 6 ksh -c '. $HOME/.profile <ADA_SID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <ADA_SID> -A Optimize > $HOME/tmp/Optimize_<ADA_SID>.log 2>&1'
+
#00 04 * * 6 ksh -c '. $HOME/.profile <DBID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <DBID> -A DeleteCheckpoints > $HOME/tmp/DeleteCheckpoints_<DBID>.log 2>&1'
# Analyze
+
# Reorg
00 05 * * 6 ksh -c '. $HOME/.profile <ADA_SID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <ADA_SID> -A Analyze > $HOME/tmp/Analyze_<ADA_SID>.log 2>&1'
+
#00 05 * * 6 ksh -c '. $HOME/.profile <DBID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <DBID> -A Reorg > $HOME/tmp/Reorg_<DBID>.log 2>&1'
 
</pre>
 
</pre>
 
<br>
 
<br>

Latest revision as of 18:51, 23 February 2018

Configuration file $gvsqw_AdaBin/../etc/sqwada_CreInst_CrontabRef.cfg:



File content:

## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command
# Backup
00 20 * * * ksh -c '. $HOME/.profile <DBID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <DBID> -A Backup > $HOME/tmp/Backup_<DBID>.log 2>&1'
# DeleteCheckpoints
#00 04 * * 6 ksh -c '. $HOME/.profile <DBID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <DBID> -A DeleteCheckpoints > $HOME/tmp/DeleteCheckpoints_<DBID>.log 2>&1'
# Reorg
#00 05 * * 6 ksh -c '. $HOME/.profile <DBID>;$gvsqw_AdaBin/sqwada_RunJob.ksh -I <DBID> -A Reorg > $HOME/tmp/Reorg_<DBID>.log 2>&1'