Win7上安装oracle中可能遇到的错误
安装oracle,总是出现一个警告两个错误错误,其描述是:OUI-18001:不支持操作系统’Windows Vista版本6.1’,找了好久,终于找到原因,因为oracle不支持Win7操作系统。
安装之前要先在安装包中修改两个地方分别是:
修改一:oracle安装包中搜索refhost.xml文件,通常是在…\stage\prereq\client中,在refhost.xml文件中,在</CERTIFIED_SYSTEMS>之前加入以下代码:
<!--Microsoft Windows 7-->
<OPERATING_SYSTEM>
<VERSIONVALUE=”6.1”/>
</ OPERATING_SYSTEM>
修改后的代码是:
<?xml version=‘1.0‘ encoding=‘windows-1252‘?>
<!-- Copyright (c) 2004, 2007, Oracle. All rights reserved. -->
<!-- ref host for Windows -->
<HOST PLATID="912">
<SYSTEM>
<MEMORY>
<PHYSICAL_MEMORY VALUE="922" UNIT="MB"/>
<!--AVAILABLE_MEMORY VALUE="512" UNIT="MB"/-->
<SWAP_SIZE>
<STEP NAME="PHYSICAL_MEMORY" ATLEAST="0" ATMOST="256" UNIT="MB" MULTIPLE="3"/>
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="256" ATMOST="512" UNIT="MB" MULTIPLE="2"/>
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="512" ATMOST="2048" UNIT="MB" MULTIPLE="1.5"/>
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="2048" ATMOST="8192" UNIT="MB" MULTIPLE="1"/>
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="8192" UNIT="MB" MULTIPLE="0.75"/>
</SWAP_SIZE>
</MEMORY>
</SYSTEM>
<CERTIFIED_SYSTEMS>
<OPERATING_SYSTEM>
<VERSION VALUE="5.0"/>
<SERVICE_PACK VALUE="1"/>
</OPERATING_SYSTEM>
<OPERATING_SYSTEM>
<VERSION VALUE="5.1"/>
<SERVICE_PACK VALUE="1"/>
</OPERATING_SYSTEM>
<OPERATING_SYSTEM>
<VERSION VALUE="5.2"/>
</OPERATING_SYSTEM>
<!--Microsoft Windows Vista-->
<OPERATING_SYSTEM>
<VERSION VALUE="6.0"/>
</OPERATING_SYSTEM>
<!--Microsoft Windows 7-->
<OPERATING_SYSTEM>
<VERSION VALUE="6.1"/>
</OPERATING_SYSTEM>
</CERTIFIED_SYSTEMS>
<ORACLE_HOME>
<COMPATIBILITY_MATRIX>
<ALLOW>
<NEW_HOME/>
</ALLOW>
<DISALLOW>
<COMP NAME="oracle.server" ATLEAST="8.1.0.0.0" ATMOST="9.2.0.9.0"/>
<COMP NAME="oracle.server" ATLEAST="10.1.0.0.0" ATMOST="10.2.0.9.0"/>
<COMP NAME="oracle.client" ATLEAST="8.1.0.0.0" ATMOST="9.2.0.9.0"/>
<COMP NAME="oracle.iappserver.iapptop" ATLEAST="9.0.2.0.0" ATMOST="99.9.9.9.9"/>
<COMP NAME="oracle.iappserver.infrastructure" ATLEAST="9.0.2.0.0" ATMOST="99.9.9.9.9"/>
<COMP NAME="oracle.iappserver.devcorner " ATLEAST="9.0.2.0.0" ATMOST="99.9.9.9.9"/>
<COMP NAME="oracle.ids.toplevel.development" ATLEAST="9.0.0.0.0" ATMOST="99.9.9.9.9"/>
<COMP NAME="oracle.networking.netclt" ATLEAST="8.1.3.0.0" ATMOST="9.2.0.9.0"/>
<COMP NAME="oracle.install.instcommon" ATLEAST="8.1.3.0.0" ATMOST="9.2.9.9.9"/>
<COMP NAME="oracle.client" ATLEAST="10.1.0.0.0" />
<COMP NAME="oracle.crs" ATLEAST="10.1.0.0.0" />
<ORCA_HOME/>
</DISALLOW>
</COMPATIBILITY_MATRIX>
</ORACLE_HOME>
</HOST>
修改二:
Oracle安装包中搜索oraparam.ini文件,通常是在\ORACLE\install中
在oraparam.ini文件中添加以下代码
#You can customise error message shown forfailure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE
#Windows=5.0,5.1,5.2,6.0,6.1
#[Windows-6.1-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300
#[Windows-6.1-optional]
修改后的文件内容是:
[Oracle]
DISTRIBUTION=TRUE
SOURCE=../stage/products.xml
LICENSE_LOCATION=
BOOTSTRAP_COMPS="oracle.swd.oui:11.1.0.6.0,oracle.swd.oui.core:11.1.0.6.0,oracle.jdk:1.5.0.1.1"
JRE_SCRATCH_LOC=jdk/jre
JRE_MEMORY_OPTIONS=" -mx96m"
DEFAULT_HOME_LOCATION=product\11.1.0\db
DEFAULT_HOME_NAME=OraDb11g_home
NO_BROWSE=/net
NLS_ENABLED=TRUE
BOOTSTRAP=TRUE
EXT_JLIB=../stage/ext/jlib
OUI_VERSION=11.1.0.6.0
## JRE_VERSION is only for Windows. This is to copy accessbridge dlls
JRE_VERSION=1.4.2
ACCESS_DIR=../install/access
#SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always
#SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel
#SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition
SHOW_HOSTNAME=NEVER_SHOW
#THIN_JDBC_FILENAME is optional and defaults to classes12.jar
#The value specified for this should be packaged with OUI, and should
#be relative to <OUI expanded stagedir>/jlib/
THIN_JDBC_FILENAME=classes12.jar
#RUN_OUICA specifies the batch script name that needs to be run
#The script is ouica.bat for win32, and ouica.sh for solaris.
#If the value is not specified, then the OUICA script is not run
RUN_OUICA=ouica.bat
CLUSTERWARE={"oracle.crs","10.1.0.2.0"}
SILENT_VARIABLE_VALIDATION=TRUE
#You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE
#Windows=5.0,5.1,5.2,6.0,6.1
#[Windows-6.1-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300
#[Windows-6.1-optional]
[Generic Prereqs]
MIN_DISPLAY_COLORS=256
[IMAGES]
FILE1=images/billboards.gif
LICENSE_LOCATION=license.txt
这两个地方修改后在安装果然什么异常都没有了。安装完成后,启动oracle数据库监听服务时,启动OracleOracleTNSListener服务时找不到路径,原因是它的路径错误,但是又不能直接修改,在网上搜了一下发现可以在注册表中,找system下的service里的OracleOracleTNSListener目录,然后点击右侧的imagePath修改它的路径为安装路径下的TNSLSNR.EXE文件的路径。然后重启服务,就没问题了。Oracle终于安装完成了。
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。