以前从来没有遇到过如此的问题,特别是gcs drm freeze in enter server mode等待事件,是DRM特性。在影响用户的角度分析,执行频繁的insert语句很慢,我想原因与两个,一是插入的时候需要读取待插入数据块,二是需要读取待插入的索引块,还有索引的分裂。数据块在节点之间来回传输导致等待。

Top 10 Foreground Events by Total Wait Time

Event Waits Total Wait Time (sec) Wait Avg(ms) % DB time Wait Class
gc buffer busy acquire 266,461 225.8K 847 33.1 Cluster
DB CPU 71.6K 10.5
gc cr block congested 30,065 57K 1897 8.4 Cluster
gcs drm freeze in enter server mode 101,845 50.3K 493 7.4 Other
enq: TX - row lock contention 9,538 49.4K 5179 7.2 Application
gc current block congested 40,354 43.9K 1087 6.4 Cluster
gc current grant busy 958,406 35.8K 37 5.3 Cluster
gc cr block 2-way 531,320 26.1K 49 3.8 Cluster
gc current block 2-way 864,948 12.4K 14 1.8 Cluster
gc buffer busy release 24,042 11.8K 491 1.7 Cluster

由于需要等几天才能重启数据库,所以临时的处理方案是将weblogic指向一个实例,从效果上来看,非常不错。

在10g中,可以采用如下方式禁用DRM(当然你也可以只禁用其中的一个模块object affinity或者undo affinity)
--disable object affinity
alter system set "_gc_affinity_time"=0 scope=spfile ;
--disable undo affinity
alter system set "_gc_undo_affinity"=FALSE  scope=spfile;
然后同时重启所有实例生效。
如果暂时无法重启实例,可以使用如下命令“事实上”禁用DRM:(以下两个参数可以动态调整)
alter system set “_gc_affinity_limit”=10000000 sid='*';
alter system set “_gc_affinity_minimum”=10000000 sid='*';
在11g中,同样可以使用如下方式禁用DRM,强烈建议关闭:
alter system set "_gc_policy_time"=0 scope=spfile;
然后同时重启所有实例生效。如果不想完全禁用DRM,但是需要禁用read-mostly locking或者reader bypass的机制。可以使用如下命令:
--disable read-mostly locking
alter system set "_gc_read_mostly_locking"=false scope=spfile sid='*';
--disable reader-bypass
alter system set "_gc_bypass_readers"=false scope=spfile sid='*';

Oracle给出的Oracle11g下的调整:
alter system set "_gc_policy_time"=0 scope=spfile sid='*';
alter system set "_gc_undo_affinity"=false scope=spfile sid='*';

关闭DRM之后的数据库报告的情况:

Top 10 Foreground Events by Total Wait Time

Event Waits Total Wait Time (sec) Wait Avg(ms) % DB time Wait Class
DB CPU 21.1K 79.0
db file sequential read 201,429 1541.2 8 5.8 User I/O
db file scattered read 121,867 1017.8 8 3.8 User I/O
direct path read temp 175,993 494.2 3 1.9 User I/O
SQL*Net message from dblink 69,387 458.1 7 1.7 Network
enq: TX - row lock contention 108 389.1 3602 1.5 Application
log file sync 112,847 356.2 3 1.3 Commit
read by other session 40,569 222.2 5 .8 User I/O
db file parallel read 11,173 157.7 14 .6 User I/O
gc current block busy 25,659 155 6 .6 Cluster

本次出问题的数据库SGA设置为1T,所以安装的时候需要初始化一些特殊的参数。

