how do i clear oracle execution plan cache for benchmarking?

前端 未结 3 1824
面向向阳花
面向向阳花 2020-12-07 19:10

On oracle 10gr2, i have several sql queries that i am comparing performance, but after first run, the v$sql table has the execution plan stored for caching, so for one of th

3条回答
  •  眼角桃花
    2020-12-07 19:43

    It's been a while since I worked with Oracle, but I believe execution plans are cached in the shared pool. Try this:

    alter system flush shared_pool;
    

    The buffer cache is where Oracle stores recently used data in order to minimize disk io.

提交回复
热议问题