weblogic打补丁,bsu升级10.3.6.0.12

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qqLiFu/article/details/49423839

weblogic打补丁,bsu方法

这里写图片描述

刚装了10.3.6版本的weblogic,想把版本补丁到10.3.6.0.12
我用的系统是windows 8.1 ,呵呵

查看版本

执行java weblogic.version

WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050

Use 'weblogic.version -verbose' to get subsystem information

Use 'weblogic.utils.Versions' to get version information for all modules

这里只有一行WebLogic Server 10.3.6.0 ,说明我之前没打过其他任何补丁,如果使用bsu打过补丁,则会显示在上面。
如果不好使,提示什么也找不到。
执行C:\Oracle\Middleware\wlserver_10.3\server\bin\setWLSenv.cmd (unix 执行 setWLSenv.sh)
然后在试试上面的命令

或是使用java weblogic.version -verbose 看得更仔细些。

WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050  ImplVersion: 10.3.6.0
    Oracle WebLogic Server Module Dependencies 10.3 Thu Sep 29 17:47:37 EDT 2011  ImplVersion: 10.3.6.0
    Oracle WebLogic Server on JRockit Virtual Edition Module Dependencies 10.3 Wed Jun 15 17:54:24 EDT 2011  Imp
    ersion: 10.3.6.0
    Oracle Virtual Machine Manager Client implementation ImplVersion: 1.1.0.0
    WebLogic Descriptors for J2EE 1.6 Wed Dec 1 17:14:50 EST 2010  ImplVersion: 1.6.0.0
    WebLogic Descriptors for J2EE 1.6 Binding Bundle ImplVersion: 1.6.0.0
    WebLogic Specific Descriptors 1.4 Mon Aug 8 09:26:15 MDT 2011  ImplVersion: 1.4.0.0
    WebLogic Specific Descriptors 1.4 Binding Bundle ImplVersion: 1.4.0.0
    WebLogic Datasource 1.10 Sat Nov 12 08:11:09 PST 2011  ImplVersion: 1.10.0.0
    WebLogic Datasource 1.10 Binding Bundle ImplVersion: 1.10.0.0
    WebLogic Beangen Client Capable 1.7 Wed Feb 24 16:02:48 PST 2010  ImplVersion: 1.7.0.0
    WebLogic Beangen 1.7 Binding Bundle ImplVersion: 1.7.0.0
    WebLogic Management Core Interfaces Client Capable 2.9 Thu Aug 11 17:17:14 PDT 2011  ImplVersion: 2.9.0.1
    WebLogic Management Core Interfaces 2.9 Binding Bundle ImplVersion: 2.9.0.1
    WebLogic EJBGen Client Capable 1.1 Tue Nov 2 03:30:53 PDT 2010  ImplVersion: 1.1.0.3
    WebLogic STAX Client Capable 1.10 Wed Jun 8 09:12:28 EDT 2011  ImplVersion: 1.10.0.0
    WebLogic Utils Client Capable 1.10 Sat Oct 29 15:34:23 MDT 2011  ImplVersion: 1.10.0.0
    WebLogic SAAJ 1.8 Mon Oct 17 02:49:29 PDT 2011  ImplVersion: 1.8.0.0
    WebLogic Apache Classes Client Capable 1.3 Mon Sep 19 23:58:26 EDT 2011  ImplVersion: 1.3.0.1
    WebLogic BeanInfo Caching and Discovery Client Capable 2.4 Sat Oct 25 20:46:29 PDT 2008  ImplVersion: 2.4.0.
    WebLogic Descriptor Client Capable 1.10 Wed Aug 10 12:59:06 PDT 2011  ImplVersion: 1.10.0.0
    Oracle JFR 1.0 Thu Feb 18 19:06:33 PST 2010  ImplVersion: 1.0.0.0
    WebLogic Diagnostics Core Interfaces Client Capable 2.6 Thu Oct 6 01:11:08 EDT 2011  ImplVersion: 2.6.0.0
    WebLogic Diagnostics Logging Client Capable 1.2 Fri Dec 12 11:37:59 MST 2008  ImplVersion: 1.2.0.0
    WebLogic Diagnostics Query Module Client Capable 1.3 Fri Jul 1 07:32:00 PDT 2011  ImplVersion: 1.3.0.0
    WebLogic Diagnostics Instrumentor Tool 1.8 Thu Oct 6 01:11:08 EDT 2011  ImplVersion: 1.8.0.0
    WebLogic Diagnostics Instrumentor Config Tool 1.8 Thu Oct 6 01:11:08 EDT 2011  ImplVersion: 1.8.0.0
    WebLogic Diagnostics JRockit Flight Recorder Interfaces Client Capable 1.2 Wed Dec 1 17:41:28 EST 2010  Impl
    rsion: 1.2.0.0
    WebLogic i18n Runtime Support Client Capable 1.9 Thu Sep 1 07:41:47 PDT 2011  ImplVersion: 1.9.0.0
    WebLogic i18n Build Support Client Capable 1.5 Fri Feb 19 15:03:15 EST 2010  ImplVersion: 1.5.0.0
    WebLogic I18N tools Client Capable 1.4 Thu Sep 1 07:41:47 PDT 2011  ImplVersion: 1.4.0.0
    WebLogic Management JMX Interfaces 1.4 Fri Sep 16 16:19:28 EDT 2011  ImplVersion: 1.4.2.0
    WebLogic Security Provider Generation Tool 1.5 Wed Oct 14 16:39:28 MDT 2009  ImplVersion: 1.5.0.0
    WebLogic Security Provider Generation Tool Client Capable 1.5 Wed Oct 14 16:39:28 MDT 2009  ImplVersion: 1.5
    .0
    WebLogic Messaging Kernel Client Capable 1.8 Mon Aug 23 21:42:11 EDT 2010  ImplVersion: 1.8.0.0
    WebLogic Resource Pool Client Capable 1.8 Thu Oct 6 16:06:35 PDT 2011  ImplVersion: 1.8.0.0
    WebLogic Socket Muxer API Client Capable 1.3 Thu Aug 18 16:24:35 EDT 2011  ImplVersion: 1.3.0.0
    WebLogic RMI Client Capable 1.11 Tue Sep 20 15:07:37 EDT 2011  ImplVersion: 1.11.0.0
    WebLogic Store Client Capable 1.8 Mon Oct 3 09:57:28 PDT 2011  ImplVersion: 1.8.0.0
    WebLogic STORE GXA Client Capable 1.7 Fri Apr 1 14:30:50 PDT 2011  ImplVersion: 1.7.0.0
    WebLogic Store Admin Tool Client Capable 1.3 Thu Apr 28 09:32:45 PDT 2011  ImplVersion: 1.3.0.0
    WebLogic JDBC Store Client Capable 1.3 Fri Sep 16 08:41:14 MDT 2011  ImplVersion: 1.3.1.0
    WebLogic JTA implementation Client Capable 2.7 Sat Oct 15 07:12:58 PDT 2011  ImplVersion: 2.7.1.0
    WebLogic Utils 1.10 Sat Oct 29 15:34:23 MDT 2011  ImplVersion: 1.10.0.0
    WebLogic Utility Classloader implementations Client Capable 2.0 Wed May 18 10:00:41 PDT 2011  ImplVersion: 2
    .0.0
    WebLogic java compiler utils package Client Capable 1.2 Thu Feb 11 03:38:50 EST 2010  ImplVersion: 1.2.0.0
    WebLogic Utils for working with Expressions Client Capable 1.4 Tue Sep 29 14:45:53 EDT 2009  ImplVersion: 1.
    0.0
    WebLogic Utils for Dynamically Generated Class Wrappers Client Capable 1.4 Fri Feb 13 14:44:23 MST 2009  Imp
    ersion: 1.4.0.0
    WebLogic Timers Client Capable 1.7 Fri Feb 4 14:23:26 MST 2011  ImplVersion: 1.7.1.0
    WebLogic Work Manager Client Capable 1.11 Thu Oct 6 11:12:55 PDT 2011  ImplVersion: 1.11.0.0
    WebLogic Workarea Client Capable 1.8 Tue Jun 28 04:08:48 EDT 2011  ImplVersion: 1.8.0.0
    WebLogic XML XPath Implementation Client Capable 1.5 Thu Sep 1 22:11:12 EDT 2011  ImplVersion: 1.5.0.0
    WebLogic Security 1.0 Fri Aug 19 08:44:53 MDT 2011  ImplVersion: 6.2.0.0
    WebLogic security ssl classes 1.0 Tue Jun 15 17:39:53 EDT 2010  ImplVersion: 1.0.0.0
    WebLogic Nodemanager Plugin Client Capable 1.3 Tue Nov 18 18:23:10 EST 2008  ImplVersion: 1.3.0.0
    WebLogic JMS Pool Client Capable 1.9 Wed Apr 13 13:03:26 EDT 2011  ImplVersion: 1.9.0.0
    WebLogic Http Pub/Sub Module Client Capable 1.7 Fri Jul 8 13:06:46 EDT 2011  ImplVersion: 1.7.0.0
    WebLogic WebApp Container Public API Client Capable 1.4 Fri Oct 1 20:01:15 PDT 2010  ImplVersion: 1.4.0.0
    WebLogic Coherence Descriptor 1.2 Thu Sep 1 08:29:31 PDT 2011  ImplVersion: 1.2.0.0
    WebLogic Coherence Descriptor 1.2 Binding Bundle ImplVersion: 1.2.0.0
    WebLogic WebService Public API's 1.1 Tue Sep 21 22:15:05 EDT 2010  ImplVersion: 1.1.0.0
    WebLogic EclipseLink Integration 1.0 Thu Feb 25 14:56:43 PST 2010  ImplVersion: 1.0.0.0
    WebLogic SCA Client 1.0 Thu Feb 25 00:27:10 EST 2010  ImplVersion: 1.0.0.0
    WebLogic RAC Module UCP Client Capable 1.1 Thu Oct 6 16:06:35 PDT 2011  ImplVersion: 1.1.0.0
    Oracle Universal Connection Pool ImplVersion: 11.2.0.3.0