Best Practices and Recommendations for RAC databases with SGA size over 100GB (文档 ID 1619155.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

PURPOSE

The goal of this note is to provide best practices and recommendations to users of Oracle Real Application Clusters (RAC) databases using very large SGA (e.g. 100GB) per instance (note that RAC assumes homogeneously sized SGAs across the cluster). This document is compiled and maintained based on Oracle's experience with its global RAC customer base.

This is not meant to replace or supplant the Oracle Documentation set, but rather, it is meant as a supplement to the same. It is imperative that the Oracle Documentation be read, understood, and referenced to provide answers to any questions that may not be clearly addressed by this note.

All recommendations should be carefully reviewed by your own operations group and should only be implemented if the potential gain as measured against the associated risk warrants implementation. Risk assessments can only be made with a detailed knowledge of the system, application, and business environment.

As every customer environment is unique, the success of any Oracle Database implementation, including implementations of Oracle RAC, is predicated on a successful test environment. Oracle Support has identified 100 GB as a baseline for large SGA's that would benefit from the recommendations provided in this note. However, this is just a baseline, and it is possible for similar(but smaller) SGA's to benefit from these recommendations. It is thus imperative that any recommendations from this note are thoroughly tested and validated using a testing environment that is a replica of the target production environment before being implemented in the production environment to ensure that there is no negative impact associated with the recommendations that are made

SCOPE

This article applies to all new and existing RAC implementations.

This is for RAC databases only as most of the parameters listed in here are for RAC Database only.

DETAILS

Note that the recommendations presented in this note are a result of the experience from working on databases with SGA of 1 TB and 2.6 TB.

Also, the databases with SGA of 100GB and 300GB also benefited from the recommendations

init.ora parameters:

a.      Set _lm_sync_timeout to 1200 
           Setting this will prevent some timeouts during reconfiguration and DRM. It's a static parameter and rolling restart is supported.

b.      Set _ksmg_granule_size to 134217728
           Setting this will cut down the time needed to locate the resource for a data block. It's a static parameter and rolling restart is supported.

c.      Set shared_pool_size to 15% or larger of the total SGA size.
        For example, if SGA size is 1 TB, the shared pool size should be at least 150 GB. It's a dynamic parameter.

d.      Set _gc_policy_minimum to 15000
        There is no need to set _gc_policy_minimum if DRM is disabled by setting _gc_policy_time = 0. _gc_policy_minimum is a dynamic parameter, _gc_policy_time is a static parameter and rolling restart is not supported. To disable DRM, instead of _gc_policy_time, _lm_drm_disable should be used as it's dynamic.

e.      Set _lm_tickets to 5000
        Default is 1000.   Allocating more tickets (used for sending messages) avoids issues where we ran out of tickets during the reconfiguration. It's a static parameter and rolling restart is supported. When increasing the parameter, rolling restart is fine but a cold restart can be necessary when decreasing.

f.      Set gcs_server_processes to the twice the default number of lms processes that are allocated.
        The default number of lms processes depends on the number of CPUs/cores that the server has, 
        so please refer to the gcs_server_processes init.ora parameter section in the Oracle Database Reference Guide 
        for the default number of lms processes for your server.  Please make sure that the total number of lms processes 
        of all databases on the server is less than the total number of CPUs/cores on the server.  Please refer to the Document 558185.1 
        It's a static parameter and rolling restart is supported.

Oracle11g RAC下真的要关闭DRM相关推荐

  1. oracle rac ora 12547,oracle11g RAC 下DBCA建库失败:ORA-12547: TNS:lost contact

    sqlplus / as sysdba敲回车,也是报ORA-12547: TNS:lost contact 追踪错误 /u01/app/oracle/product/11.2.0/db_1/rdbms ...

  2. linux下Oracle11g RAC搭建(六)

    linux下Oracle11g RAC搭建(六) 五.校验安装前的环境 root身份下完毕解压grid.database安装包 [grid@node1 soft]$ su - Password: [r ...

  3. Oracle11g rac监听,关于oracle11g RAC 监听器使用中出现的no services以及no listener分析...

    首先,我们必须知道在oracle11g中,官方推荐GI和oracle数据库软件分开管理,在这种情况下,我们会发现数据库监听器其实是位于GI的管理账号下,即通常我们所创建的grid账号.在该grid账号 ...

  4. Suse11sp3系统安装asm+oracle11G+rac

    三台主机规划,域名都是vm 主机名: Public IP(公IP) Private IP(私有IP) vip(虚拟IP) 作用 Suse-rac1.vm 192.168.254.201 10.1.1. ...

  5. 分析RAC下一个SPFILE整合的三篇文章的文件更改

    大约RAC下一个spfile分析_整理在_2014.4.17 说明:文章来源于网络 第一篇:RAC下SPFILE文件改动 在RAC下spfile位置的改动与单节点环境不全然一致,有些地方须要特别注意, ...

  6. windows下DOS命令关闭占用的端口

    windows下DOS命令关闭占用的端口 经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,下面就介绍一种非常简单的方法,希望对大家有用. ...

  7. linux svn 服务 关闭,Linux下启动、关闭SVN服务

    Linux下启动/关闭Oracle 一.Linux下启动Oracle Linux下启动Oracle分为两步: 1)启动监听: 2)启动数据库实例: 1.登录服务器,切换到oracle用户,或者以ora ...

  8. 解决JS:window.close()在Firefox下的不能关闭的问题,兼容IE/Firefox/Chrome

    IE6.IE7.Firefox无提示关闭窗口的代码,兼容IE/Firefox/Chrome <a href="javascript:window.opener=null;window. ...

  9. linux svn 启动命令行,Linux下启动、关闭SVN服务

    Linux下启动/关闭Oracle 一.Linux下启动Oracle Linux下启动Oracle分为两步: 1)启动监听: 2)启动数据库实例: 1.登录服务器,切换到oracle用户,或者以ora ...

