Failed to create or upgrade OLR

对于Oracle 11g RAC 的安装,与Oracle 10g(clusterware)类似,grid 安装完毕后需要执行orainstroot.sh和root.sh,如果是AMD芯片,Oracle说不认识啊,那就要恭喜一下你又多了一次patch的亲密接触,这个错误提示是Failed to create or upgrade OLR。客官,中招了?接着往下看...[sql] view plaincopyprint?

  1. 1、安装时的环境    
  2.   操作系统(Oracle linux 5.5 32bit)    
  3.   [root@node1 ~]# cat /etc/issue     
  4.   Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)    
  5.   Kernel \r on an \m    
  6.     
  7.   Oracle版本    
  8.   Oracle 11g RAC R2(32bit)    
  9.       
  10.   宿主机系统    
  11.   Win7 64bit + vmware server 2.0.2    
  12.   
  13. 2、错误再现  
  14.   [root@node1 ~]# /u01/app/11.2.0/grid/root.sh   
  15.   Running Oracle 11g root.sh script...  
  16.     
  17.   The following environment variables are set as:  
  18.       ORACLE_OWNER= grid  
  19.       ORACLE_HOME=  /u01/app/11.2.0/grid  
  20.     
  21.   Enter the full pathname of the local bin directory: [/usr/local/bin]:   
  22.      Copying dbhome to /usr/local/bin ...  
  23.      Copying oraenv to /usr/local/bin ...  
  24.      Copying coraenv to /usr/local/bin ...  
  25.     
  26.   Creating /etc/oratab file...  
  27.   Entries will be added to the /etc/oratab file as needed by  
  28.   Database Configuration Assistant when a database is created  
  29.   Finished running generic part of root.sh script.  
  30.   Now product-specific root actions will be performed.  
  31.   2012-12-12 21:20:04: Parsing the host name  
  32.   2012-12-12 21:20:04: Checking for super user privileges  
  33.   2012-12-12 21:20:04: User has super user privileges  
  34.   Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params  
  35.   Creating trace directory  
  36.   Failure with signal 11 from command: /u01/app/11.2.0/grid/bin/ocrconfig -local -upgrade grid oinstall  
  37.   Failed to create or upgrade OLR  
  38.   
  39.   #查看日志文件  
  40.   [grid@node1 ~]$ cd $ORACLE_HOME/log/node1  
  41.   [grid@node1 node1]$ pwd  
  42.   /u01/app/11.2.0/grid/log/node1  
  43.   [grid@node1 node1]$ ls  
  44.   admin  agent  alertnode1.log  client  crsd  cssd  ctssd  diskmon  evmd  gipcd  gnsd  gpnpd  mdnsd  ohasd  racg  srvm  
  45.   [grid@node1 node1]$ tail -30 alertnode1.log  
  46.   Oracle Database 11g Clusterware Release 11.2.0.1.0 - Production Copyright 1996, 2009 Oracle. All rights reserved.  
  47.   2012-12-12 21:20:06.347  
  48.   [client(14059)]CRS-2106:The OLR location /u01/app/11.2.0/grid/cdata/node1.olr is inaccessible.  
  49.    Details in /u01/app/11.2.0/grid/log/node1/client/ocrconfig_14059.log.  
  50.   #也可以根据上面的描述查看日志的详细信息,此处省略  
  51.   
  52. 3、问题分析  
  53.   关于这个问题,Meatlink 上[ID 1068212.1]有关于这个问题的描述,同时也说明明了由bug 8670579所引起的,而且还是未公开的,说是  
  54.   不认识新的AMD芯片,我倒...  
  55.   
  56.   一起来看看解决办法吧。   
  57.   
  58.   Cause  
  59.     
  60.   Unpublished bug 8670579 which relates to the identification of newer AMD chips and therefore only affect platforms   
  61.   using the newer AMD chips.  
  62.     
  63.   Solution  
  64.     
  65.   If the error occurs during the installation of the GRID Infrastructure the patch has to be applied,   
  66.   before the root.sh Script in the installation is run:  
  67.     
  68.   a.) Run a installation (grid/runInstaller) to the prompt where it requests to run orainstroot.sh and /root.sh  
  69.   b.) Run orainstroot.sh on all nodes, but not root.sh  
  70.   c.) Open another session with the Oracle User and apply Patch 8670579 on all nodes (with opatch apply).  
  71.   d.) Continue with the root.sh from the installation.  
  72.     
  73.   If you hit this bug, and have already started root.sh then:  
  74.   - Deconfigure Clusterware on the failed host with /install/rootcrs.pl -deconfig -force  
  75.   - Install the Patch as Oracle User (opatch apply)  
  76.   - Rerun root.sh  
  77.   
  78.   上面的描述说明了两种情况。  
  79.   a. 仅仅在所有节点执行了orainstroot.sh,还没有执行root.sh  
  80.     那么使用grid用户再开一个session,  
  81.     在所有节点使用opatch来打补丁(8670579)  
  82.     再运行root.sh  
  83.   b. 已经执行了root.sh  
  84.     使用root帐户先deconfigure之前的配置  
  85.     使用grid再打补丁(grid),  
  86.     重新运行root.sh  
  87.   
  88. 4、问题解决  
  89.   #现在当前属于b情形,因此先deconfigure  
  90.   #注意我当前的补丁文件放在/inst_src/patch8670579路径  
  91.   [grid@node1 grid]$ pwd  
  92.   /u01/app/11.2.0/grid  
  93.   [grid@node1 grid]$ cd OPatch/  
  94.   [grid@node1 OPatch]$ ./opatch apply /inst_src/patch8670579/8670579  
  95.   Invoking OPatch 11.1.0.6.6  
  96.     
  97.   Oracle Interim Patch Installer version 11.1.0.6.6  
  98.   Copyright (c) 2009, Oracle Corporation.  All rights reserved.  
  99.     
  100.   Oracle Home       : /u01/app/11.2.0/grid  
  101.   Central Inventory : /u01/app/oraInventory  
  102.      from           : /etc/oraInst.loc  
  103.   OPatch version    : 11.1.0.6.6  
  104.   OUI version       : 11.2.0.1.0  
  105.   OUI location      : /u01/app/11.2.0/grid/oui  
  106.   Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2012-12-13_11-39-32AM.log  
  107.     
  108.   Patch history file: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch_history.txt  
  109.   --------------------------------------------------------------------------------   
  110.   The patch has more than one Archive Action but there is no Make Action.  
  111.   --------------------------------------------------------------------------------   
  112.   ApplySession applying interim patch '8670579' to OH '/u01/app/11.2.0/grid'  
  113.     
  114.   Running prerequisite checks...  
  115.     
  116.   OPatch detected the node list and the local node from the inventory.    
  117.   OPatch will patch the local system then propagate the patch to the remote nodes.  
  118.     
  119.   This node is part of an Oracle Real Application Cluster.  
  120.   Remote nodes: 'node2'   
  121.   Local node: 'node1'  
  122.   Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.  
  123.   (Oracle Home = '/u01/app/11.2.0/grid')  
  124.     
  125.   Is the local system ready for patching? [y|n]  
  126.   y  
  127.   User Responded with: Y  
  128.   Backing up files and inventory (not for auto-rollbackfor the Oracle Home  
  129.   Backing up files affected by the patch '8670579' for restore. This might take a while...  
  130.   Backing up files affected by the patch '8670579' for rollback. This might take a while...  
  131.     
  132.   Patching component oracle.network.rsf, 11.2.0.1.0...  
  133.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/ahseteco.o"  
  134.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/am11rkg.o"  
  135.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/amsha.o"  
  136.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/cpui32.o"  
  137.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/sha.o"  
  138.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/x931rand.o"  
  139.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/am11dkg.o"  
  140.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/am931rnd.o"  
  141.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/amsharnd.o"  
  142.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/ghash.o"  
  143.   Updating archive file "/u01/app/11.2.0/grid/lib/libnnz11.a"  with "lib/libnnz11.a/shacomm.o"  
  144.   Copying file to "/u01/app/11.2.0/grid/lib/libnnz11.so"  
  145.   ApplySession adding interim patch '8670579' to inventory  
  146.     
  147.   Verifying the update...  
  148.   Inventory check OK: Patch ID 8670579 is registered in Oracle Home inventory with proper meta-data.  
  149.   Files check OK: Files from Patch ID 8670579 are present in Oracle Home.  
  150.     
  151.   The local system has been patched.  You can restart Oracle instances on it.  
  152.   #上面提示patch已经成功  
  153.   Patching in rolling mode.  
  154.     
  155.   The node 'node2' will be patched next.  
  156.     
  157.   Please shutdown Oracle instances running out of this ORACLE_HOME on 'node2'.  
  158.   (Oracle Home = '/u01/app/11.2.0/grid')  
  159.     
  160.   Is the node ready for patching? [y|n]  
  161.   #这里提示节点2是否已准备好,我这里选择了n,所以下面给出了错误提示  
  162.   #我这里采取的是单节点patch的方法  
  163.   OPatch failed with error code 130  
  164.     
  165.   #Author: Robinson  
  166.   #Blog  : http://blog.csdn.net/robinson_0612  
  167.     
  168.   #接下来单独在第二个节点patch,之后在执行root.sh,一路高歌阿...  
  169.     #注意patch的时候check一下ORACLE_HOME环境变量以及perl -v 查看perl的版本,应当高于5.00503  
  170.     #感觉Oracle 11g 32 bit版本问题挺多的。尽可能安装64bit测试。还有一点说明,安装oracle database后也要patch 8670579,否则dbca报错。  
  171.       
  172. 5、附[ID 1068212.1]  
  173.   GRID INSTALLATION ROOT.SH fails with Failure with signal 11 Failed to create or upgrade OLR [ID 1068212.1] To Bottom    
  174.   --------------------------------------------------------------------------------   
  175.   Modified:Mar 21, 2012Type:PROBLEMStatus:PUBLISHEDPriority:3 Comments (0)       
  176.     
  177.   In this Document  
  178.     Symptoms  
  179.     Cause  
  180.     Solution  
  181.     References  
  182.   --------------------------------------------------------------------------------   
  183.     
  184.   Applies to:   
  185.   Oracle Server - Enterprise Edition - Version: 11.2.0.1.0 and later   [Release: 11.2 and later ]  
  186.   Information in this document applies to any platform.  
  187.     
  188.   Symptoms  
  189.     
  190.   During installation of Grid Infrastructure root.sh and de-install fail with:  
  191.     
  192.   "Failure with signal 11 from command: /bin/ocrconfig -local -upgrade oracle oinstall  
  193.   Failed to create or upgrade OLR"  
  194.     
  195.   And in the alert.log of clusterware (/log//):  
  196.     
  197.   [client(2294)]CRS-2106:The OLR location /cdata/bumucsvm5.olr is inaccessible.   
  198.   Details in /log//client/ocrconfig_nnnn.log.  
  199.     
  200.   And in this log:  
  201.   Oracle Database 11g Clusterware Release 11.2.0.1.0 - Production Copyright 1996, 2009 Oracle. All rights reserved.  
  202.   2010-02-26 14:36:48.183: [ OCRCONF][3047065280]ocrconfig starts...  
  203.   2010-02-26 14:36:48.184: [ OCRCONF][3047065280]Upgrading OCR data  
  204.   2010-02-26 14:36:48.185: [ OCROSD][3047065280]utread:3: Problem reading buffer 9ea9000 buflen 4096 retval 0 phy_offset 102400 retry 0  
  205.   2010-02-26 14:36:48.185: [ OCROSD][3047065280]utread:3: Problem reading buffer 9ea9000 buflen 4096 retval 0 phy_offset 102400 retry 1  
  206.   2010-02-26 14:36:48.185: [ OCROSD][3047065280]utread:3: Problem reading buffer 9ea9000 buflen 4096 retval 0 phy_offset 102400 retry 2  
  207.   2010-02-26 14:36:48.185: [ OCROSD][3047065280]utread:3: Problem reading buffer 9ea9000 buflen 4096 retval 0 phy_offset 102400 retry 3  
  208.   2010-02-26 14:36:48.185: [ OCROSD][3047065280]utread:3: Problem reading buffer 9ea9000 buflen 4096 retval 0 phy_offset 102400 retry 4  
  209.   2010-02-26 14:36:48.185: [ OCROSD][3047065280]utread:3: Problem reading buffer 9ea9000 buflen 4096 retval 0 phy_offset 102400 retry 5  
  210.   2010-02-26 14:36:48.185: [ OCRRAW][3047065280]propriogid:1_1: Failed to read the whole bootblock. Assumes invalid format.  
  211.   2010-02-26 14:36:48.185: [ OCRRAW][3047065280]proprioini: all disks are not OCR/OLR formatted  
  212.   2010-02-26 14:36:48.185: [ OCRRAW][3047065280]proprinit: Could not open raw device  
  213.   2010-02-26 14:36:48.186: [ default][3047065280]a_init:7!: Backend init unsuccessful : [26]  
  214.   2010-02-26 14:36:48.186: [ OCRCONF][3047065280]Exporting OCR data to [OCRUPGRADEFILE]  
  215.   2010-02-26 14:36:48.187: [ OCRAPI][3047065280]a_init:7!: Backend init unsuccessful : [33  
  216.     
  217.   Another indication for this error is that deinstall will fail with the following error:  
  218.   ######################## CHECK OPERATION START ########################  
  219.   Install check configuration START  
  220.     
  221.   #  
  222.   # An unexpected error has been detected by HotSpot Virtual Machine:  
  223.   #  
  224.   # SIGSEGV (0xb) at pc=0x87af135e, pid=2767, tid=3086526144  
  225.   #  
  226.   # Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)  
  227.   # Problematic frame.:  
  228.   # C [libnnz11.so+0x3c35e]  
  229.   #  
  230.   # An error report file with more information is saved as hs_err_pidnnnn.log  
  231.   #  
  232.   # If you would like to submit a bug report, please visit:  
  233.   # http://java.sun.com/webapps/bugreport/crash.jsp  
  234.   #  
  235.     
  236.   Cause  
  237.     
  238.   Unpublished bug 8670579 which relates to the identification of newer AMD chips and therefore   
  239.   only affect platforms using the newer AMD chips.  
  240.     
  241.   Solution  
  242.     
  243.   If the error occurs during the installation of the GRID Infrastructure the patch has to be applied,   
  244.   before the root.sh Script in the installation is run:  
  245.     
  246.   a.) Run a installation (grid/runInstaller) to the prompt where it requests to run orainstroot.sh and /root.sh  
  247.   b.) Run orainstroot.sh on all nodes, but not root.sh  
  248.   c.) Open another session with the Oracle User and apply Patch 8670579 on all nodes (with opatch apply).  
  249.   d.) Continue with the root.sh from the installation.  
  250.     
  251.   If you hit this bug, and have already started root.sh then:  
  252.   - Deconfigure Clusterware on the failed host with /install/rootcrs.pl -deconfig -force  
  253.   - Install the Patch as Oracle User (opatch apply)  
  254.   - Rerun root.sh  
  255.     
  256.   References  
  257.   BUG:9166347 - GRID INSTALLATION ROOT.SH AND DEINSTALL FAIL WITH HOTSPOT VIRTUAL MACHINE SIGSEG  
  258.   NOTE:942076.1 - X86 DBCA, NETCA GIVE JAVA HOTSPOT ERROR IF ON X86_64 HARDWARE  
  259.   NOTE:957903.1 - 11gR2 OUI Crashes: An Unexpected Error Has Been Detected By Java HotSpot Virtual Machine, libjvm.so  

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12615085/viewspace-764217/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12615085/viewspace-764217/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值