F回滚段的争用情况
5/5/ 3/
04104G
51*G+
&,-中重做日志缓存区的命中率
,8981//////
G##/ !"##/"
G//:///##
/// //:///!"##/$
;3<04A2838=@%/%%%+
10 查看磁盘碎片
select tablespace_name,sqrt(max(blocks)/sum(blocks))*
(100/sqrt(sqrt(count(blocks)))) FSFI
from dba_free_space
group by tablespace_name order by 1;
SELECT * FROM dba_tables where tablespace_name = 'GENERAL2'
--
表的碎片化是很头疼的一个问题 你可以使用
dbms_space
来测量表的高低水位 然后可以
通过表的实际空间来衡量
--
你要是一定要问一个简单的办法 我一般比较
dba_tables.avg_space.
如果这个值相对
block_size
比较大 那肯定有碎片了
11 Parse to execute ratio:在生产环境,最理想状态是一条 sql 语句一次解析多数运
行。
select (a.value/b.value) "Parse to execute ratio"
from v$sysstat a,v$sysstat b
where a.name='parse count (total)' and b.name='execute count';
(对于由游标循环处理的 plsql 段,这个值会比较高。)
12 Parse CPU to total CPU ratio:该项显示总的 CPU 花费在执行及解析上的比率。
如果这项比率较低,说明系统执行了太多的解析。
公式:(parse time cpu / CPU used by this session)
执行:
select (a.value/b.value) "Parse CPU to total CPU ratio"
from v$sysstat a,v$sysstat b
where a.name='parse time cpu' and
评论0