database's docs

1.6.0 OUI安装oracle 11G R2 之 oracle程序安装错误集合


1. GUI 安装错误

1) software install error

错误信息:

Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

解决方案:

# root身份执行
xhost +
access control disabled, clients can connect from any host.
# 其实就是将x windows system的server端的访问控制关闭

2) netca error

错误信息:

netca
Oracle Net Services Configuration:
Error: null
Check the trace file for details: /u01/app/oracle/cfgtoollogs/netca/trace_OraDb11g_home1-17010811AM5148.log
Oracle Net Services configuration failed.  The exit code is 1

cat /u01/app/oracle/cfgtoollogs/netca/trace_OraDb11g_home1-17010811AM5148.log
[main] [ 2017-01-08 11:51:48.226 UTC ] [NetCALogger.initTrace:203]  Oracle Net Configuration Assistant: 17010811AM5148
[main] [ 2017-01-08 11:51:48.226 UTC ] [NetCALogger.initTrace:204]  Oracle Home: /u01/app/oracle/product/11.2.0/dbhome_1
[main] [ 2017-01-08 11:51:48.226 UTC ] [NetCALogger.initTrace:205]  Oracle Base: /u01/app/oracle
[main] [ 2017-01-08 11:51:48.227 UTC ] [NetCALogger.initTrace:206]  Oracle Home Name: OraDb11g_home1
[main] [ 2017-01-08 11:51:48.255 UTC ] [InventoryUtil.getOUIInvSession:347]  setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2017-01-08 11:51:48.255 UTC ] [HAUtils.<init>:239]  oui location /u01/app/oraInventory/ContentsXML
[main] [ 2017-01-08 11:51:48.265 UTC ] [Version.isPre:528]  version to be checked 11.2.0.3.0 major version to check against10
[main] [ 2017-01-08 11:51:48.266 UTC ] [Version.isPre:539]  isPre.java: Returning FALSE
[main] [ 2017-01-08 11:51:48.268 UTC ] [OCR.loadLibrary:312]  
 Inside constructor of OCR
[main] [ 2017-01-08 11:51:48.295 UTC ] [OCR.loadLibrary:320]  Going to load the ocr library
[main] [ 2017-01-08 11:51:48.296 UTC ] [Library.load:188]  library.load
[main] [ 2017-01-08 11:51:48.300 UTC ] [sPlatform.isHybrid:66]  osName=Linux osArch=amd64 JVM=64 rc=false
[main] [ 2017-01-08 11:51:48.300 UTC ] [sPlatform.isHybrid:66]  osName=Linux osArch=amd64 JVM=64 rc=false
[main] [ 2017-01-08 11:51:48.301 UTC ] [Library.load:264]  Loading  library /u01/app/oracle/product/11.2.0/dbhome_1/lib/libsrvmocr11.so
[main] [ 2017-01-08 11:51:48.309 UTC ] [OCR.loadLibrary:322]  loaded ocr libraries
[main] [ 2017-01-08 11:51:48.309 UTC ] [OCR.isCluster:952]  Calling OCRNative for isCluster()
[main] [ 2017-01-08 11:51:48.314 UTC ] [OCR.isCluster:956]  OCR Result status = true
[main] [ 2017-01-08 11:51:48.314 UTC ] [OCR.isCluster:968]  Bolean result = false
[main] [ 2017-01-08 11:51:48.316 UTC ] [CmdlineArgs.<init>:114]  Initializing variables array...
[main] [ 2017-01-08 11:51:48.316 UTC ] [CmdlineArgs.<init>:120]  Initializing NetProperties...
[main] [ 2017-01-08 11:51:48.320 UTC ] [CmdlineArgs.initArgs:137]  Initializing command line arguments...
[main] [ 2017-01-08 11:51:48.320 UTC ] [CmdlineArgs.setOraArgs:242]  Setting Oracle arguments...
[main] [ 2017-01-08 11:51:48.321 UTC ] [CmdlineArgs.setOraArgs:246]  Passed Oracle Home = NO_VALUE
[main] [ 2017-01-08 11:51:48.321 UTC ] [CmdlineArgs.setOraArgs:249]  Read Oracle Home = /u01/app/oracle/product/11.2.0/dbhome_1
[main] [ 2017-01-08 11:51:48.321 UTC ] [CmdlineArgs.setOraArgs:252]  Read Oracle Home ID =
[main] [ 2017-01-08 11:51:48.321 UTC ] [CmdlineArgs.setOraArgs:255]  Read Oracle Home Name = null
[main] [ 2017-01-08 11:51:48.322 UTC ] [CmdlineArgs.setOraArgs:263]  Setting Oracle Home = /u01/app/oracle/product/11.2.0/dbhome_1
[main] [ 2017-01-08 11:51:48.326 UTC ] [InitialSetup.configureOPS:4539]  Cluster mode is OFF
[main] [ 2017-01-08 11:51:48.326 UTC ] [InitialSetup.<init>:4058]  TNS_ADMIN is: null
[main] [ 2017-01-08 11:51:48.332 UTC ] [OPSUtil.getHomeVersion:446]  Inside getHomeVersion...
[main] [ 2017-01-08 11:51:48.336 UTC ] [OPSUtil.getHomeVersion:447]  oracleHome = /u01/app/oracle/product/11.2.0/dbhome_1
[main] [ 2017-01-08 11:51:48.336 UTC ] [OPSUtil.getHomeVersion:451]  oracle.sysman.assistants.util.OracleHome Object = /u01/app/oracle/product/11.2.0/dbhome_1
[main] [ 2017-01-08 11:51:48.336 UTC ] [OracleHome.getVersion:889]  OracleHome.getVersion called.  Current Version: null
[main] [ 2017-01-08 11:51:48.338 UTC ] [InventoryUtil.getOUIInvSession:347]  setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2017-01-08 11:51:48.338 UTC ] [OracleHome.getVersion:908]  Homeinfo /u01/app/oracle/product/11.2.0/dbhome_1,1
[main] [ 2017-01-08 11:51:49.069 UTC ] [OracleHome.getVersion:936]  OracleHome.server.getVersion Version: 11.2.0.3.0
[main] [ 2017-01-08 11:51:49.069 UTC ] [OracleHome.getVersion:957]  Current Version From Inventory: 11.2.0.3.0
[main] [ 2017-01-08 11:51:49.077 UTC ] [OPSUtil.getHomeVersion:452]  returning oracleHome Version = 11.2.0.3.0
[main] [ 2017-01-08 11:51:49.078 UTC ] [OracleHome.getVersion:889]  OracleHome.getVersion called.  Current Version: 11.2.0.3.0
[main] [ 2017-01-08 11:51:49.078 UTC ] [OracleHome.getVersion:957]  Current Version From Inventory: 11.2.0.3.0
[main] [ 2017-01-08 11:51:49.078 UTC ] [InitialSetup.<init>:4071]  Admin location is: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin
[main] [ 2017-01-08 11:51:49.144 UTC ] [ConfigureProfile.setProfileParam:136]  Setting ADR_BASE: /u01/app/oracle
java.lang.NullPointerException
    at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
    at oracle.net.ca.NetCA.<init>(NetCA.java:443)
    at oracle.net.ca.NetCA.main(NetCA.java:429)

解决方案

export DISPLAY=:0.0
# 然后执行netca