I'm tuning SQL queries on an Oracle database. I want to ensure that all cached items are cleared before running each query in order to prevent misleading performance results. I clear out the shared pool (to get rid of cached SQL/explain plans) and buffer cache (to get rid of cached data) by running the following commands:
alter system flush buffer_cache;
alter system flush shared_pool;
Is there more I should be doing, or is this sufficient?
Thanks!