It's all about Weblogic..!!

May 4, 2010

Steps to apply patches using smart update from command line (bsu command for windows)

Filed under: * Different ways to install/uninstall patches — streethawkz @ 8:16 pm

Below are the steps to apply the patch on a Windows Box which does not have access to internet :

  1. First, download all the patches from a Windows machine which has access to internet using Smart Update.
  2. Now copy all these patches along with the patch-catalog.xml file ( located in cache_dir folder, Eg : D:\bea1033\utils\bsu\cache_dir ) to the Windows machine where you want to apply the patch.
  3. Go to the bsu folder. ( Eg : D:\bea1033\utils\bsu\ ) and run the following command :

Command :

.
Syntax :  bsu.cmd -prod_dir=<WEBLOGIC_HOME> -patchlist=<patchid> -verbose -install -log=<any_file_name>

.
Eg :

.
D:\bea1033\utils\bsu>bsu.cmd -prod_dir=D:\bea1033\wlserver_10.3 -patchlist=B1WK -verbose -install -log=error.txt

.
If you want to install multiple patches at a time use the command below :

.
D:\bea1033\utils\bsu>bsu.cmd -prod_dir=D:\bea1033\wlserver_10.3 -patchlist=B1WK,P2MT -verbose -install -log=error.txt

.
Below is an Oracle document for installing patches from command line:

Link : http://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489

.
Output would be similar to the following :

.
D:\bea1033\utils\bsu>bsu -prod_dir=D:\bea1033\wlserver_10.3 -patchlist=B1WK,P2MT -verbose -install -log=error.txt
Checking for conflicts..

No conflict(s) detected
Installing Patch Set ID: B1WK

Starting installation of Patch ID: DFYK

Installing D:\bea1033\utils\bsu\cache_dir\DFYK.jar

Extracting D:\bea1033\patch_wls1033\patch_jars\BUG9757998_1033.jar

Updating D:\bea1033\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar

Old manifest value: Class-Path=New manifest value: Class-Path=../../../patch_jars/BUG9757998_1033.jar
Result: Success
Installing Patch Set ID: P2MT

Starting installation of Patch ID: DP1K

Installing D:\bea1033\utils\bsu\cache_dir\DP1K.jar

Extracting D:\bea1033\patch_wls1033\patch_jars\BUG10076424_1033.jar

Updating D:\bea1033\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar

Old manifest value: Class-Path=../../../patch_jars/BUG9757998_1033.jarNew manifest value: Class-Path=../../../patch_jars/BUG10076424_1033.jar ../../../patch_jars/BUG9757998_1033.jar
Result: Success

Starting installation of Patch ID: BFYT
Installing D:\bea1033\utils\bsu\cache_dir\BFYT.jar
Extracting D:\bea1033\patch_wls1033\patch_jars\BUG10276172_1033.jarUpdating D:\bea1033\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jarOld manifest value: Class-Path=../../../patch_jars/BUG10076424_1033.jar ../../../patch_jars/BUG9757998_1033.jarNew manifest value: Class-Path=../../../patch_jars/BUG10276172_1033.jar ../../../patch_jars/BUG10076424_1033.jar ../../../patch_jars/BUG9757998_1033.jar
Result: Success

Note : Patch B1WK and P2MT are cumulative patches. hence few additional patches are also installed as seen in the bsu output.
Note : If you are not sure as to what is the prod_dir location that you need to mention during installing patch using bsu, run the following command :

.
Command : bsu -report

.
Sample output :

.
D:\bea1033\utils\bsu>bsu -report
Patch Report============
Report Info
Report Options
bea_home……………… ### OPTION NOT SET
product_mask………….. ### OPTION NOT SET
release_mask………….. ### OPTION NOT SET
profile_mask………….. ### OPTION NOT SET
patch_id_mask…………. ### OPTION NOT SET
Report Messages  BEA Home……………… D:\bea1033Product Description
Product Name………….. WebLogic Server
Product Version……….. 10.3.3.0
Installed Components…… Core Application Server, Administration Console, Configuration Wizard and Upgrade Framework, Web 2.0 HTTP Pub-Sub Server, WebLogicSCA, WebLogic JDBC Drivers, Third Party JDBC Drivers, WebLogic Server Clients, WebLogic Web Server Plugins, UDDI and Xquery Support, Evaluation Database, Workshop Code Completion Support
Product Install Directory. D:\bea1033\wlserver_10.3
Java Home…………….. d:\bea1033\jdk160_18
Jave Vendor…………… Sun
Java Version………….. 1.6.0_18
Patch Directory……….. D:\bea1033\patch_wls1033
Profile………………. Default

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: