weblogic12c安装笔记
阅读原文时间:2023年07月09日阅读:1

weblogic12c安装笔记

1、创建wls用户

   useradd wls

2、切换到wls用户

   su - wls

3、在/home/wls/创建files、jdk1.8、patch、bao目录

   mkdir -p /home/wls/files
   mkdir -p /home/wls/jdk1.8
   mkdir -p /home/wls/patch
   mkdir -p /home/wls/bao

4、上传文件至相关目录并解压

   unzip bao/fmw_12.2.1.3.0_wls_Disk1_1of1.zip -d bao/
   tar -xf jdk1.8/jdk-8u261-linux-x64.tar.gz -C jdk1.8/
   unzip patch/p33412599_122130_Generic.zip -d patch/
   unzip patch/p33412599_122130_Generic.zip -d patch/

5、在files下需要新建文件

(1)创建oraInst.loc
  cat > oraIst.loc <<eof
  #文件内容 安装清单目录的路径,类似于weblogic11g中的bea目录
  inventory_loc=/home/wls/oraInventory
  #安装用户所在组的名称
  inst_group=weblogic
  eof
(2)wls.rsp文件内容
cat > wls.rsp <<eof
[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= /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/  

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

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

6、卸载原有jdk、安装新jdk1.8

  su - root
  rpm -qa | grep jdk
  rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.191-2.6.15.5.el7.x86_64
  rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.181-7.b13.el7.x86_64
  rpm -e --nodeps java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64
  rpm -e --nodeps java-1.7.0-openjdk-1.7.0.191-2.6.15.5.el7.x86_64
(1)验证jdk是否卸载
  [root@localhost jdk1.8]# java
  bash: java: command not found...

(2)增加环境变量

  vim /etc/profile
  shift +gg



  JAVA_HOME=/home/wls/jdk1.8/jdk1.8.0_261
  PATH=$JAVA_HOME/bin:$PATH
  CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
  export PATH JAVA_HOME CLASSPATH

  source /etc/profile

验证jdk是否安装

  [root@localhost jdk1.8.0_261]# java
  Usage: java [-options] class [args...]

7、开始安装

  java -jar /home/wls/bao/fmw_12.2.1.3.0_wls.jar  -silent -responseFile /home/wls/files/wls.rsp  -invPtrLoc /home/wls/files/oraIst.loc

验证成功

  [wls@localhost OPatch]$ ./opatch version
  OPatch Version: 13.9.2.0.0

  OPatch succeeded.
  [wls@localhost OPatch]$ pwd
  /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/OPatch

8、升级opatch

  java -jar /home/wls/patch/6880880/opatch_generic.jar -silent          oracle_home=/home/wls/Oracle/Middleware/Oracle_Home/oracle_common/

验证成功

  [wls@localhost 6880880]$      /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/OPatch/opatch version
OPatch Version: 13.9.4.2.5

  OPatch succeeded.

9、卸载原有补丁

查看

  /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/OPatch/opatch lspatches

卸载

  /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/OPatch/opatch rollback -id 26051289

10、安装补丁

  [wls@localhost 33412599]$ pwd
  /home/wls/patch/33412599
  /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/OPatch/opatch apply

验证成功

  /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/OPatch/opatch lsinventory

11、配置weblogic domain

  cd /home/wls/\Oracle/Middleware/Oracle_Home/oracle_common/
  mkdir -p user_projects/domains/base_domain
  cd user_projects/domains/base_domain    :base_domain根据需求
  cp     /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/wlserver/common/templates/scripts/wlst/basicWLSDomain.py .

修改配置文件

  vim basicWLSDomain.py
  修改:45 set('ListenAddress','192.168.184.200')
  新增:60 cmo.setPassword('p@ssw0rd')
  新增:131 setOption('JavaHome', '/home/wls/jdk1.8/jdk1.8.0_261')
  新增:132    writeDomain('/home/wls/Oracle/Middleware/Oracle_Home/oracle_common//user_projects/domains/basicWLSDomain')

执行wlst创建域脚本

  /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/wlserver/common/bin/wlst.sh    /home/wls/Oracle/Middleware/Oracle_Home/oracle_common/user_projects/domains/base_domain/basicWLSDomain.py

  Exiting WebLogic Scripting Tool.

验证成功

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章