- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Pinning objects in the library cache
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:00 PM
тАО03-26-2007 11:00 PM
Pinning objects in the library cache
Can anybody tell me if we can pin SELECT statements to the library cache using dbms_shared_pool or they should be converted to PL/SQL blocks to pin them?
Please help me in this regard.
Regards
Subodh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:21 PM
тАО03-26-2007 11:21 PM
Re: Pinning objects in the library cache
I believe the syntax is:
execute dbms_shared_pool.keep('package');
Keep an eye on your hit ratio!
Interesting doc:
www.apress.com/ApressCorporate/supplement/1/92/1590590228-994.pdf
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
You have only awarded points to 1 of 9 answers !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:23 PM
тАО03-26-2007 11:23 PM
Re: Pinning objects in the library cache
I recommend you seek help through Oracle support, or an Oracle specific forum. If you do, be sure to specify the exact version.
Regards,
Hein van den Heuvel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:29 PM
тАО03-26-2007 11:29 PM
Re: Pinning objects in the library cache
example
SELECT USERNAME FROM DBA_USERS;
somethin of that sort.
Regards
Subodh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 11:34 PM
тАО03-26-2007 11:34 PM
Re: Pinning objects in the library cache
I don't thing you can pin an individual select statement. The closest is probably the cursor pin.
See:
http://www.unix.org.ua/orelly/oracle/bipack/ch12_02.htm Section 12.2.4.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 08:16 PM
тАО03-27-2007 08:16 PM
Re: Pinning objects in the library cache
usualyy are pinned the package and function most used and that required large portion of memory. Good practice is to pin them when the datasbe ha sbeen reboot to avoid to invalidate object making this online.
Usually a set of Oracle package are pinned to increase perfomance:
--- SYS USER
exec dbms_shared_pool.keep('SYS.STANDARD');
exec dbms_shared_pool.keep('SYS.DBMS_SYS_SQL');
exec dbms_shared_pool.keep('SYS.DBMS_LOCK');
exec dbms_shared_pool.keep('SYS.DBMS_SQL');
exec dbms_shared_pool.keep('SYS.DBMS_APPLICATION_INFO');
exec dbms_shared_pool.keep('SYS.DBMS_OUTPUT');
exec dbms_shared_pool.keep('SYS.DBMS_PIPE');
exec dbms_shared_pool.keep('SYS.DBMS_ALERT');
exec dbms_shared_pool.keep('SYS.DBMS_STANDARD');
exec dbms_shared_pool.keep('SYS.DBMS_UTILITY');
exec dbms_shared_pool.keep('SYS.DBMS_SQL');
plus your package/function/cursors.
to identify most used/loaded objects:
clear column
col Stmt for a50
select
sql_text "Stmt",
count(*),
sum(sharable_mem) "Mem",
sum(users_opening) "Open",
sum(executions) "Exec"
from
v$sql
group by
sql_text
having
sum(sharable_mem) > 5000000
/
HTH,
Art