Tips about Troubleshooting RAC

本文介绍了Oracle RAC环境中各类关键日志文件的位置及其用途,并提供了详细的故障排查步骤,包括集群健康监控、集群重新配置及Oracle Clusterware模块的高级调试方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    1. Installation Log Files
      software installation log files inside the logs directory of Oracle central inventory(designed by oraInst.loc);log file for the root.sh configuration script is the $GRID_HOME/cfgtools/crsconfig/rootcrs_.log.
    2. log directory location for Oracle RDBMS
      1)database alert.log:$ORACLE_BASE/diag/rdbms/<dbname>/<sid>/trace/
      2)all diagnostic data is strored in $ORACLE_BASE/diag/.
    3. log directory location for Oracle Grid Infrastructure
      1)cluster node alert.log:$GRID_HOME/log/<hostname>/
      2)all diagnostic data is stored in $GRID_HOME/log/<hostname>/
    4. troubleshooting rac steps
      1)database alert.log-->grid alert.log-->specific log file
    5. RAC ON and OFF
      1)RAC ON
      [oracle@rac1~]$ cd $ORACLE_HOME/lib
      [oracle@rac1 lib]$ make -f ins_rdbms.mk rac_off
      [oracle@rac1 lib]$ make -f ins_rdbms.mk ioracle
      2)RAC OFF
      [oracle@rac1~]$ cd $ORACLE_HOME/lib
      [oracle@rac1 lib]$ make -f ins_rdbms.mk rac_on
      [oracle@rac1 lib]$ make -f ins_rdbms.mk ioracle
    6. Hung Database
      1)systemstate dump.
      2)hanganalyze.
    7. Debugging Node Eviction Issues
      1)The node is not able to complete the network heartbeat (NHB).
      2)The node is not able to complete the disk heartbeat (DHB).
      3)The node does not have enough CPU to perform either of the heartbeat operations.
    8. Cluster Health Monitor
      1)Check the clock synchronization between cluster nodes.
      2)Check the network connectivity between cluster nodes.
      3)Check and ensure that all cluster nodes can access the shared storage where the OCR and voting disks are stored.
      4)Check that there are enough OS resources (such as CPU and memory) available even when there is peak activity in the Oracle RAC database. Cluster Health Monitor will be helpful in analyzing the historical CPU data.
    9. Cluster Reconfiguration Steps(IMR)
      1)The name service is frozen. The CGS contains an internal database of all the members/instances in the cluster with all their configuration and servicing details. The name service provides a mechanism to address this configuration data in a structured and synchronized manner.
      2)The lock database (IDLM) is frozen. The lock database is frozen to prevent processes from
      obtaining locks on resources that were mastered by the departing/dead instance.
      3) Determination of membership and validation and IMR occur.
      4) Bitmap rebuild takes place, including instance name and uniqueness verification. CGS must
      synchronize the cluster to be sure that all members get the reconfiguration event and that they
      all see the same bitmap.
      5)Delete all dead instance entries and republish all names newly configured.
      6)Unfreeze and release the name service for use.
      7)Hand over reconfiguration to GES/GCS.
    10. Advanced Debugging for Oracle Clusterware Modules
      # crsctl get log -h
      # crsctl start crs
      # crsctl get log css all
      # crsctl set log css OLR:5
      # crsctl set log res ora.backup.vip:3
      --注:
      1)高级调试能是0~5,值越大记录的诊断信息越多,最高级别可能会泄露一些源码片段,这些也许只能有甲骨文官方支持进行分析才行。
    11. Debugging Various Utilities in Oracle RAC using SRVM_TRACE(true or false,Oracle10g or later);

转载于:https://www.cnblogs.com/lhdz_bj/p/9116227.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值