楼主: mugen

[精华] RAC student guide 的中文笔记

[复制链接]
论坛徽章:
20
ITPUB元老
日期:2005-04-12 20:54:27授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
21#
 楼主| 发表于 2004-11-12 15:29 | 只看该作者
十. 监控和调整

        创建rac的视图
                $oracle_home/rdbms/admin/catclust.sql

        ORACLE PERFORMANCE MANAGER
                诊断包的一部分
                与企业管理器的选项
                图形显示实例(v$),cluster数据库(gv$)的统计
       
        Statspack       
                Spcreate.sql
                Connect perfstat/perfstat
                @spreport.sql

        statspack cluster的统计
                这个报告里面有关于cluster的部分
                        gcs的工作负荷的特性
                        ges的统计信息
                        gcs和ges的信息统计
                        ges的详细统计
       
        select name,value,from v$sysstat
                where name like ‘%global cache%’;

        Global cache service request latency
                在一个完整block请教中计算平台延时的公式
                        global cache cr block receive time
                 glocal cache cr bloacks received
       
                这个结果是百分之一秒

        Global cache service 请求的延时
       
                构成一个完整读快的平均时间
                                a=(global cache cr block build time) /(global cache cr blocks served)
                等待log flush的平均时间
                                b=(global cache cr block flush time)/(global cache cr blocks served)
                发送完整快的平均时间
                                c=(global cache cr block send time)/(global cache cr blocks served)
                平均的lms服务时间
                        平均的延时-a – b – c

        监控当前的块的处理
        当前的快的平均延时       
                (global cache current block receive time / global cache current blocks received ) –
( global cache current block pin time + global cache current block flush time + global cache current block send time ) / (global cache current blocks served)

        这个值比较高,数码有可能在buffers,cpu cycles或interconnect 访问有可能竞争.

        监控block 模式的转换
                平均转换时间(毫秒)
                        10*(global cache convert time)/ (global cache converts)
                平均get时间(毫秒)
                        10*(global cache get time)/(global cache gets)
                下面的统计计算了超时
                        global cache convert timeouts;

        分析global enqueue统计
1.        收集global统计数据
a)        监控statspack ges统计部分
b)        查v$sysstat
2.        计算平均global enqueue时间
3.        计算平均global锁转换时间
4.        确定可能导致文件的资源类型
5.        使用v$librarycache 和v$rowcache视图来进行进一步的分析

select name, value
from v$sysstat
where name like ‘%global lock%’;


计算平均global enqueue时间
        毫秒
10*(global lock get time) / (global lock sync gets + global lock async gets)

计算平均global lock convert时间 (毫秒)

10*(global lock convert time) / (global lock sync converts + global lock async converts)

select event,time_waited,average_wait
from v$system_event
order by time_waited desc;

进一步的分析通过视图
       

select namespace ,dlm_lock_request,
        dlm_pin,requests,
        dlm_pin_releasees,
        dlm_invalidation_requests,
        dlm_invalidations
from v$librarycache;
       

        select parameter, dlm_requests,
                dlm_conflicts,dlm_releasees
        from v$rowcache;

        监控global enqueue 服务资源统计
                加入统计
                        EVENT =” 29700 TRACE NAME CONTEXT FOREVER”
                查统计结果
                        v$ges_convert_local
                        v$ges_convert_remote

        分析global enqueue服务资源统计
                select r.convert_type,
                         r.average_convert_time,
                         l.average_convert_time,
                         r.convert_count,
                         l.convert_count
                from v$ges_convert_local l.
                         v$ges_convert_remote r
                where r.convert_count <> 0
                or    l.convert_count <>0
                group by r.convert_type;

        其它的视图来查询资源活动

                v$lock_activity
                v$class_cache_transfer
                v$cache_transfer
                v$file_cache_transfer

        V$system_evnet 视图
                事务的响应时间
                        response time/number of transaction =
                        cpu time /number of transactions +
                        wait time /number of transactions

        RAC在v$system_evnet中的事件
                Global cache cr request
                Library cache pin
                Buffer busy due to global cache
                Global cache busy
                Global cache open x
                Global cache open s
                Global cache null to x
                Global cache s to x
                Global cache null to s

        调整实例之间性能的观察
                select paramater ,count
                        dlm_requests,
                        dlm_conflicts,
                        dlm_releasees
                from v$rowcache;
               
                select namespace,dlm_lock_requests,
                                dlm_pin_requests,
                                dlm_pin_releases,
                                dlm_invalidation_requests,
                                dlm_invalidations
                from v$librarycache;
       
        调优战略
               
                收集基线数据
                监控统计跟基线数据进行比较
                只有在性能降低到不可以接受的水平才去调优
                要监控跟cluster db无关的因素
                address causes为更高水平的竞争.

       
               
               
the end!

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-04-12 20:54:27授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
22#
 楼主| 发表于 2004-11-12 15:32 | 只看该作者
word文档.
如果有错误,希望大家能指正.谢谢

rac student guide notes.doc

105.5 KB, 下载次数: 1333

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
21
授权会员
日期:2005-10-30 17:05:332012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:36马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:36
23#
发表于 2004-11-12 15:33 | 只看该作者
真不错!加精先

使用道具 举报

回复
论坛徽章:
4
授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34ITPUB元老
日期:2007-05-15 19:49:36秀才
日期:2016-01-13 12:14:26
24#
发表于 2004-11-12 15:56 | 只看该作者
好,继续努力。

使用道具 举报

回复
论坛徽章:
4
授权会员
日期:2005-10-30 17:05:33ITPUB元老
日期:2006-01-04 23:54:55会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53
25#
发表于 2004-11-12 20:30 | 只看该作者
呵呵,很早看过,

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
26#
发表于 2004-11-16 11:27 | 只看该作者
替楼主转换成了PDF格式的啦

rac student guide notes.pdf

49.1 KB, 下载次数: 844

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-04-12 20:54:27授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
27#
 楼主| 发表于 2004-11-16 11:48 | 只看该作者
我有很多错字呢,拼写错误.都懒的改

使用道具 举报

回复
论坛徽章:
2
开发板块每日发贴之星
日期:2005-08-30 01:02:31会员2006贡献徽章
日期:2006-04-17 13:46:34
28#
发表于 2004-11-17 10:32 | 只看该作者

good

thanks

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
29#
发表于 2004-11-18 14:48 | 只看该作者
好,非常感谢

使用道具 举报

回复
论坛徽章:
0
30#
发表于 2004-11-20 14:24 | 只看该作者

where is the ORACLE school?

where is the ORACLE school?

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表