sixtydoses. where od is harmless.

March 5, 2010

Either Oracle Smart Update utility interface sucks or I’m an artard.

Filed under: Tech — Tags: , , — od @ 6:43 pm

I just couldn’t figure out how to get Smart Update to work offline. I don’t have the authorization to download all the patches, so I got them from some Oracle support guy, fire up bsu.sh, select work offline, and spend several hours trying to figure out how to point to my patches directory. Bleargh. Fortunately, CLI works like a charm.


od@sysh:/opt/bea103/utils/bsu$ ./bsu.sh -install -patchlist=79YU,CJ4W,ETR7,IQXV,SYCB,T552 -patch_download_dir=/home/od/Desktop/allpatcheszip -prod_dir=/opt/bea103/wlserver_10.3
Checking for conflicts..
No conflict(s) detected

Installing Patch ID: 79YU..
Result: Success

Installing Patch ID: CJ4W.
Result: Success

Installing Patch ID: ETR7.
Result: Success

Installing Patch ID: IQXV.
Result: Success

Installing Patch ID: SYCB.
Result: Success

Installing Patch ID: T552.
Result: Success



On a different note, while I was installing WebLogic Server 10.3.x in silent mode, I was prompted with this error:


od@sysh:~/Desktop$ ./server103_linux32.bin -mode=silent -silent_xml=silent_103.xml
Extracting 0%……………………………………………………………………………………….100%
The local BEA product registry is corrupted. Please select another BEA Home or contact BEA Support
** Error during execution, error code = 65280.



Found a forum that says, for version above 9.x, ‘COMPONENT_PATHS’ doesn’t accept value like this –> “WebLogic Server/Core Application Server” anymore. But actually it does accept “WebLogic Server/<insert_component>” format, and even the documentation says so.

So anyway, the error was due to my habit of copying and pasting in vi which sort of corrupted my component paths line. So yea, if you get that kind of error, I’d say chance is your silent.xml file format is incorrect.

These are my silent.xml files.



This will install  all WebLogic Server components.

###################################################

<?xml version=”1.0″ encoding=”UTF-8″?>
<!– Silent installer option: -mode=silent -silent_xml=C:\bea\silent.xml –>

<bea-installer>
<input-fields>
<data-value name=”BEAHOME” value=”/opt/bea1032″ />
<data-value name=”WLS_INSTALL_DIR” value=”/opt/bea1032/wlserver_10.3″ />
<data-value name=”COMPONENT_PATHS” value=”WebLogic Server” />
<data-value name=”INSTALL_NODE_MANAGER_SERVICE” value=”yes” />
<data-value name=”NODEMGR_PORT” value=”5559″ />
<data-value name=”INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER” value=”yes”/>

</input-fields>
</bea-installer>

###################################################



This will install all WebLogic Server components, without the samples.

###################################################

<?xml version=”1.0″ encoding=”UTF-8″?>
<!– Silent installer option: -mode=silent -silent_xml=C:\bea\silent.xml –>

<bea-installer>
<input-fields>
<data-value name=”BEAHOME” value=”D:\bea\wls103_silent” />
<data-value name=”WLS_INSTALL_DIR” value=”D:\bea\wls103_silent\wlserver_10.3″ />
<data-value name=”WLW_INSTALL_DIR” value=”D:\bea\wls103_silent\workshop_10.3″ />
<data-value name=”COMPONENT_PATHS” value=”WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Workshop/Workshop for WebLogic|Workshop/Workshop Runtime Framework” />
<data-value name=”USE_EXTERNAL_ECLIPSE” value=”false” />
<data-value name=”EXTERNAL_ECLIPSE_DIR” value=”D:\eclipse332\eclipse” />
<data-value name=”INSTALL_NODE_MANAGER_SERVICE” value=”yes” />
<data-value name=”NODEMGR_PORT” value=”5559″ />
<data-value name=”INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER” value=”yes”/>

</input-fields>
</bea-installer>

###################################################


What caused the error was, I simply copied the component paths from my terminal, and paste it using the vi editor, so I kinda missed the fact that the line was not continuous, creating breaks of white space. Something like this:

<data-value name=”COMPONENT_PATHS” value=”WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 <break of white space>
HTTP Pub-Sub Server WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC <break of white space>
Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Workshop/Workshop for <break of white space>
WebLogic|Workshop/Workshop Runtime Framework” />

Create a free website or blog at WordPress.com.