Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I want to benchmark some queries on an oracle System from a JDBC application.

However, the database seems to cache at some point in time. However, this is not intended in this case.

Is there anything like the MySQL query hint SQL_NO_CACHE.

There are Oracle query hintes /*+ FULL(test) */ and there is even the CACHE hint, but they concern whether the query results goes to the cache at all ...

What can I do on an Oracle System to get rid of any caching?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Using an account that has the ALTER SYSTEM privilege:

alter system flush shared_pool;

followed by:

alter system flush buffer_cache;
share|improve this answer
    
Thanks, this makes the results allready better. Though I am not sure yet if nothing else is cached ... –  Felix Mar 8 '12 at 8:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.