Difference between revisions of "SQWareProduction:db2:etc:sqwdb2 CreInst CrontabRef.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
 
m (Updated by BatchUser)
 
Line 7: Line 7:
 
## 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
 
# Backup
 
# Backup
00 20 * * * ksh -c '. $HOME/.profile <DB2INSTANCE>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <DB2INSTANCE> -A Backup > $HOME/tmp/Backup_<DB2INSTANCE>.log 2>&1'
+
00 20 * * * ksh -c '. $HOME/.profile <lvsqw_InstanceParam>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <lvsqw_InstanceParam> -A Backup > $HOME/tmp/Backup_<lvsqw_InstanceParam>.log 2>&1'
 
# Reorganize
 
# Reorganize
00 03 * * 6 ksh -c '. $HOME/.profile <DB2INSTANCE>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <DB2INSTANCE> -A Reorganize > $HOME/tmp/Reorganize_<DB2INSTANCE>.log 2>&1'
+
00 03 * * 6 ksh -c '. $HOME/.profile <lvsqw_InstanceParam>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <lvsqw_InstanceParam> -A Reorganize > $HOME/tmp/Reorganize_<lvsqw_InstanceParam>.log 2>&1'
 
# RunStats
 
# RunStats
00 05 * * 6 ksh -c '. $HOME/.profile <DB2INSTANCE>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <DB2INSTANCE> -A RunStats > $HOME/tmp/RunStats_<DB2INSTANCE>.log 2>&1'
+
00 05 * * 6 ksh -c '. $HOME/.profile <lvsqw_InstanceParam>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <lvsqw_InstanceParam> -A RunStats > $HOME/tmp/RunStats_<lvsqw_InstanceParam>.log 2>&1'
 
</pre>
 
</pre>
 
<br>
 
<br>

Latest revision as of 18:32, 22 December 2017

Configuration file $gvsqw_D2db2Bin/../etc/sqwdb2_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 <lvsqw_InstanceParam>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <lvsqw_InstanceParam> -A Backup > $HOME/tmp/Backup_<lvsqw_InstanceParam>.log 2>&1'
# Reorganize
00 03 * * 6 ksh -c '. $HOME/.profile <lvsqw_InstanceParam>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <lvsqw_InstanceParam> -A Reorganize > $HOME/tmp/Reorganize_<lvsqw_InstanceParam>.log 2>&1'
# RunStats
00 05 * * 6 ksh -c '. $HOME/.profile <lvsqw_InstanceParam>;$gvsqw_Db2Bin/sqwdb2_RunJob.ksh -I <lvsqw_InstanceParam> -A RunStats > $HOME/tmp/RunStats_<lvsqw_InstanceParam>.log 2>&1'