Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Shared Pool Tuneup
Here we are talking about objects other than tables like package, package
body and procedures etc which are pinned through shared pool package.
To start with you can make candidates such objects which are executed around 100 times and are also loaded frequently. This is a continous process to monitor and keep pinning such objects. Pinning through a sql file is more practical as you can remove/add those objects from your sql files and it will run and pinned whenever you bounce your database.
I hope it clarifies....
Regards
Rafiq
Reply-To: ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
Date: Tue, 21 May 2002 14:03:52 -0800
Thanks for reply, I run the query for number of execution bigger than 50 and
find out few tables in the list, my question is if for example one table
executed more than 100 times can we pined the table into memory, so if YES
what about all the DML on this table.
Thanks
-----Original Message-----
Sent: Tuesday, May 21, 2002 1:44 PM
To: Multiple recipients of list ORACLE-L
Hamid,
Madhu is right. But comination of execution and load will be more practical .Run following query and see number of executions...
select substr(c.owner,1,5)"OWNER",substr(c.name,1,25)"name",
round(c.sharable_mem / 1024) K, c.loads, c.executions, c.kept from v$db_object_cache c, sys.obj$ o, sys.user$ u
and u.user# = o.owner#
and o.name = c.name
-- and o.type in (7, 8, 9)
order by 4,2 desc
/
Once you decide to pin run following through a sql file at the time of startup script for database...(just an extract for your guidance)
EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.DBMS_APPLICATION_INFO'); EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.DBMS_DESCRIBE'); EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.DBMS_LOCK'); EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.DBMS_OUTPUT'); EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.DBMS_STANDARD'); EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.DBMS_UTILITY'); EXECUTE SYS.DBMS_SHARED_POOL.KEEP('SYS.STANDARD'); execute sys.dbms_shared_pool.keep('APPS.FND_DCP'); execute sys.dbms_shared_pool.keep('APPS.CSTPPWMX'); execute sys.dbms_shared_pool.keep('APPS.CSTPUTIL'); execute sys.dbms_shared_pool.keep('APPS.AP_APPROVAL_PKG'); execute sys.dbms_shared_pool.keep('SYS.PSTUBT');exit;
HTH,
Regards
Rafiq
Reply-To: ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
Date: Tue, 21 May 2002 12:26:53 -0800
Hamid,
what happens , if an object is getting executed once in a while but takes
huge sharable memory, we may not be getting full use of pinning it in the
shared pool, except wasting the memory, So we need to consider the number of
executions also. if the number of executions are high for any object/SQL,
its good idea to keep it in shared pool.
--Madhu
-----Original Message-----
Sent: Tuesday, May 21, 2002 2:47 PM
To: Multiple recipients of list ORACLE-L
Hi List,
I have run some scripts for Tune up shared pool,here is the result of one
script which i run :
Script:
SELECT name,sharable_mem
FROM v$db_object_cache
WHERE sharable_mem > 10000
AND (TYPE = 'PACKAGE' OR TYPE = 'PACKAGE BODY' OR
TYPE = 'FUNCTION' OR
TYPE = 'PROCEDURE')
AND KEPT = 'NO'
ORDER BY 2 DESC
here is the result:
NAME SHARABLE_MEM
----------------------------- --------------------------
DBMS_JAVA 56373 DBMS_STANDARD 24405 DBMS_UTILITY 24212 DBMS_SPACE_ADMIN 20832 DBMS_UTILITY 20508 DBMS_JAVA 15189 DBMS_OUTPUT 13063 DBMS_APPLICATION_INFO 12461 DBMS_SHARED_POOL 11148 DBMS_SHARED_POOL 10648
Question is, do i have to pin all of these objects in my shared_pool or NOT? Thanks
Hamid Alavi
Office 818 737-0526
Cell 818 402-1987
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Hamid Alavi
INET: hamid.alavi_at_quovadx.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Reddy, Madhusudana
INET: Madhusudana.Reddy_at_bestbuy.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
MOHAMMAD RAFIQ
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mohammad Rafiq
INET: rafiq9857_at_hotmail.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Hamid Alavi
INET: hamid.alavi_at_quovadx.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
MOHAMMAD RAFIQ
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mohammad Rafiq
INET: rafiq9857_at_hotmail.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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 Tue May 21 2002 - 18:07:20 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |