Difference between revisions of "SQWareProduction:sybase:etc:sqwsyb CreDs CrontabRef.cfg"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 5: | Line 5: | ||
File content: | File content: | ||
<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 | ||
− | ## | + | ## <lvsqw_Dataserver> |
− | 00 23 * * 1-5 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh - | + | ## Dump full |
+ | 00 23 * * 1-5 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A DumpFull 2>&1 >~/tmp/DumpFull_<lvsqw_Dataserver>.log' | ||
## Checkstorage | ## Checkstorage | ||
− | 00 12 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh - | + | 00 12 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A Checkstorage 2>&1 >~/tmp/Checkstorage_<lvsqw_Dataserver>.log' |
## Reorg | ## Reorg | ||
− | 00 04 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh - | + | #00 04 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A Reorg 2>&1 >~/tmp/Reorg_<lvsqw_Dataserver>.log' |
− | ## Update | + | ## Update Statisticsistics |
− | 00 01 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh - | + | #00 01 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A UpdateStats 2>&1 >~/tmp/UpdateStats_<lvsqw_Dataserver>.log' |
+ | # Update index Statisticsistics all databases + Reorg all databases (NoWaitFlag) | ||
+ | 00 01 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A UpdtStatsRebuild 2>&1 >~/tmp/UpdtStatsRebuild_<lvsqw_Dataserver>.log' | ||
</pre> | </pre> | ||
<br> | <br> |
Revision as of 17:35, 5 April 2014
Configuration file $gvsqw_SybBin/../etc/sqwsyb_CreDs_CrontabRef.cfg:
File content:
################################## ## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command ## <lvsqw_Dataserver> ## Dump full 00 23 * * 1-5 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A DumpFull 2>&1 >~/tmp/DumpFull_<lvsqw_Dataserver>.log' ## Checkstorage 00 12 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A Checkstorage 2>&1 >~/tmp/Checkstorage_<lvsqw_Dataserver>.log' ## Reorg #00 04 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A Reorg 2>&1 >~/tmp/Reorg_<lvsqw_Dataserver>.log' ## Update Statisticsistics #00 01 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A UpdateStats 2>&1 >~/tmp/UpdateStats_<lvsqw_Dataserver>.log' # Update index Statisticsistics all databases + Reorg all databases (NoWaitFlag) 00 01 * * 6 ksh -c '. $HOME/.profile <lvsqw_Dataserver>;$gvsqw_SybBin/sqwsyb_RunJob.ksh -I <lvsqw_Dataserver> -A UpdtStatsRebuild 2>&1 >~/tmp/UpdtStatsRebuild_<lvsqw_Dataserver>.log'