在weblogic升级到12.1.2版本的时候,强制性的使用图形界面才能进行安装,但是还是可以进行静默安装,
步骤如下:
1:安装JDK并配置环境变量
JAVA_HOME=/opt/jdk1.7/jdk1.7.0_71
export JRE_HOME=/opt/jdk1.7/jdk1.7.0_71/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
source .bash_profile
2:创建weblogic账号和用户组
useradd weblogic
3: 编辑响应文件:wls1212.rsp
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/data/wls1212
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
4:编辑oraInst.loc文件
inventory_loc=/home/weblogic/oraInventory1
inst_group=weblogic
5:进行静默安装
java -jar wls_121200.jar -silent -responseFile /data/wls.rsp -invPtrLoc /data/oraInst.loc
[weblogic@web_gx data]$ java -jar wls_121200.jar -silent -responseFile /data/wls.rsp -invPtrLoc /data/oraInst.loc
正在提取文件......
启动 Oracle Universal Installer
检查 CPU 速度是否大于 300 MHz。 实际为 2399.998 MHz 通过
检查交换空间: 必须大于 512 MB。 实际为 4128760 MB 通过
检查此平台是否需要 64 位 JVM。 实际为64 通过 (不需要 64 位)
检查临时空间: 必须大于 300 MB。 实际为 9265 MB 通过
准备从/tmp/OraInstall2015-09-29_10-32-32AM启动 Oracle Universal Installer
/bin/chmod: ....?¨?......"/home/weblogic/oraInventory1": ..........................ò........
/bin/chmod: ....?¨?......"/logs/installActions2015-09-29_10-32-32AM.log": ..........................ò........
日志:/home/weblogic/oraInventory1 /logs/install2015-09-29_10-32-32AM.log
版权所有 (c) 1996, 2013, Oracle 和/或其附属公司。保留所有权利。
正在读取响应文件...
预期的结果: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-10,SuSE-11之一
实际结果: enterprise-6
检查完成。此次检查的总体结果为: 通过
CertifiedVersions 检查: 成功。
预期的结果: 1.7
实际结果: 1.7.0_71
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。
正在验证数据...
正在复制文件...
-----------20%----------40%----------60%----------80%--------100%
WebLogic Server 12.1.2.0.0 的 installation 已成功完成。
:
步骤如下:
1:安装JDK并配置环境变量
JAVA_HOME=/opt/jdk1.7/jdk1.7.0_71
export JRE_HOME=/opt/jdk1.7/jdk1.7.0_71/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
source .bash_profile
2:创建weblogic账号和用户组
useradd weblogic
3: 编辑响应文件:wls1212.rsp
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/data/wls1212
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
4:编辑oraInst.loc文件
inventory_loc=/home/weblogic/oraInventory1
inst_group=weblogic
5:进行静默安装
java -jar wls_121200.jar -silent -responseFile /data/wls.rsp -invPtrLoc /data/oraInst.loc
[weblogic@web_gx data]$ java -jar wls_121200.jar -silent -responseFile /data/wls.rsp -invPtrLoc /data/oraInst.loc
正在提取文件......
启动 Oracle Universal Installer
检查 CPU 速度是否大于 300 MHz。 实际为 2399.998 MHz 通过
检查交换空间: 必须大于 512 MB。 实际为 4128760 MB 通过
检查此平台是否需要 64 位 JVM。 实际为64 通过 (不需要 64 位)
检查临时空间: 必须大于 300 MB。 实际为 9265 MB 通过
准备从/tmp/OraInstall2015-09-29_10-32-32AM启动 Oracle Universal Installer
/bin/chmod: ....?¨?......"/home/weblogic/oraInventory1": ..........................ò........
/bin/chmod: ....?¨?......"/logs/installActions2015-09-29_10-32-32AM.log": ..........................ò........
日志:/home/weblogic/oraInventory1 /logs/install2015-09-29_10-32-32AM.log
版权所有 (c) 1996, 2013, Oracle 和/或其附属公司。保留所有权利。
正在读取响应文件...
预期的结果: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-10,SuSE-11之一
实际结果: enterprise-6
检查完成。此次检查的总体结果为: 通过
CertifiedVersions 检查: 成功。
预期的结果: 1.7
实际结果: 1.7.0_71
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。
正在验证数据...
正在复制文件...
-----------20%----------40%----------60%----------80%--------100%
WebLogic Server 12.1.2.0.0 的 installation 已成功完成。
:
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28869493/viewspace-1811400/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28869493/viewspace-1811400/