In 11g, we can flush a particular sql out of shared pool (also available in 10.2.0.4 by applying patch)
select ‘exec dbms_shared_pool.purge(”’||ADDRESS||’,’||HASH_VALUE||”’,”C”)’ from V$SQLAREA where SQL_ID=’&sqlid’;
In a RAC environment, you optionally specify the INST_ID, shown when querying the GV$SESSION view. This allows you to kill a session on different RAC node.
ALTER SYSTEM KILL SESSION ‘sid,serial#,@inst_id’;
ALTER SYSTEM KILL SESSION ‘sid,serial#,@inst_id’ immediate;
Recent Comments