签到成功

知道了

CNDBA社区CNDBA社区

How to Recreate OCR / Voting Disk Accidentally Deleted [ID 399482.1]

2016-11-25 15:53 2000 0 原创 Oracle 11g
作者: dave

 

How to Recreate OCR/Voting Disk Accidentally Deleted [ID 399482.1]http://www.cndba.cn/Dave/article/962


 

Modified 26-OCT-2010     Type HOWTO     Status PUBLISHED

 http://www.cndba.cn/Dave/article/962

In this Document
  Goal
  Solution


Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.3 - Release: 10.2 to 10.2
Oracle Server - Standard Edition - Version: 10.2.0.1 to 11.1.0.7   [Release: 10.2 to 11.1]
Linux x86
HP-UX PA-RISC (64-bit)
IBM AIX on POWER Systems (64-bit)
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)
HP-UX Itanium
Linux x86-64
Linux Itanium
HP Tru64 UNIX
Oracle Clusterware

Goal

The goal of this document is to help customers who have accidentally deleted the OCR, voting disk or the files that are required for the operation of Oracle clusterware.

Depending on the issue, it may or may not be good idea to execute the steps provided.

Solution

If none of the steps documented above can be used to restore the file that was accidentally deleted or is corrupted, then the following steps can be used to re-create/reinstantiate these files. The following steps require complete downtime on all the nodes.

  1. Shutdown the Oracle Clusterware stack on all the nodes using command crsctl stop crs as root user.
  2. Backup the entire Oracle Clusterware home.
  3. Execute <CRS_HOME>/install/rootdelete.sh on all nodes
  4. Execute <CRS_HOME>/install/rootdeinstall.sh on the node which is supposed to be the first node
  5. The following commands should return nothing
    • ps -e | grep -i 'ocs[s]d'
    • ps -e | grep -i 'cr[s]d.bin'
    • ps -e | grep -i 'ev[m]d.bin'
  6. Execute <CRS_HOME>/root.sh on first node
  7. After successful root.sh execution on first node Execute root.sh on the rest of the nodes of the cluster
  8. For 10gR2, use racgons. For 11g use onsconfig command. Examples for each are provided below.

    For 10g
    Execute as owner (generally oracle) of CRS_HOME command
    <CRS_HOME>/install/racgons add_config hostname1:port hostname2:port

$/u01/crs/install/racgons add_config halinux1:6251 halinux2:6251http://www.cndba.cn/Dave/article/962


For 11g
Execute as owner (generally oracle) of CRS_HOME command
<CRS_HOME>/install/onsconfig add_config hostname1:port hostname2:port
http://www.cndba.cn/Dave/article/962

$/u01/crs/install/onsconfig add_config halinux1:6251 halinux2:6251

 

  1. Execute as owner of CRS_HOME (generally oracle)  <CRS_HOME>/bin/oifcfg setif -global. Please review Note 283684.1 for details.

$/u01/crs/bin/oifcfg setif -global  eth0/192.168.0.0:cluster_interconnect eth1/10.35.140.0:public

 http://www.cndba.cn/Dave/article/962

  1. Add listener using netca. This may give errors if the listener.ora contains the entries already. If this is the case, move the listener.ora to /tmp from the $ORACLE_HOME/network/admin or from the $TNS_ADMIN directory if the TNS_ADMIN environmental is defined and then run netca. Add all the listeners that were added earlier.
  2. Add ASM & database resource to the OCR using the appropriate srvctl add database command as the user who owns the ASM & database resource. Please ensure that this is not run as root user
  3. Add  Instance, services using approproate srvctl add commands. Please refer to the documentation for the exact commands.
  4. execute cluvfy stage -post crsinst -n node1,node2    ### Please ensure to replace node1,node2 with the node names of the cluster

 http://www.cndba.cn/Dave/article/962

 

 http://www.cndba.cn/Dave/article/962

 

------------------------------------------------------------------------------

http://www.cndba.cn/Dave/article/962

Blog http://blog.csdn.net/tianlesoftware

网上资源: http://tianlesoftware.download.csdn.net http://www.cndba.cn/Dave/article/962

相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1 群:62697716(); DBA2 群:62697977()

DBA3 群:62697850   DBA 超级群:63306533;    

聊天 群:40132017

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请http://www.cndba.cn/Dave/article/962

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle 11g

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2296
    原创
  • 3
    翻译
  • 583
    转载
  • 198
    评论
  • 访问:8535430次
  • 积分:4478
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