C H A P T E R 9 |
Batch Processing |
This chapter describes problems related to running batch jobs in Sun MTP. It contains the following topics:
By their nature, batch programs are long running. If recovery is enabled, records remain locked until the program that is updating them issues a SYNCPOINT. This can cause users who run online transactions that update the same records to wait a long time.
If you enable recovery for batch programs, your programs should issue SYNCPOINTS at regular intervals. This commits any updates and enables other users to access the updated records. You should also write the programs so that they are restartable. In other words, on a restart, the programs must not try to update records that are already committed.
You should disable recovery for long running batch programs. Refer to the Sun Mainframe Transaction Processing Software Developer's Guide for information about disabling recovery.
The Batch search interval field in the VCT controls how often Sun MTP inquires for batch jobs waiting to run.
Set this field to any number of seconds from 1 to 9999. The default is 120 seconds.
Setting this field to a high value can degrade performance.
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.