It's all about Weblogic..!!

May 4, 2010

Steps to apply patches using smart update from command line (bsu command) for Solaris / Unix machine

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

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

1)  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 ) to the Solaris box.

Note : All the patches and patch-catalog.xml file will be present in cache_dir folder ( Eg : D:\bea1033\utils\bsu\cache_dir ). You need to copy all these files from  cache_dir folder of Windows box and ftp it to Solaris box –> to cache_dir folder. ( Eg : opt/bea1033/utils/bsu/cache_dir )

3)  On the Solaris machine go to the bsu folder. ( Eg : opt/bea1033/utils/bsu ) and run the following command :

Command :

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

Eg :

$ ./bsu.sh -prod_dir=opt/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 :

$ ./bsu.sh -prod_dir=opt/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 something similar to the following (sampled on Windows machine):

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: DFYKInstalling D:\bea1033\utils\bsu\cache_dir\DFYK.jarExtracting D:\bea1033\patch_wls1033\patch_jars\BUG9757998_1033.jarUpdating D:\bea1033\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jarOld 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: DP1KInstalling D:\bea1033\utils\bsu\cache_dir\DP1K.jarExtracting D:\bea1033\patch_wls1033\patch_jars\BUG10076424_1033.jarUpdating D:\bea1033\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jarOld 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

D:\bea1033\utils\bsu>_

Note : Patch B1WK and P2MT are cumulative patches. hence few additional patches are also seen as installed 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:\bea1033
Product 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

3 Comments »

  1. Pretty section of content. I just stumbled upon your web site
    and in accession capital to assert that I acquire actually enjoyed account your blog posts.
    Anyway I will be subscribing to your feeds and even I achievement you access
    consistently quickly.

    Comment by frontier cable and internet packages — July 13, 2013 @ 8:15 pm

  2. What’s up Dear, are you truly visiting this web page on a regular basis, if so then you will without doubt obtain nice experience.

    Comment by buy viagra with prescription — July 13, 2013 @ 9:41 pm

  3. Sweet blog! I found it while surfing around on Yahoo News.

    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Thank you

    Comment by mobius syndrome treatment — September 28, 2013 @ 1:03 am


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: