redhat6.0+oracle11g2 运行dbca时候出错An unexpected error has been detected by HotSpot Virtual Machine:

 [INS-20802] Oracle Net Configuration Assistant failed。在安装Oracle 11g R2时出现了该错误提示。以前安装的时候没有碰到过类似
的错误。原来是64bit和32bit系统兼容性的问题。如果基于64bit硬件安装32bit 的Linux 和32bit的Oracle 11g,则需要安装patch 8670579。下
面给出patch的安装过程。

 

一、错误提示
    [INS-20802] Oracle Net Configuration Assistant failed .
    Cause --  The plug-in failed in its perform method.
    Action --  Refer to the logs or contact Oracle Support Services.
    Log File Location
      /u01/oraInventory/logs/installActions2011-10-27_02_42-57PM.log 

    查看日志文件:
     
    INFO: Oracle Net Services Configuration:
    INFO: #
    INFO: # An unexpected error has been detected by HotSpot Virtual Machine:
    INFO: #
    INFO: #  SIGSEGV (0xb) at pc=0xa446a43c, pid=9431, tid=3084382264
    INFO: #
    INFO: # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
    INFO: # Problematic frame:
    INFO: # C  [libnnz11.so+0x3c45c]
    INFO: #
    INFO: # An error report file with more information is saved as hs_err_pid9431.log
   
    运行dbca同时也出现错误
 
二、安装环境
    宿主机:Windows 7(32bit) + Vmware server 2.0.2   
    客户机:Oracle EnterPrise Linux Server release 5.4 (32bit) + Oracle 11g R2(32bit)

 

三、Oracle 的Bug信息
    从metalink 获得下列bug 信息
    [ID 942076.1]
    X86 DBCA, NETCA GIVE JAVA HOTSPOT ERROR IF ON X86_64 HARDWARE [ID 942076.1]
    You are encountering published Bug 8930861, “X86 DBCA, NETCA GIVE JAVA HOTSPOT ERROR IF ON X86_64 HARDWARE”
   
    You have Oracle’s 32-bit 11.2.0.1.0 RDBMS software, a supported 32-bit Linux OS, but you are on 64-bit x86_64 hardware.
   
    the command “cat /proc/cpuinfo” shows:
    model name : Quad-Core AMD Opteron(tm) Processor 2356
   
    Solution
    1. Please find out if there is any business reason that the 64-bit hardware is only running a
    32-bit OS. If not, then Oracle recommends that you re-install a 64-bit OS and 64-bit Oracle to
    avoid published Bug 8930861, “X86 DBCA, NETCA GIVE JAVA HOTSPOT ERROR IF ON X86_64 HARDWARE”
   
    2. If there is some business reason that you must use 64-bit hardware running a
    32-bit Linux OS, then before you can use the 11gR2 DBCA or NETCA tools, you will need to apply patch 8670579 , “NETCA/DBCA
    FAILED WITH HOTSPOT VIRTUAL MACHINE”. You will be downloading and using file p8670579_112010_LINUX.zip
   
    从上面的描述可知,是将32bit的Oracle 和32bit的Linux 安装到了X86_64的硬件之上,所以出现上述问题,建议安装64bit操作系统和64bit
    Oracle 。可以解决的办法是安装补丁p8670579_112010_LINUX.zip。补丁下载地址:http://download.csdn.net/source/3253906

 

四、安装补丁
    1、在安装的过程中出现该错误,先不退出安装程序,而是安装补丁文件,再点击安装程序的retry,继续安装即可。
    2、如果在安装数据库的过程中不创建数据库,则不会出现该错误提示,而后续使用dbca或netca会触发同样的错误,因此使用dbca或netca
       前先安装补丁。
    3、安装补丁步骤       

注意:在打补丁的时,运行opatch apply 命令的时候可能会遇到 OPatch failed with error code 104 错误。出现这个原因时因为

没有oraInst.loc文件

这其实是一个简单的配置文件,用来定义oraInventory的位置。他的默认地址是在/var/opt/oracle/oraInst.loc。

他的格式为:

> cat /var/opt/oracle/oraInst.loc
inventory_loc=/export/home/oracle/products/10203/oraInventory
inst_group=dba

如果没有这个文件,当我们查看当前有哪些patch时会出报104错:

[oracle@localhost OPatch]$ ./opatch apply
Invoking OPatch 11.1.0.6.6

Oracle Interim Patch Installer version 11.1.0.6.6
Copyright (c) 2009, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle
Central Inventory : n/a
   from           :
OPatch version    : 11.1.0.6.6
OUI version       : 11.2.0.1.0
OUI location      : /u01/app/oracle/oui
Log file location : n/a

Patch history file: /u01/app/oracle/cfgtoollogs/opatch/opatch_history.txt

OPatch cannot find a valid oraInst.loc file to locate Central Inventory.

OPatch failed with error code 104

当这个文件不在默认的路径时,我们可以加“-invPtrLoc ”来指明oraInst.loc的地址:

/u01/app/oracle/OPatch/opatch apply -invPtrLoc /u01/app/oracle/oraInst.loc



  1. [oracle@orasrv Inst_source]$ cd 8670579/  -->进入到解压路径                                                                
  2. [oracle@orasrv 8670579]$ ls               -->README.txt文件中提供了安装方法,可以参照进行安装补丁,注意环境变量的配置      
  3. etc  files  README.txt                                                                                                     
  4. [oracle@orasrv 8670579]$ /u01/app/oracle/OPatch/opatch apply     -->opatch位置: $ORACLE_HOME/OPatch/opatch                
  5. Invoking OPatch 11.1.0.6.6                                       -->使用opatch apply应用补丁,opatch -help获得帮助信息     
  6.                                                                                                                            
  7. Oracle Interim Patch Installer version 11.1.0.6.6                                                                          
  8. Copyright (c) 2009, Oracle Corporation.  All rights reserved.                                                              
  9.                                                                                                                            
  10. Oracle Home       : /u01/app/oracle                                                                                        
  11. Central Inventory : /u01/oraInventory                                                                                      
  12.    from           : /etc/oraInst.loc                                                                                       
  13. OPatch version    : 11.1.0.6.6                                                                                             
  14. OUI version       : 11.2.0.1.0                                                                                             
  15. OUI location      : /u01/app/oracle/oui                                                                                    
  16. Log file location : /u01/app/oracle/cfgtoollogs/opatch/opatch2011-10-27_17-38-25PM.log                                     
  17.                                                                                                                            
  18. Patch history file: /u01/app/oracle/cfgtoollogs/opatch/opatch_history.txt                                                  
  19.                                                                                                                            
  20. --------------------------------------------------------------------------------                                           
  21. The patch has more than one Archive Action but there is no Make Action.                                                    
  22. --------------------------------------------------------------------------------                                           
  23. ApplySession applying interim patch '8670579' to OH '/u01/app/oracle'                                                      
  24.                                                                                                                            
  25. Running prerequisite checks...                                                                                             
  26.                                                                                                                            
  27. OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.                           
  28.                                                                                                                            
  29. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.                                      
  30. (Oracle Home = '/u01/app/oracle')                                                                                          
  31.                                                                                                                            
  32. Is the local system ready for patching? [y|n]        -->提示是否将patch应用到本地系统,选y                                 
  33. y                                                                                                                          
  34. User Responded with: Y                                                                                                     
  35. Backing up files and inventory (not for auto-rollbackfor the Oracle Home                                                 
  36. Backing up files affected by the patch '8670579' for restore. This might take a while...                                   
  37. Backing up files affected by the patch '8670579' for rollback. This might take a while...                                  
  38.                                                                                                                            
  39. Patching component oracle.network.rsf, 11.2.0.1.0...                                                                       
  40. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/ahseteco.o"                                   
  41. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/am11rkg.o"                                    
  42. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/amsha.o"                                      
  43. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/cpui32.o"                                     
  44. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/sha.o"                                        
  45. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/x931rand.o"                                   
  46. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/am11dkg.o"                                    
  47. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/am931rnd.o"                                   
  48. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/amsharnd.o"                                   
  49. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/ghash.o"                                      
  50. Updating archive file "/u01/app/oracle/lib/libnnz11.a"  with "lib/libnnz11.a/shacomm.o"                                    
  51. Copying file to "/u01/app/oracle/lib/libnnz11.so"                                                                          
  52. ApplySession adding interim patch '8670579' to inventory                                                                   
  53.                                                                                                                            
  54. Verifying the update...                                                                                                    
  55. Inventory check OK: Patch ID 8670579 is registered in Oracle Home inventory with proper meta-data.                         
  56. Files check OK: Files from Patch ID 8670579 are present in Oracle Home.                                                    
  57.                                                                                                                            
  58. The local system has been patched and can be restarted.                                                                    
  59.                                                                                                                            
  60. OPatch succeeded.              -->提示patch已被成功安装                                                                    

已标记关键词 清除标记
相关推荐
<p> <b><span style="background-color:#FFE500;">【超实用课程内容】</span></b> </p> <p> <br /> </p> <p> <br /> </p> <p> 本课程内容包含讲解<span>解读Nginx的基础知识,</span><span>解读Nginx的核心知识、带领学员进行</span>高并发环境下的Nginx性能优化实战,让学生能够快速将所学融合到企业应用中。 </p> <p> <br /> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <b><br /> </b> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <b><span style="background-color:#FFE500;">【课程如何观看?】</span></b> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> PC端:<a href="https://edu.csdn.net/course/detail/26277"><span id="__kindeditor_bookmark_start_21__"></span></a><a href="https://edu.csdn.net/course/detail/27216">https://edu.csdn.net/course/detail/27216</a> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 移动端:CSDN 学院APP(注意不是CSDN APP哦) </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 本课程为录播课,课程永久有效观看时长,大家可以抓紧时间学习后一起讨论哦~ </p> <p style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <br /> </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <strong><span style="background-color:#FFE500;">【学员专享增值服务】</span></strong> </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <b>源码开放</b> </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 下载方式:电脑登录<a href="https://edu.csdn.net/course/detail/26277"></a><a href="https://edu.csdn.net/course/detail/27216">https://edu.csdn.net/course/detail/27216</a>,播放页面右侧点击课件进行资料打包下载 </p> <p> <br /> </p> <p> <br /> </p> <p> <br /> </p>
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页