Oracle11.2.0.1在xp上的静默(slient)安装(五)

2015-02-25 21:42:41 · 作者: · 浏览: 123
———————————
# Specify the My Oracle Support Account Username.
#
# Example : MYORACLESUPPORT_USERNAME=metalink
#——————————————————————————

MYORACLESUPPORT_USERNAME=

#——————————————————————————
# Specify the My Oracle Support Account Username password.
#
# Example : MYORACLESUPPORT_PASSWORD=password
#——————————————————————————

MYORACLESUPPORT_PASSWORD=

#——————————————————————————
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#——————————————————————————
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#——————————————————————————
# Specify whether user doesn’t want to configure Security Updates.
# The value for this variable should be true if you don’t want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be false.
#
# Example : DECLINE_SECURITY_UPDATES=false
#——————————————————————————

DECLINE_SECURITY_UPDATES=true

#——————————————————————————
# Specify the Proxy server name. Length should be greater than zero.
#
# Example : PROXY_HOST=proxy.domain.com
#——————————————————————————

PROXY_HOST=

#——————————————————————————
# Specify the proxy port number. Should be Numeric and atleast 2 chars.
#
# Example : PROXY_PORT=25
#——————————————————————————
PROXY_PORT=

#——————————————————————————
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_USER=username
#——————————————————————————

PROXY_USER=

#——————————————————————————
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_PWD=password
#——————————————————————————

PROXY_PWD=

开始执行静默安装,注意这里响应文件路径不支持相对路径.

E:\cry\SOFT\database>setup.exe -silent -responseFile e:\cry\soft\database\response\db_install_cry.rsp

 期间遇到个错误: 

* 指定主目录详细资料 页*
信息: Shutting down OUISetupDriver.JobExecutorThread
严重: [FATAL] [INS-10008] 未能初始化会话
原因: 初始化会话时出现意外错误。
操作: 请与 Oracle 技术支持服务联系或参阅日志
概要:
- SEVERE:无法从命令行或响应文件中获取以下变量的值:
APPLTOP(AppltopLocation),
APPLTOP_NAME(AppltopName)
无法继续进行无提示安装。.
Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:987
信息: Advice is ABORT
严重: Unconditional Exit
信息: Adding ExitStatus FAILURE to the exit status set
信息: Finding the most appropriate exit status for the current application
信息: Exit Status is -1
信息: Shutdown Oracle Database 11g 发行版 2 安装程序

 后来几经折腾终于发现是OUI的参数文件oraparam.ini被我改动过,将其中的变量APPLTOP_STAGE去掉(或设为false)即可. 接下来就是漫长的等待… 最后显示 

INFO: f:\app\administrator\product\11.2.0\dbhome_1\ode.net\bin\2.x\oracle.databa
se.extensions.dll is registered successfully in GAC.
Successfully Setup Software.

请按 Enter 退出…
“`

即为安装完成.
检查日志,最后有如下提示:
信息: Exit Status is 3
信息: Shutdown Oracle Database 11g 发行版 2 安装程序

其中各退出代码意思如下:
代码 描述
0 所有安装都成功了
1 所有安装都成功,但某些可选的配置工具失败了
2 本地安装成功了,但某些远程操作失败了
3 所有安装都成功了,但某些推荐的配置工具失败了
4 安装停止了
6 在忽视一些先决条件检查或警告后,安装成功了
-1 至少有一个安装失败了
-2 安装失败了.一个或多个变量验证失败了.
-3 尝试的安装遇到了一个失败的先决条件.一些可选的先决条件没有满足.详见日志.如果先决条件是可选的,你可以忽略此返回代码

检查相关服务如下:

其中监听和数据库服务都已经启动了,尝试登录数据库:

至此win xp下的Oracle 11.2.0.1静默安装成功完成.