select ADDRESS, HASH_VALUE from V$sqlarea where SQL_ID ='sqlid';
BEGIN
DBMS_SHARED_POOL.PURGE('C0000008F304C620',2219163920,'C');
END;
/
Set linesize 120
select 'on Inst '||inst_id||' execute DBMS_SHARED_POOL.PURGE('||''''||ADDRESS||','|| HASH_VALUE ||''''||','||''''||'C'||''''||');' "Execute Below to flush PLAN" from GV$SQLAREA where SQL_ID like 'adpk6gy24bh8h'
/
Execute Below to flush PLAN
----------------------------------------------------------------------------------
on Inst 1 execute DBMS_SHARED_POOL.PURGE('C0000008F304C620,2219163920','C');
on Inst 2 execute DBMS_SHARED_POOL.PURGE('C0000008E71CE550,2219163920','C');