When the batch processor is configured to use multiple
threads, transactions can potentially fail due to problems with managing
more than one thread, such as deadlocks and duplicate keys.
About this task
There are two ways to prevent this type of failure.
Procedure
- Configure the batch processor to use a single thread.
- Open Batch.properties.
- Change the value of the
Submitter.number
property to 1.
- Save your changes.
- Configure the batch processor to employ deadlock retries
so that it will resubmit any transactions that fail at runtime.
- Open Batch.properties.
- Change the properties related deadlock retries, as follows,
to enable deadlock retries.
deadlockRetryErrorCodeList=
deadlockRetryErrorStringList=SQLCODE=-911,SQLCODE=-913,ORA-00370,ORA-02049,ORA-00060,CDKCS0001E
deadlockMaxRetries=1
- Save your changes.
Tip: Alternatively, you can change the deadlock
retry settings using one of the configuration override options.