Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

发布时间:2022-06-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

 

@H_512_3@ 参考资料:

 

https://docs.oracle.COM/middleware/1213/core/OUIRF/silent.htm#OUIRF323

1、安装JDK环境

#tar zxvf jdk-7u80-linux-x64.gz
#mv jdk1.7.0_80 /usr/local/jdk1.7.0_80/

2、创建安装用户

#useradd weblogic
#su - webLOGic

3、配置JAVA环境变量

$vi .bash_PRofile
export JAVA_HOME=/usr/local/jdk1.7.0_80
export JRE_HOME=/usr/local/jdk1.7.0_80/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export ORACLE_HOME=/bea

4、创建响应文件wls.rsp

响应文件中的项一定要写全,否则会报奇怪的错误。

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

[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=/bea
#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=

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

5、创建Loc文件orainst.loc

inventory_loc=/home/weblogic/oraInventory
#用户的组名称,根据实际的修改
inst_group=weblogic

6、执行安装

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc
启动程序日志文件为/tmp/OraInstall2016-05-13_01-02-56PM/launcher2016-05-13_01-02-56PM.log。
正在提取文件.........
启动 Oracle Universal Installer
检查 CPU 速度是否大于 300 MHz。   实际为 2400.217 MHz    通过
检查交换空间: 必须大于 512 MB。   实际为 18513912 MB    通过
检查此平台是否需要 64 位 JVM。   实际为64    通过 (不需要 64 位)
检查临时空间: 必须大于 300 MB。   实际为 36518 MB    通过
准备从/tmp/OraInstall2016-05-13_01-02-56PM启动 Oracle Universal Installer
日志:/tmp/OraInstall2016-05-13_01-02-56PM/install2016-05-13_01-02-56PM.log
版权所有 (c) 1996, 2014, Oracle 和/或其附属公司。保留所有权利。
正在读取响应文件...
开始检查: CertifiedVersions
预期的结果: Enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SUSE-11之一
实际结果: enterprise-6
检查完成。此次检查的总体结果为: 通过
CertifiedVersions 检查: 成功。
开始检查: CheckJDKVersion
预期的结果: 1.7.0_15
实际结果: 1.7.0_80
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。
已启用此会话的验证。
正在验证数据...
正在复制文件...
可以在以下位置找到本次安装会话的日志:
 /tmp/OraInstall2016-05-13_01-02-56PM/install2016-05-13_01-02-56PM.log
-----------20%----------40%----------60%----------80%--------100%
Oracle fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安装 已成功完成。
日志已成功复制到/home/weblogic/oraInventory/logs。

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

7、创建域

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

export MW_HOME="/bea"
export WL_HOME="/bea/oracle_common"export CONFIG_JVM_argS='-Djava.security.egd=file:/dev/urandom'  --执行该命令,避免创建域过慢bash$ pwd
/bea/wlserver/common/bin
bash$ ./commenv.sh 
bash$ ./wlst.sh 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>readTemplate('/bea/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 8080)
wls:/offline/base_domain/Server/AdminServer>cd('../..')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/bea/user_projects/domains/hbintf_domain')
closeTemplate()
exit()

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

 8、启动

$cd /bea/user_projects/domains/hbintf_domain
$./startWeblogic.sh

1、安装JDK环境

#tar zxvf jdk-7u80-linux-x64.gz
#mv jdk1.7.0_80 /usr/local/jdk1.7.0_80/

2、创建安装用户

#useradd weblogic
#su - weblogic

3、配置JAVA环境变量

$vi .bash_profile
export JAVA_HOME=/usr/local/jdk1.7.0_80
export JRE_HOME=/usr/local/jdk1.7.0_80/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export ORACLE_HOME=/bea

4、创建响应文件wls.rsp

响应文件中的项一定要写全,否则会报奇怪的错误。

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

[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=/bea
#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=

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

5、创建Loc文件oraInst.loc

inventory_loc=/home/weblogic/oraInventory
#用户的组名称,根据实际的修改
inst_group=weblogic

6、执行安装

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc
启动程序日志文件为/tmp/OraInstall2016-05-13_01-02-56PM/launcher2016-05-13_01-02-56PM.log。
正在提取文件.........
启动 Oracle Universal Installer
检查 CPU 速度是否大于 300 MHz。   实际为 2400.217 MHz    通过
检查交换空间: 必须大于 512 MB。   实际为 18513912 MB    通过
检查此平台是否需要 64 位 JVM。   实际为64    通过 (不需要 64 位)
检查临时空间: 必须大于 300 MB。   实际为 36518 MB    通过
准备从/tmp/OraInstall2016-05-13_01-02-56PM启动 Oracle Universal Installer
日志:/tmp/OraInstall2016-05-13_01-02-56PM/install2016-05-13_01-02-56PM.log
版权所有 (c) 1996, 2014, Oracle 和/或其附属公司。保留所有权利。
正在读取响应文件...
开始检查: CertifiedVersions
预期的结果: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11之一
实际结果: enterprise-6
检查完成。此次检查的总体结果为: 通过
CertifiedVersions 检查: 成功。
开始检查: CheckJDKVersion
预期的结果: 1.7.0_15
实际结果: 1.7.0_80
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。
已启用此会话的验证。
正在验证数据...
正在复制文件...
可以在以下位置找到本次安装会话的日志:
 /tmp/OraInstall2016-05-13_01-02-56PM/install2016-05-13_01-02-56PM.log
-----------20%----------40%----------60%----------80%--------100%
Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安装 已成功完成。
日志已成功复制到/home/weblogic/oraInventory/logs。

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

7、创建域

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

export MW_HOME="/bea"
export WL_HOME="/bea/oracle_common"export CONFIG_JVM_ARGS='-Djava.security.egd=file:/dev/urandom'  --执行该命令,避免创建域过慢bash$ pwd
/bea/wlserver/common/bin
bash$ ./commEnv.sh 
bash$ ./wlst.sh 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>readTemplate('/bea/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 8080)
wls:/offline/base_domain/Server/AdminServer>cd('../..')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/bea/user_projects/domains/hbintf_domain')
closeTemplate()
exit()

Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)

 8、启动

$cd /bea/user_projects/domains/hbintf_domain
$./startWeblogic.sh

脚本宝典总结

以上是脚本宝典为你收集整理的Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)全部内容,希望文章能够帮你解决Linux静默安装weblogic12(fmw_12.1.3.0.0_wls.jar)所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。