设为首页 收藏本站
查看: 414|回复: 0

[经验分享] oracle 10g RAC 节点重启,但是没有记录有效的日志信息--问题诊断

[复制链接]
YunVN网友  发表于 2016-8-15 06:56:40 |阅读模式
  oracle 10g RAC 重启,但是没有记录有效的日志信息
  from:
Oracle? Database Release Notes
10g Release 2 (10.2) for Linux x86-64
B15666-19
____________________________________________________________________
6.15 Configuring Oracle Clusterware Process Monitor Daemon
  The 10.2.0.4 patch release for Oracle Clusterware on Linux includes
  the Oracle Clusterware Process Monitor Daemon (oprocd). It is started
  automatically by Oracle Clusterware to detect system hangs. When it
  detects a system hang, it restarts the hung node.
  Review the following configuration information if you have installed
  the 10.2.0.4 patch set.
  Oracle has found wide variations in scheduling latencies observed
  across operating systems and versions of operating systems. Because
  of these scheduling latencies, the default values for oprocd can be
  overly sensitive, particularly under heavy system load, resulting in
  unnecessary oprocd-initiated restarts (false restarts).
  Oracle recommends that you address scheduling latencies with your
  operating system vendor to reduce or eliminate them as much as
  possible, as they can cause other problems.
  To overcome these scheduling latencies, Oracle recommends that you
  set the Oracle Clusterware parameter diagwait to the value 13. This
  setting increases the time for failed nodes to flush final trace
  files, which helps to debug the cause of a node failure. You must
  shut down the cluster to change the diagwait setting. However, if you
  prefer, you can use the default timing threshold for diagwait. In
  that case, you do not need to perform the procedure documented here.
  If you require more aggressive failover times to meet more stringent
  service level requirements, then you should open a service request
  with Oracle Support to receive advice about how to tune for lower
  failover settings.
  Note:
Changing the diagwait parameter requires a clusterwide shutdown. Oracle recommends that you change the diagwait setting either immediately after the initial installation, or during a scheduled outage.

  Log in as root, and run the following command on all nodes, where
  CRS_home is the home directory of the Oracle Clusterware
  installation:
  # CRS_home/bin/crsctl stop crs
Enter the following command, where CRS_home is the Oracle Clusterware
  home:
  # CRS_home/bin/oprocd stop
Repeat this command on all nodes.
  From one node of the cluster, change the value of the diagwait
  parameter to 13 seconds by issuing the following command as root:
  # CRS_home/bin/crsctl set css diagwait 13 -force
Restart the Oracle Clusterware by running the following command on
  all nodes:
  # CRS_home/bin/crsctl start crs
Run the following command to ensure that Oracle Clusterware is
  functioning properly:
  # CRS_home/bin/crsctl check crs
  
来自IBM的解释:
Server running AIX with Oracle RAC reboots itself
  
Technote (troubleshooting)
  
Problem(Abstract)
Server running AIX with Oracle RAC reboots itself with no warning
  Symptom
AIX server shuts down and/or reboots.
  A REBOOT_ID is logged in /var/adm/ras/errlog indicating "SYSTEM
  SHUTDOWN BY USER" although no shutdown or reboot command was issued
  by any user.
  example error message...
  LABEL: REBOOT_ID
IDENTIFIER: 2BFA76F6
  Date/Time: Wed Dec 3 08:19:09 2008
Sequence Number: 1447
Machine Id: 0000ABCD1234
Node Id: nodeA
Class: S
Type: TEMP
Resource Name: SYSPROC
  Description
SYSTEM SHUTDOWN BY USER
  Probable Causes
SYSTEM SHUTDOWN
  Detail Data
USER ID
0
0=SOFT IPL 1=HALT 2=TIME REBOOT
0
TIME TO REBOOT (FOR TIMED REBOOT ONLY)
0
  Cause
Oracle Real Application Clusters (RAC) is known to reboot the
  operating system with no warning due to configuration of the oprocd
  daemon
  
