WebLogic安装补丁

今天大脚刚迈进公司,电脑还没有打开,“SimPM,weblogic需要升级补丁,你弄一下”,作为一个转正没多久小白,哪里晓得这些,还好有百度,终于升级好了,特此记录一下。

本想把重要的命令做个标记,但是富文本好像不允许呢,只能在代码后面添加中文注释了:

Connecting to 172.16.82.87:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Wed Jun 26 13:12:38 2019
[weblogic@dp-dc-zbptapp2 ~]$ ls
bea  gc.log  jdbc.properties  jeeattach  nohup.out  Oracle  p30109677_1036_Generic.zip  servers  startWebLogic.nohup.out  startWebLogic.sh  stopWebLogic.sh  web
[weblogic@dp-dc-zbptapp2 ~]$ cd Oracle/Middleware/utils/bsu/
[weblogic@dp-dc-zbptapp2 bsu]$ ls
bsu.jar  bsu.sh  patch-client.jar  smartupdate.ico
[weblogic@dp-dc-zbptapp2 bsu]$ ./bsu.sh -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3/ -status=applied -verbose -view  查看weblogic版本补丁等信息,如果有其他补丁可能需要卸载
十月 22, 2019 11:17:22 上午 java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and 
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
                    Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
                   erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
                   erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
                   ic Server/Evaluation Database,WebLogic Server/Workshop Code 
                   Completion Support
BEAHome:           /home/weblogic/Oracle/Middleware
ProductHome:       /home/weblogic/Oracle/Middleware/wlserver_10.3
PatchSystemDir:    /home/weblogic/Oracle/Middleware/utils/bsu
PatchDir:          /home/weblogic/Oracle/Middleware/patch_wls1036
Profile:           Default
DownloadDir:       /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun

[weblogic@dp-dc-zbptapp2 bsu]$ cd /home/weblogic/
[weblogic@dp-dc-zbptapp2 ~]$ cp p30109677_1036_Generic.zip Oracle/Middleware/utils/bsu/cache_dir/        将补丁复制到对应文件夹
[weblogic@dp-dc-zbptapp2 ~]$ cd Oracle/Middleware/
coherence_3.7/ logs/          modules/       patch_ocp371/  patch_wls1036/ user_projects/ utils/         wlserver_10.3/ 
[weblogic@dp-dc-zbptapp2 ~]$ cd Oracle/Middleware/utils/bsu/cache_dir/
[weblogic@dp-dc-zbptapp2 cache_dir]$ ls
p30109677_1036_Generic.zip
[weblogic@dp-dc-zbptapp2 cache_dir]$ unzip p30109677_1036_Generic.zip  解压补丁
Archive:  p30109677_1036_Generic.zip
  inflating: README.txt              
  inflating: patch-catalog_26853.xml  
  inflating: 3L3H.jar    文件名称为补丁id              
[weblogic@dp-dc-zbptapp2 cache_dir]$ cd ..
[weblogic@dp-dc-zbptapp2 bsu]$ ls
bsu.jar  bsu.sh  cache_dir  patch-client.jar  smartupdate.ico
[weblogic@dp-dc-zbptapp2 bsu]$ vi bsu.sh   修改内存容量  4096
[weblogic@dp-dc-zbptapp2 bsu]$ ./bsu.sh -install -patch_download_dir=/home/weblogic/Oracle/Middleware/utils/bsu/cache_dir -patchlist=3L3H -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3  安装补丁
检查冲突.........
未检测到冲突

正在安装补丁程序 ID: 3L3H..
结果: 成功

[weblogic@dp-dc-zbptapp2 bsu]$ ./bsu.sh -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3/ -status=applied -verbose -view   查看是否安装完成
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and 
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
                    Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
                   erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
                   erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
                   ic Server/Evaluation Database,WebLogic Server/Workshop Code 
                   Completion Support
BEAHome:           /home/weblogic/Oracle/Middleware
ProductHome:       /home/weblogic/Oracle/Middleware/wlserver_10.3
PatchSystemDir:    /home/weblogic/Oracle/Middleware/utils/bsu
PatchDir:          /home/weblogic/Oracle/Middleware/patch_wls1036
Profile:           Default
DownloadDir:       /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun


Patch ID:          3L3H
PatchContainer:    3L3H.jar
Checksum:          1872068379
Severity:          optional
Category:          General
CR/BUG:            30109677
Restart:           true
Description:       WLS PATCH SET UPDATE 10.3.6.0.191015
WLS PATCH SET UPDATE 10
                   .3.6.0.191015


[weblogic@dp-dc-zbptapp2 bsu]$ 
Connection closed by foreign host

遇到的问题:总的来说,weblogic打补丁还是很简单的,将文件传到对应目录,然后安装补丁就好了,但是如果有补丁冲突需要卸载原来的补丁。

./bsu.sh -remove -verbose -patchlist=EJUW -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3

我这还好一点,之前并没有安装过补丁,所以没有补丁冲突这个问题(上面的命令并不知道对不对,百度的)。但是也因为这一点,找不到cache_dir文件夹。因为必须要执行一次bsu.sh,才会有cache_dir文件夹(mikdir党就当我没说)。然后就是安装补丁时要设置bsu.sh的最大内存,不然内存不够,会报Exception in thread "main" java.lang.OutOfMemoryError: Java heap space的错误。

以上都是本人自己整理的,如果有错误,请私信我或者在下面评论指出,谢谢!!!

你可能感兴趣的:(WebLogic安装补丁)