After upgrading to the new server, upgrade the templates and jobs created by Job Scheduler.
Directories below jobscheduler remain the same.
Template | Modified Files | Datatype for <parameter> Changed from varchar(5) to int |
---|---|---|
dump database |
jst_dump_databases |
@use_srvr_name |
dump database log |
jst_dump_log |
@truncate_flag and @use_srvr_name |
update statistics |
jst_update_statistics |
@index_flag |
rebuild indexes |
jst_reorg_rebuild_indexes |
@dump_flag |
rebuild table |
jst_reorg_rebuild_tables |
@dump_flag |
reclaim indexes |
jst_reclaim_index_spac |
@dump_flag |
reclaim tables |
jst_reclaim_table_space |
@resume_flag |
If you have a job scheduled to run on a pre-16.0 server and you need it to also run on 16.0 servers, leave the existing job alone and create a new job for 15.7 ESD #2 servers, as the job commands are different.
You need not modify any jobs you run on pre-16.0 servers. The following table lists the templates that changed in version 3.0 and the changes you must make to jobs created from them.
Template | Modified File | Change Description | Job Modifications |
---|---|---|---|
delete statistics |
jst_delete_statistics |
Added @ptn_name as third parameter. | Optional. |
update statistics |
jst_update_statistics |
Added @ptn_name as fifth parameter, @datachg_threshold as the 10th parameter, and added reference. | Required. Include values (or NULL) for new parameters. |
rebuild indexes |
jst_reorg_rebuild_indexes |
Added @ndx_ptn_name as third parameter. | Required. Include value (or NULL) for new parameter. |
reclaim indexes |
jst_reclaim_index_space |
Added @ptn_name as third parameter. | Required. Include value (or NULL) for new parameter. |
reclaim tables |
jst_reclaim_table_space |
Added @ptn_name as second parameter. | Required. Include value (or NULL) for new parameter. |
multiple | jst_get_freespace , jst_get_usedspace | Replace reserved_pgs and data_pgs with reserved_pages and data_pages. | No impact on job SQL. |
cd $SYBASE/$SYBASE_ASE/jobscheduler/Templates/sprocs
Run the stored procedure installation script for each server being upgraded:
installTemplateProcs <servername> <username> <password>
cd $SYBASE/$SYBASE_ASE/jobscheduler/Templates/xml
installTemplateXml servername machinename serverport username password [language_code]Use "en" for the language_code or omit the parameter completely, as "en" is the default.