Environment
AIX with Oracle RAC
  
Diagnosing the problem
Oracle Real Application Clusters (RAC) typically runs a process called oprocd.
  
The idea of OPROCD is quite straightforward. It’s goal is to provide
  I/O fencing. Basically oprocd works by setting a timer, then
  sleeping. If, when it wakes up again and gets scheduled onto cpu, it
  sees that a longer time has passed than the acceptable margin, oprocd
  will decide to reboot the node.
  You can check for the oprocd process with the ps command...
  # ps -ef | grep oprocd
root 221672 1 0 08:27:44 - 0:00
/u01/crs/oracle/product/10.2.0/crs_1/bin/oprocd run -t 1000 -m 500 -f
  These options to oprocd are saying -t 1000 (wake up every 1000 ms)
  and -m 500 (allow up to 500 ms margin of error on the time that
  oprocd wakes up before rebooting). In other words, if oprocd wakes up
  after > 1.5 secs it’s going to force a reboot.
  
  Resolving the problem
The timeout and margin times are computed from the elements of
  diagwait and reboot time and it isn't recommended changing them via
  the init.cssd file, but rather through the command 'crsctl set css
  diagwait <secs>'.
  
There is a formula involved in the calculation of the times. For
  example, if the reboot time is 3 and you submit a diagwait setting of
  13 you will get -t 1000 -m 10000.
  # crsctl set css diagwait 13 -force
  # ps -ef | grep oprocd
root 221672 1 0 08:27:44 - 0:00
/u01/crs/oracle/product/10.2.0/crs_1/bin/oprocd run -t 1000 -m 10000
  -f
  You can see that the margin has changed to 10000 ms, that is 10
  seconds in place of the default 0.5 seconds. This is a 20 fold
  increase allows oprocd more time to determine if the node needs to be
  rebooted.
  IBM recommends the customer contact Oracle Support before modifying
  this value.
  IBM and Oracle came to the agreement that a diagwait value of 13 is a
  suitable value if the best practices are used...
  
  http://w3-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP101513
  IBM recommends customers follow best practices, and if possible
  update to AIX 6.1 or AIX 7.1 with current Technology Levels which
  include the new non-pagable kernel as the preferred corrective
  action.
  The Oracle master document can be found here... http://www.oracle.com/technetwork/database/clusterware/overview/rac-aix-system-stability-131022.pdf
  
ADDENDUM:
  The following Oracle document provides additional information on the
  cssdagent process which is related to oprocd...
  http://docs.oracle.com/cd/E14072_01/rac.112/e10717/intro.htm
The cssdagent process monitors the cluster and provides I/O fencing.
  This service formerly was provided by Oracle Process Monitor Daemon
  (oprocd), also known as OraFenceService on Windows. A cssdagent
  failure results in Oracle Clusterware restarting the node.
  root 11010182 1 0 18:43:40 - 0:05
  /GDICMP/oracle/cloud/product/11.2/bin/cssdagent
  ===
  Additional Oracle processes which are known to reboot AIX include the
  following which will appear in ps -ef output...
  octssd.bin reboot
ohasd.bin reboot
crsd.bin reboot
  
  
  Cross reference information Segment Product Component Platform
  Version Edition
Operating Systems AIX family AIX 5.2, 5.3, 6.1
  
  Document information
AIX family
  
---------------------------------------------------------------------
  -----------
  Software version:
Version Independent
  
---------------------------------------------------------------------
  -----------
  Operating system(s):
AIX
  
---------------------------------------------------------------------
  -----------
  Reference #:
T1011228
  
---------------------------------------------------------------------
  -----------
  Modified date:
2011-10-19
Translate my page
Select LanguageChinese SimplifiedChinese
  TraditionalFrenchGermanItalianJapaneseKoreanPortugueseRussianSpanish
  
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-257814-1-1.html 上篇帖子: Oracle的数据库访问Url: oci 和 thin 的区别 下篇帖子: ORACLE之常用FAQ V1.0 整理版之三
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表