最新文章

  1. python中adb连接手机_Python脚本利用adb进行手机控制的方法
  2. 【谷歌推网页爬虫新标准,开源robots.txt解析器】
  3. 51CTO学院三周年,一起成长与奋斗的日子
  4. TimesTen Warnings and Errors - TT0400 to TT9999 [IDnbsp (
  5. 使用MyBatista----上传图像
  6. java api csdn_java api函数读出当前机器名以及版本号 csdn
  7. mysql 配置自动截断_MySql超长自动截断实例详解
  8. 华山论“件”:Kafka、RabbitMQ、RocketMQ技能大比拼
  9. python grpc 并发_python中grpc的使用示例
  10. Python基础-列表(列表常用函数/列表遍历)
  11. cocos2d- AtlasSprite AtlasSpriteManager
  12. 交叉火力dsp手机调音软件_万能dsp调音软件全集
  13. c# rar解压大小_C#解压、压缩RAR文件
  14. HTML5浪漫生日祝福电子贺卡网页模板(HTML5+CSS3+JS)_520表白/七夕情人节表白/告白网页制作/生日快乐html模板...
  15. Python鞋码表 以及购鞋尺寸推荐 简单的Python脚本
  16. linux 误删文件恢复
  17. 【量化金融】多因子选股策略
  18. 「备战春招/秋招系列」程序员的简历就该这样写...
  19. 如何在 SubSystem for Android 上安装应用?
  20. win10pe命令打开计算机,hp电脑win10如何进pe_惠普电脑怎么进去u盘pe系统

热门文章

  1. 关于unicode urf-8 ascll 三种编码的发展和使用
  2. 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest B. Bakery
  3. 济南双软认证认定条件
  4. 导航组件—Android应用中使用ViewPager2创建滑动视图
  5. 【云原生之Docker实战】使用Docker部署openwrt软路由系统
  6. 微信高级接口 java_java微信开发高级接口----群发功能
  7. RGui的http代理设置
  8. 记一次ORA-24247: network access denied by access control list (ACL)
  9. 客户管理系统(SSM版):线索转换2(重点)
  10. 用百度网盘下载磁力连接报错无法解析解决办法