WebLogic 服务安装

2021-09-08 0 By admin

这里主要介绍 WebLogic 服务的安装过程,首先有几个提前须知要写明:

  1. 安装的服务器需要有 JDK 环境,另外需要建立专用账号运行 WebLogic 服务。
  2. WebLogic 服务是集群形式的,但是其管理端和受管理端的安装过程是相同的。故其两者安装完成后的文件都是相同的,只是管理端会拉起 Admin Server。
  3. WebLogic 安装主要分为两个过程:解压安装 WebLogic 文件、创建 Domain 域。

一、生成 WebLogic 服务文件

1.1、前提准备

1、安装 WebLogic 服务,首先请在官网中下载响应的版本安装包。
官网地址:https://www.oracle.com/middleware/technologies/weblogic.html
2、配置服务环境,创建 weblogic 用户和配置 JDK环境。

groupadd weblogic & useradd -g weblogic  weblogic -d /data05/weblogic

1.2、正式安装过程

WebLogic 服务在 Windows 服务器上可以使用图形界面安装,而在字符界面的Linux 服务器上只能选择 静默安装 的方式;具体就是通过预先写好的安装配置文件,直接安装 WebLogic。

静默安装的格式:

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile  wls-install.rsp -invPtrLoc oraInst.Ioc
初始化环境文件/ osaInst.Ioc
inventory_loc=/data05/weblogic/oraInventory
inst_group=weblogic

这个文件中主要就是设置好 WebLogic 服务安装的目录和用到的组。

响应文件/ wls-install.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=/data05/weblogic/Oracle_Home

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

这个配置文件中,主要是定义 Oracle_Home 目录,其他的内容不需要修改。

1.3、安装过程中的输出

$ java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile  /data05/weblogic/wls-install.rsp -invPtrLoc /data05/weblogic/oraInst.Ioc
Launcher log file is /tmp/OraInstall2021-09-07_03-22-52PM/launcher2021-09-07_03-22-52PM.log.
Extracting files.............
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2728.564 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 134217724 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 374449 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2021-09-07_03-22-52PM
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Log: /tmp/OraInstall2021-09-07_03-22-52PM/install2021-09-07_03-22-52PM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Starting check : CertifiedVersions
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11
Actual Result: (Unknown
Check complete. The overall result of this check is: Failed <<<<

Problem: This Oracle software is not certified on the current operating system.
Recommendation: Make sure you are installing the software on the correct platform.
Warning: Check:CertifiedVersions failed.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.8.0_121
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Validations are enabled for this session.
Verifying data......
Copying Files...
You can find the log of this install session at:
 /tmp/OraInstall2021-09-07_03-22-52PM/install2021-09-07_03-22-52PM.log
-----------20%----------40%----------60%----------80%--------100%

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

以上,就完成了WebLogic 服务的安装,后面需要做 Domain 域的创建。