您的位置:首页 > 其它

Latches and Tuning:Latches

2010-12-27 21:26 148 查看
1. Query the V$FIXED_TABLE to determine the V$ views that provide latch information.
a. Execute the following query:> select name from v$fixed_table where name like 'V$LATCH%';
2. Remember that there are 14 levels of latches, numbered 0 – 13.
a. Take a look at three common latches and their level by executing the following query:> select name, level# from v$latch where name in
('cache buffers chain','library cache','redo allocation');

You may or may not see each of these latches listed depending upon the state and activity on your database.
3. Each parent and child latch has one instance in X$KSLLT.
a. Execute the following query to view a KSLLT structure for a latch:> select v$latch_parent.addr,v$latch_parent.level#,v$latch_parent.latch#,
v$latch_parent.name
from v$latch_parent,x$ksllt
where v$latch_parent.addr = x$ksllt.addr;

You should at least see information for the ‘latch wait list’ latch. However, your results will vary depending upon the state and activity of your database.
4. Using the latch# from the previous query, you can query the X$KSLLD table to see the array of latch descriptors.本文出自 “Ask Maclean Liu Oracle” 博客,请务必保留此出处http://maclean.blog.51cto.com/2923249/1277673
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: