Q

Analyzing stagnant databases

If the database has been sitting around, and no access to it has been granted for over five months, would it still need to be analyzed if I return on the sixth month and run query, and it takes forever, and I notice that it has not been analyzed during its stagnant time?

If the database has truly been idle (that's what I'm assuming you mean by stagnant) and no activity has occurred during that time, then the statistics should still be current. For example, if you had a "read only" database that was periodically loaded with data, you'd only need to run statistics after the load and not again until the next load. This is because nothing is changing. Statistics need to be generated as data changes (inserts/updates/deletes). If those things are not happening, statistics won't change.

For More Information


This was first published in April 2003

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close