ORA-10173: Dynamic sampling time-out error
Note ----- - dynamic statistics used: dynamic sampling (level=AUTO) As always, to determine whether or not this feature is helpful or harmful to your applications: benchmark it. You probably don't want to turn it off system-wide, but it may make a lot of sense to disable it for certain sessions, or certain queries in your application. The ORA-10173 you may see in the alert log however is no reason to panic, if your application is not negatively impacted. If you are mostly running queries that take minutes or longer to execute, spending a couple seconds gathering more statistics may not impact you. If on the other hand your queries are fast, and Oracle spends more time parsing and sampling than it actually takes to execute the query, or you are seeing loads and loads of ORA-10173, you may want to take action. Alternatively you may also resort to setting a _fix_control as mentioned in Slava's post - but as always, double-check with Oracle support if setting it has the desired effect on your exact version of Oracle. In essence, the ORA-10173 indicates wasted work, because Oracle is spending time gathering data, hits the timeout and then throws the partial data away since it's incomplete. This certainly isn't optimal, but again, your mileage may vary if this really impacts your applications. In our case, we are seeing thousands of them, and we have opened a case with Oracle, since obviously somewhere the optimizer keeps making the wrong choice. The bug is currently still with BDE but I shall keep you posted if anything develops. Another thing worth noting is that Oracle stores the results of these dynamic sampling queries in the result cache, and marks them for expiration after a certain time has elapsed. This timeout that we are seeing with the result_cache(snapshot=3600) hint, comes from the hidden parameter _optimizer_ads_result_cache_life which defaults to 3600 in 12.1.0.2. This may also help in reducing the frequency of the dynamic sampling queries by increasing the lifetime for which they remain cached. But as always, before changing any hidden parameters, please consult with your local Oracle support representative! Discover more about our expertise in the world of Oracle.
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Why locking Oracle accounts is a bad idea
Why locking Oracle accounts is a bad idea
Dec 10, 2015 12:00:00 AM
2
min read
Troubleshooting an enterprise user security database login and sudden ORA-12154

Troubleshooting an enterprise user security database login and sudden ORA-12154
May 30, 2019 10:19:00 AM
4
min read
Oracle Data Pump Can't Import LONG Columns
Oracle Data Pump Can't Import LONG Columns
Oct 30, 2006 12:00:00 AM
2
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.