运维联盟俱乐部

 找回密码
 立即注册
查看: 3140|回复: 0

weblogic12.2.1.3安装、补丁安装仅供参考

[复制链接]

该用户从未签到

发表于 2020-1-6 11:17:31 | 显示全部楼层 |阅读模式
本帖最后由 wonderfulhaiya 于 2020-1-6 11:33 编辑

weblogic12 安装参考文档https://docs.oracle.com/middlewa ... creens.htm#OUIRF212

-------安装步骤----------------------------------------------------------------------------------------------------
os用户创建
jdk版本安装
环境变量设置
weblogic版本安装:两种安装模式
1、silent模式安装
2、命令行参数安装
weblogic补丁安装
weblogic卸载

-------------------------------------------------------------------------------------------------------------------

------------------------
创建os用户
useradd -u 1002 -m -d /home/wls1223 -g weblogic wls1223

passwd wls1223


/usr/java/jdk1.8.0_40

------------------------
rpm安装jdk指定安装目录
rpm -ivh --prefix=/weblogic/jdk-8u40 jdk-8u40-linux-x64.rpm


比如安装xxx.rpm包,以relocate 参数进行安装,安装到/opt/temp目录:
rpm -ivh --relocate /=/opt/temp xxx.rpm;
以prefix进行安装:
rpm -ivh --prefix= /opt/temp  xxx.rpm

------------------------
weblogic用户环境变量设置
export ORACLE_HOME=/weblogic/wls12213

export JAVA_HOME=/usr/java/jdk1.8.0_40

PATH=$ORACLE_HOME/OPatch:$JAVA_HOME/bin:$PATH:$HOME/bin

export PATH


------------------------
修改主机名:
[root@wls weblogic]# cat /etc/hosts
192.168.56.20   wls   wls.wangdefu.com
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

------------------------
创建oraInst.loc文件
cd /etc

vi oraInst.loc
inventory_loc=/weblogic/oraInventory
inst_group=weblogic

------------------------
注意:
Linux: /etc/oraInst.loc
HP-UX and Solaris: /var/opt/oracle/oraInst.loc
------------------------

------------------------
创建响应文件wls.rsp
参见C.1.2 Sample Response File for Oracle WebLogic Server and Coherence Installation,此处只修改ORACLE_HOME的路径,即WebLogic Server的安装路径
https://docs.oracle.com/middlewa ... e_file.htm#OUIRF370


vi wls.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=/weblogic/wls12213

#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=



安装weblgoic  silent模式

方法一:使用配置文件安装
java -jar fmw_12.2.1.3.0_wls.jar -silent -responseFile /weblogic/wls.rsp -invPtrLoc /etc/oraInst.loc

方法二:命令行参数安装
java -jar fmw_12.2.1.3.0_wls.jar -silent ORACLE_HOME=/weblogic/wls12213 INSTALL_TYPE='WebLogic Server' DECLINE_SECURITY_UPDATES=true SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

------------------------
注释:
#如果要拒绝安全更新,请将此设置为true。将此设置为true并为我的Oracle支持用户名提供空字符串将忽略Oracle配置管理器配置              
拒绝安全更新=true   
DECLINE_SECURITY_UPDATES=true

#如果指定了我的Oracle支持密码,则将此设置为true              
security_updates_via_myoraclesupport=false
------------------------

[wls1223@wls software]$ java -jar fmw_12.2.1.3.0_wls.jar -silent ORACLE_HOME=/weblogic/wls12213 INSTALL_TYPE='WebLogic Server' DECLINE_SECURITY_UPDATES=true SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
Launcher log file is /tmp/OraInstall2019-06-12_04-15-36PM/launcher2019-06-12_04-15-36PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2592.006 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 2506 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-06-12_04-15-36PM
Log: /tmp/OraInstall2019-06-12_04-15-36PM/install2019-06-12_04-15-36PM.log
Setting ORACLE_HOME to /weblogic/wls12213
Setting INSTALL_TYPE to WebLogic Server
Setting DECLINE_SECURITY_UPDATES to true
Setting SECURITY_UPDATES_VIA_MYORACLESUPPORT to false
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12
Actual Result: oracle-6.9
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.


Starting check : CheckJDKVersion
Problem: This JDK version was not certified at the time it was made generally available. It may have been certified following general availability.

