During one of the recent releases at work we ran into problems during performance testing of a new feature. This feature worked flawlessly in development and test environments but once hit with a heavy load, it started to manifest itself. Every now and then we'd get the following exception from the JDBC driver - ORA-01555: snapshot too old: rollback segment number with name "" too small.
Oracle Support already has a document that covers this error and the many different causes and solutions for it - Master Note for ORA-1555 Errors (Doc ID 1307334.1), however none of those seemed to have been the cause for the issue in our case.
This was the stack trace we were seeing...
So the issue had something to do with CLOBs. After much investigation and collaboration we received some advise about removing the cache option from the CLOB column on the table that we knew was causing this issue.
The cache option can be checked with the following query...
Originally this was set to YES in our case. To disable/remove the cache option, the following SQL was used...
After this statement was executed the cache option was disabled. In our case this made all of the ORA-01555 errors disappear. If it doesn't help you, refer to the Oracle support note mentioned at the start of this post.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...