SERVICE NAME                    VERSION INFORMATION
============                    ===================
Kernel                          Commonj WorkManager v1.1
TimerService                    Commonj TimerManager v1.1
CorbaService                    CORBA 2.3, IIOP 1.2, RMI-IIOP SFV2, OTS 1.2, CSIv2 Level 0 + Stateful
XMLService                      XML 1.1
Transaction Service             JTA 1.1
JDBCService                     JSR-221, JDBC 4.0
CustomResourceServerService     1.0.0.0
Servlet Container               Servlet 2.5, JSP 2.1
WebServices                     JSR-173, JAX-RPC, JSR-109, WSDL, WS-Addressing, WS-Policy, JAX-B, JAX-R, UDD
 WS-Management(HP), JAXP-1.3, WS-Security
Pre Admin Singleton Services S  1.0
Singleton Services Batch Manag  1.0
Post Admin Singleton Services   1.0
EJB Container                   EJB 3.0
MDBService                      EJB 3.0
EJBTimerService                 EJB 3.0
J2EE Connector                  1.5
JMS Service                     JMS 1.1

或者还可以这样看
C:\Oracle\Middleware\utils\bsu>bsu.cmd -prod_dir=c:\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:           C:\Oracle\Middleware
ProductHome:       C:\Oracle\Middleware\wlserver_10.3
PatchSystemDir:    C:\Oracle\Middleware\utils\bsu
PatchDir:          C:\Oracle\Middleware\patch_wls1036
Profile:           Default
DownloadDir:       C:\Oracle\Middleware\utils\bsu\cache_dir
JavaHome:          C:\Oracle\Middleware\jdk160_29
JavaVersion:       1.6.0_29
JavaVendor:        Sun

