Performance issue of batch.
Every year during the 4th quarter, huge amount of data gets inserted to a couple of temp tables. A batch processes this data into main tables. We have seen for the past two years that the batch is having performance issues when large amount of data is present in temp tables.
For example, for 30k records in temp tables, the batch aborts with unable-to-extend-temp-segment-by-128-in-tablespace-system error. We tried gather stats on the temp tables but it did not work. We had to process the data in chunks.
But the very next day, for the same amount of data, the batch completed in 1 minute.