Tips about Troubleshooting RAC

Posted 数据库生态圈(RDB & NoSQL & Bigdata)

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tips about Troubleshooting RAC相关的知识,希望对你有一定的参考价值。

    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
      [[email protected]~]$ cd $ORACLE_HOME/lib
      [[email protected] lib]$ make -f ins_rdbms.mk rac_off
      [[email protected] lib]$ make -f ins_rdbms.mk ioracle
      2)RAC OFF
      [[email protected]~]$ cd $ORACLE_HOME/lib
      [[email protected] lib]$ make -f ins_rdbms.mk rac_on
      [[email protected] 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);

以上是关于Tips about Troubleshooting RAC的主要内容,如果未能解决你的问题,请参考以下文章

Some tips about argument in python

Tips on GORM, Avoid Error about "duplicate column name: id"

[100 tips about shell] Shell中的变量作用域,全局和局部变量

[100 Tips About Shell] Shell中是如何处理换行符的

[100 tips about shell] shell中变量拼接输出字符串单引号双引号

ORA-1652: unable to extend temp segment by 128 in tablespace xxx Troubleshootin