打补丁

解压补丁包zip文件,得到两个文件 一个.jar 一个.xml 将这个两个文件拷贝到weblogic 目录下 utils/bsu/cache_dir 中,如果没有cache_dir 自己创建。当然这个目录也可以自己指定。

执行

C:\Oracle\Middleware\utils\bsu>bsu.cmd -install -patch_download_dir=c:\Oracle\Middleware\utils\bsu\cache_dir -
patchlist=EJUW -prod_dir=c:\Oracle\Middleware\wlserver_10.3

说明
-patch_download_dir  是上步中那两个文件所在的目录
-prod_dir  weblogic的家目录
-patchlist    补丁ID号,就是补丁包里.jar文件的文件名

然后,我这就尴尬了,bsu.cmd执行不好使,发现这个文件的大小居然是0,什么情况啊?看了下bsh.sh 发现是用java 跑patch-client.jar这个包,所以就将上面这个命令改了一下

C:\Oracle\Middleware\utils\bsu>java -jar c:\Oracle\Middleware\utils\bsu\patch-client.jar -install -patch_downl
oad_dir=c:\Oracle\Middleware\utils\bsu\cache_dir -patchlist=EJUW -prod_dir=c:\Oracle\Middleware\wlserver_10.3

然后提示:

检查冲突.....
未检测到冲突

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

