Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_shared_pool.keep

Re: dbms_shared_pool.keep

From: Steve Howard <stevedhoward_at_gmail.com>
Date: 13 Apr 2007 17:16:35 -0700
Message-ID: <1176509795.538484.192860@y5g2000hsa.googlegroups.com>


On Apr 13, 7:40 pm, haiwu..._at_gmail.com wrote:
> I did the following:
> SQL> exec SYS.DBMS_SHARED_POOL.KEEP('SYS.STANDARD','P');
>
> PL/SQL procedure successfully completed.
>
> SQL> select namespace, kept from v$db_object_cache where name like
> 'DBMS_STANDARD%';
>
> NAMESPACE KEP
> ----------------------------------- ---
> TABLE/PROCEDURE YES
> BODY NO
>
> It shows the package body is NOT kept. Is this expected behavior? This
> is Oracle10g 10.1.0.4.2.
>
> Thanks,
> Hai

Shouldn't your check query be for STANDARD%?

SQL> exec SYS.DBMS_SHARED_POOL.KEEP('SYS.STANDARD','P');

PL/SQL procedure successfully completed.

SQL> select namespace, kept from v$db_object_cache where name like 'STANDARD%';

NAMESPACE                    KEP
---------------------------- ---
BODY                         YES
TABLE/PROCEDURE              YES

SQL> HTH, Steve Received on Fri Apr 13 2007 - 19:16:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US