Recommendation: Check the Supported System Configurations Guide (http://www.oracle.com/technetwor ... ication-100350.html) for further details. Press "Next" if you wish to co
ntinue.
Expected result: 1.8.0_131
Actual result: 1.8.0_40
Warning: Check:CheckJDKVersion completed with warnings.


Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.3.0 completed successfully.
Logs successfully copied to /weblogic/oraInventory/logs.




------------------------
opatch 更新安装
OPatch Version: 13.2.0.0.0

使用以下命令安装软件:
java -jar opatch_generic.jar -silent ORACLE_HOME=/weblogic/wls12213

如果使用自定义清单位置,请使用以下命令安装软件:
java -jar opatch_generic.jar -silent ORACLE_HOME=/weblogic/wls12213 -invPtrLoc /etc/oraInst.loc


[weblogic@wls OPatch]$ ./opatch version
OPatch Version: 13.9.4.0.0

OPatch succeeded.


--------------------------------------------
安装补丁
[wls1223@wls 29016089]$ opatch apply
Oracle Interim Patch Installer version 13.9.4.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /weblogic/wls12213
Central Inventory : /weblogic/oraInventory
   from           : /weblogic/wls12213/oraInst.loc
OPatch version    : 13.9.4.0.0
OUI version       : 13.9.3.0.0
Log file location : /weblogic/wls12213/cfgtoollogs/opatch/opatch2019-06-12_16-43-49PM_1.log


OPatch detects the Middleware Home as "/weblogic/wls12213"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   29016089  

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/weblogic/wls12213')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '29016089' to OH '/weblogic/wls12213'
ApplySession: Optional component(s) [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [
oracle.webservices.jrf, 12.2.1.3.0 ] , [ oracle.webservices.jrf, 12.2.1.3.0 ] , [ oracle.fmwconfig.common.wls.shared, 12.2.1.3.0 ] , [ oracle.wls.core.app.server.nativelib, 12.2.1.3.0 ] , [ oracle.jrf.tenancy.se, 12.2.1.3.0 ] , [ oracle.wls.server.examples, 12.2.1.3.0 ] , [ oracle.wls.rdmu, 12.2.1.3.0 ] , [ oracle.legacy_oc4j_xml_schemas, 12.2.1.3.0 ] , [ oracle.wls.server.mt.examples, 12.2.1.3.0 ] , [ oracle.jrf.tenancy.ee, 12.2.1.3.0 ] , [ oracle.jrf.tenancy, 12.2.1.3.0 ]  not present in the Oracle Home or a higher version is found.
Patching component oracle.webservices.orawsdl, 12.2.1.3.0...

Patching component oracle.webservices.orawsdl, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.xml, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.xml, 2.7.9.0.0...

Patching component oracle.org.bouncycastle, 12.2.1.3.0...

Patching component oracle.org.bouncycastle, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common.sharedlib, 12.2.1.3.0...

Patching component oracle.fmwconfig.common.wls.shared.internal, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.base, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.base, 2.7.9.0.0...

Patching component oracle.fmwconfig.common.config.shared, 12.2.1.3.0...

Patching component oracle.wls.shared.with.cam, 12.2.1.3.0...

Patching component oracle.wls.shared.with.cam, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.common, 12.2.1.3.0...

Patching component oracle.wls.evaluation.database, 12.2.1.3.0...

Patching component oracle.wls.evaluation.database, 12.2.1.3.0...

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.wls.core.app.server, 12.2.1.3.0...

Patching component oracle.webservices.base, 12.2.1.3.0...

Patching component oracle.webservices.base, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.ee.only.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.jrf.tenancy.ee.only.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.rcu, 12.2.1.3.0...

Patching component oracle.wls.rcu, 12.2.1.3.0...

Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.security.core.sharedlib, 12.2.1.3.0...

Patching component oracle.webservices.wls, 12.2.1.3.0...

Patching component oracle.webservices.wls, 12.2.1.3.0...

Patching component oracle.webservices.wls, 12.2.1.3.0...

Patching component oracle.commons.fileupload.commons.fileupload, 1.3.2.0.0...

Patching component oracle.commons.fileupload.commons.fileupload, 1.3.2.0.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.json.provider, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.jaxrs.jackson.jaxrs.json.provider, 2.7.9.0.0...

Patching component oracle.wls.admin.console.en, 12.2.1.3.0...

Patching component oracle.wls.admin.console.en, 12.2.1.3.0...

Patching component oracle.wls.libraries, 12.2.1.3.0...

Patching component oracle.wls.libraries, 12.2.1.3.0...

Patching component oracle.wls.libraries, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.annotations, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.annotations, 2.7.9.0.0...

Patching component oracle.wls.common.cam.wlst, 12.2.1.3.0...

Patching component oracle.wls.common.cam.wlst, 12.2.1.3.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jsonschema, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jsonschema, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jaxb.annotations, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.module.jackson.module.jaxb.annotations, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.databind, 2.7.9.1.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.databind, 2.7.9.1.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.core, 2.7.9.0.0...

Patching component oracle.com.fasterxml.jackson.core.jackson.core, 2.7.9.0.0...

Patching component oracle.wls.security.core, 12.2.1.3.0...

Patching component oracle.wls.wlsportable.mod, 12.2.1.3.0...

Patching component oracle.wls.http.pubsub.server, 12.2.1.3.0...

Patching component oracle.apache.commons.collections.mod, 3.2.0.0.2...

Patching component oracle.wls.common.cam, 12.2.1.3.0...

Patching component oracle.wls.workshop.code.completion.support, 12.2.1.3.0...

Patching component oracle.java.activation, 12.2.1.3.0...

Patching component oracle.apache.commons.lang.mod, 2.6.0.0.2...

Patching component oracle.java.xml.bind, 2.3.0.0.0...

Patching component oracle.java.servlet, 12.2.1.3.0...

Patching component oracle.wls.common.nodemanager, 12.2.1.3.0...

Patching component oracle.wls.shared.with.inst, 12.2.1.3.0...

Patching component oracle.wls.shared.with.coh.standalone, 12.2.1.3.0...

Patching component oracle.jaxb.impl, 2.3.0.0.0...

Patching component oracle.wls.admin.console.nonen, 12.2.1.3.0...

Patching component oracle.wls.clients, 12.2.1.3.0...

Patching component oracle.wls.shared.with.inst.sharedlib, 12.2.1.3.0...

Patching component oracle.wls.thirdparty.javax.json, 12.2.1.3.0...

Patching component oracle.wls.inst.only, 12.2.1.3.0...

Patching component oracle.jaxb.tools, 2.3.0.0.0...

Patching component oracle.jaxb.core, 2.3.0.0.0...

Patching component oracle.diagnostics.common, 12.2.1.3.0...

Patching component oracle.wls.weblogic.sca, 12.2.1.3.0...

Patching component org.codehaus.woodstox, 4.2.0.0.0...

Patching component oracle.wls.core.app.server.tier1nativelib, 12.2.1.3.0...

Patching component oracle.java.jaxws, 12.2.1.3.0...
Patch 29016089 successfully applied.
Log file location: /weblogic/wls12213/cfgtoollogs/opatch/opatch2019-06-12_16-43-49PM_1.log

OPatch succeeded.


--------------------------------------------
查看补丁安装:
[wls1223@wls 29016089]$ opatch lspatches
29016089;WLS PATCH SET UPDATE 12.2.1.3.190416
26355633;One-off
26287183;One-off
26261906;One-off
26051289;One-off

OPatch succeeded.

--------------------------------------------
卸载weblogic
进入卸载脚本目录:
cd /weblogic/wls12.1.3/oui/bin

卸载:
[weblogic@wls bin]$ ./deinstall.sh -silent
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Launcher log file is /tmp/OraInstall2019-06-12_11-32-22AM/launcher2019-06-12_11-32-22AM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2592.006 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 2097148 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 2948 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-06-12_11-32-22AM
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Log: /tmp/OraInstall2019-06-12_11-32-22AM/deinstall2019-06-12_11-32-22AM.log
Setting ORACLE_HOME to /weblogic/wls12.1.3
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Starting silent deinstallation...
-----------20%----------40%----------60%----------80%-------100%

The uninstall of WebLogic Server 12.1.3.0.0 completed successfully.
Logs successfully copied to /weblogic/oraInventory/logs.


卸载会把整个weblogic的home删除掉。





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

运维联盟俱乐部 ( 冀ICP备19036648号 )

GMT+8, 2024-4-28 03:13 , Processed in 0.047789 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表