验证

执行
C:\Oracle\Middleware\wlserver_10.3\server\bin>java weblogic.version

如果不行,就设定一下环境
C:\Oracle\Middleware\wlserver_10.3\server\bin>setWLSEnv.cmd

    WebLogic Server 10.3.6.0.12 PSU Patch for BUG20780171 THU JUN 18 15:54:42 IST 2015
    WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050

    Use 'weblogic.version -verbose' to get subsystem information

    Use 'weblogic.utils.Versions' to get version information for all modules

可以看到回显中多了一行,补丁打完。

这时候启动weblogic,在标准输出中也可以看到加载了新补丁:

<2015-10-26 下午02时43分41秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0.12 PSU P
atch for BUG20780171 THU JUN 18 15:54:42 IST 2015

附,官方补丁中的Readme(10.3.6.0.12 ,Patch 20780171)

Oracle WebLogic Server Patch Set Update 10.3.6.0.12 README
=========================================================

This README provides information about how to apply Oracle WebLogic Server 
Patch Set Update 10.3.6.0.12. It also provides information about reverting to 
the original version.

Released: July, 2015


Smart Update Details of Oracle WebLogic Server Patch Set Update 10.3.6.0.12
--------------------------------------------------------------------------

PATCH_ID - EJUW
Patch number - 20780171


Preparing to Install Oracle WebLogic Server Patch Set Update 10.3.6.0.12 
-----------------------------------------------------------------------

- WebLogic Server Patch Set Update (PSU) can be applied on a per-domain basis 
  (or on a more fine-grained basis), Oracle recommends that PSU be applied on an installation-wide basis.
  PSU applied to a WebLogic Server installation using this recommended practice 
  affect all domains and servers sharing that installation.
- Login as same "user" with which the component being patched is installed.
- Stop all WebLogic servers.
- Remove any previously applied WebLogic Server Patch Set Update and associated overlay patches


Installing Oracle WebLogic Server Patch Set Update 10.3.6.0.12
-------------------------------------------------------------

 - unzip p20780171_1036_Generic.zip to {MW_HOME}/utils/bsu/cache_dir or any local directory

   Note: You must make sure that the target directory for unzip has required write and executable permissions 
         for "user" with which the component being patched is installed.

 - Navigate to the {MW_HOME}/utils/bsu directory.
 - Execute bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}

   Where, WL_HOME is the path of the WebLogic home

   Reference: BSU Command line interface
              http://docs.oracle.com/cd/E14759_01/doc.32/e14143/commands.htm


Post-Installation Instructions
------------------------------

a) Restart all WebLogic servers.

b) The following command is a simple way to determine the application of WebLogic Server PSU.

  $ . $WL_HOME/server/bin/setWLSEnv.sh 
  $ java weblogic.version

In the following example output, 10.3.6.0.12 is the installed WebLogic Server PSU.

      WebLogic Server 10.3.6.0.12 PSU Patch for BUG20780171


Uninstalling Oracle WebLogic Server Patch Set Update 10.3.6.0.12
---------------------------------------------------------------

 - Stop all WebLogic Servers
 - Navigate to the {MW_HOME}/utils/bsu directory.
 - Execute bsu.sh -remove -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}


Post-Uninstallation Instructions
--------------------------------

a) Restart all WebLogic Servers.


Oracle recommends that you see following key notes
--------------------------------------------------

- My Oracle Support NOTE: 1306505.1 Announcing Oracle WebLogic Server PSUs (Patch Set Updates)
https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1306505.1 

- My Oracle Support NOTE: 1470197.1 Master Note on WebLogic Server Patch Set Updates (PSUs)
https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1470197.1

- My Oracle Support NOTE: 1471192.1 - Replacement Patches for WebLogic Server PSU Conflict Resolution
https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1471192.1

- SSL Authentication Problem Using WebLogic 10.3.6 and 12.1.1 With JDK1.7.0_40 or Higher
https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1607170.1

- Smart Update Applying Patches to Oracle WebLogic Server 
http://docs.oracle.com/cd/E14759_01/doc.32/e14143/intro.htm 
阅读更多

没有更多推荐了,返回首页