Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

flushing individual statement out of shared pool

User_9KYH7Jul 30 2017 — edited Jul 31 2017

Hi,

I am trying to flush a single statement out of shared pool, But i am still seeing it in v$SQLAREA can someone explain to me why is this behaviour. The db version is 11.1.0.7

SQL> select ADDRESS, HASH_VALUE from V$SQLAREA where SQL_ID like '9bw30rtanspj1%';

ADDRESS          HASH_VALUE

---------------- ----------

000000052F9ACCA8 1431066145

SQL> exec DBMS_SHARED_POOL.PURGE ('000000052F9ACCA8, 1431066145', 'C');

PL/SQL procedure successfully completed.

SQL> select inst_id,ADDRESS, HASH_VALUE from gV$SQLAREA where SQL_ID like '9bw30rtanspj1%';

   INST_ID ADDRESS          HASH_VALUE

---------- ---------------- ----------

         2 000000054F41B5C8 1431066145

         1 000000052F9ACCA8 1431066145

This post has been answered by Jonathan Lewis on Jul 30 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2017
Added on Jul 30 2017
17 comments
4,867 views