Getting Contiguous Space Currently in the Shared Pool(Oracle10g Tuning Technology)
2010-03-24 16:33
411 查看
Why does the shared pool return errors when an object is loaded? The answer is that a large
enough piece of the shared pool is not available to fit the piece of code. We saw in the last
section how to find the size of the code that you have. We also saw in a previous section how to
pin pieces of code into the shared pool. Now, we must look at the query that will tell you which
code, that has made it into the shared pool, is either very large and should be pinned or should
be investigated and shortened if possible.
The following query accesses an x$ table (see Chapter 15), and you must be the SYS user to
access these tables:
select ksmchsiz, ksmchcom
from x$ksmsp
where ksmchsiz > 10000
and ksmchcom like '%PL/SQL%';
This query shows that the packages that have been accessed are very large and should be
pinned at the time that the database has started. If the last line of this query is eliminated, it will
also show the large pieces of free memory (KSMCHCOM = ‘free memory’ and KSMCHCOM =
‘permanent memory’) that are still available (unfragmented) for future large pieces of code to be
loaded.
TIP
Query x$ksmsp to find all large pieces of PL/SQL that have appeared
in the shared pool. These are candidates to be pinned when the
database has started.
enough piece of the shared pool is not available to fit the piece of code. We saw in the last
section how to find the size of the code that you have. We also saw in a previous section how to
pin pieces of code into the shared pool. Now, we must look at the query that will tell you which
code, that has made it into the shared pool, is either very large and should be pinned or should
be investigated and shortened if possible.
The following query accesses an x$ table (see Chapter 15), and you must be the SYS user to
access these tables:
select ksmchsiz, ksmchcom
from x$ksmsp
where ksmchsiz > 10000
and ksmchcom like '%PL/SQL%';
This query shows that the packages that have been accessed are very large and should be
pinned at the time that the database has started. If the last line of this query is eliminated, it will
also show the large pieces of free memory (KSMCHCOM = ‘free memory’ and KSMCHCOM =
‘permanent memory’) that are still available (unfragmented) for future large pieces of code to be
loaded.
TIP
Query x$ksmsp to find all large pieces of PL/SQL that have appeared
in the shared pool. These are candidates to be pinned when the
database has started.
相关文章推荐
- failed to open the runspace pool. the server manager winrm plug-in might be corrupted or missing
- Allocationand Reuse of Memory in the Shared Pool
- Inaccurate values for “Currently allocated space” and “Available free space” in the Shrink File dialog for TEMPDB only
- How to Pin a Cursor in the Shared Pool using DBMS_SHARED_POOL.KEEP (文档 ID 726780.1)
- Shows the reason for multiple statement childs in shared pool
- <转> 解决异常:IllegalStateException: Fragment <ThisFragment> is not currently in the FragmentManager
- An instance of getting the maximum and minimum values in an array
- ERROR: The Nouveau kernel driver is currently in use by your system.
- Getting the scrollbar width in pixels
- Azure 删除VHD时报错:There is currently a lease on the blob and no lease ID was specified in the request
- Cannot currently modify this text in the editor
- Fix the problem: java.lang.OutOfMemoryError: PermGen space in Java development
- 获取peergroup的所有peers(Getting a list of the peers in a PeerGroup)
- To run dex in process, the Gradle daemon needs a larger heap. It currently has 1024 MB. For faster b
- How To change the Port Pool in the E-Business Suite
- Getting the absolute path in ASP.NET
- "The connection for the USB device '###' was unsuccessful. The device is currently in use"
- Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
- Gathering Initial Troubleshooting Information for Analysis of ORA-4031 Errors on the Shared Pool