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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBMS_SHARED_POOL.KEEP

RE: DBMS_SHARED_POOL.KEEP

From: Lord, David - CSG <David.Lord_at_hayscsg.com>
Date: Thu, 18 Apr 2002 06:43:25 -0800
Message-ID: <F001.00447D87.20020418064325@fatcity.com>


Um, why can't you do this...  

create or replace procedure pin_packages_defined as sql_sentence varchar2(200);
cursor_name INTEGER;
rows_processed INTEGER;
CURSOR tab_cur IS SELECT owner,object_name FROM arsiv.pin_aday_objeler; tab_row tab_cur%ROWTYPE;
BEGIN
FOR tab_row IN tab_cur LOOP

    DBMS_SHARED_POOL.KEEP(tab_row.owner||'.'||tab_row.object_name); END LOOP; -----Original Message-----
Sent: 18 April 2002 09:28
To: Multiple recipients of list ORACLE-L

I want to pin most run packages , I have loeded them into a table. For this I have written ,  

create or replace procedure pin_packages_defined as sql_sentence varchar2(200);
cursor_name INTEGER;
rows_processed INTEGER;
CURSOR tab_cur IS SELECT owner,object_name FROM arsiv.pin_aday_objeler; tab_row tab_cur%ROWTYPE;
BEGIN
FOR tab_row IN tab_cur LOOP
--EXECUTE IMMEDIATE 'EXEC
SYS.DBMS_SHARED_POOL.KEEP('||tab_row.owner||'.'||tab_row.object_name||')'; cursor_name := dbms_sql.open_cursor;
sql_sentence
:='SYS.DBMS_SHARED_POOL.KEEP('''||tab_row.owner||'.'||tab_row.object_name||' '')';

dbms_output.put_line(sql_sentence);
dbms_sql.parse(cursor_name,sql_sentence, dbms_sql.native);
rows_processed := dbms_sql.execute(cursor_name);
dbms_sql.close_cursor(cursor_name);

END LOOP;
END; But , It does not execute , Is it impossible to execute DBMS_SHARED_POOL.KEEP dynamically ...I tried DBMS_JOB , It did not work too.

How can I do this?      

Bunyamin K. Karadeniz
Oracle DBA / Developer
Civilian IT Department
Havelsan A.S. Eskisehir yolu
7.km Ankara Turkey
Phone: +90 312 2873565 / 1217
Mobile : +90 535 3357729  

The degree of normality in a database
is inversely proportional to that of its DBA.



This message (including any attachments) is confidential and may be legally privileged. If you are not the intended recipient, you should not disclose, copy or use any part of it - please delete all copies immediately and notify the Hays Group Email Helpdesk at email.helpdesk_at_hays.plc.uk
Any information, statements or opinions contained in this message
(including any attachments) are given by the author. They are not
given on behalf of Hays unless subsequently confirmed by an individual other than the author who is duly authorised to represent Hays.  

A member of the Hays plc group of companies. Hays plc is registered in England and Wales number 2150950. Registered Office Hays House Millmead Guildford Surrey GU2 4HJ.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Lord, David - CSG
  INET: David.Lord_at_hayscsg.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Thu Apr 18 2002 - 09:43:25 CDT

Original text of this message

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