Quantcast
Channel: DBA Sky » Oracle
Viewing all articles
Browse latest Browse all 20

Using dbms_shared_pool.purge in 10.2.0.4

$
0
0

As you may know, we can use dbms_shared_pool.purge in 11g, but do you know that we can also use this procedure in 10.2.0.4. following is the steps:

1. create dbms_share_pool.purge procedure.
SQL> @?/rdbms/admin/dbmspool
Package created.
Grant succeeded.
View created.
Package body created.

for 10.2.0.4, you may need to set the event 5614566 firstly to use purge procedure, Please refer to metalink doc: ID 751876.1 for the setting of event 5614566
=========
Set the event 5614566 in the init.ora to turn purge on.

event=”5614566 trace name context forever”

SQL> select address, hash_value from v$sqlarea where sql_text = ’select * from dept’;

ADDRESS HASH_VALUE
——– ———-
2671F27C 3599690174

SQL> exec dbms_shared_pool.purge(’2671F27C,3599690174′,’C’);

PL/SQL procedure successfully completed.

SQL> select address, hash_value from v$sqlarea where sql_text = ’select * from dept’;

no rows selected


Viewing all articles
Browse latest Browse all 20

Trending Articles