This procedure uninstalls the WebSphere® Application
Server product from a Solaris system. After running the uninstaller
program, manual steps remove log files and registry entries that can
prevent you from reinstalling the product into the original directory.
If you are not planning to reinstall, do not uninstall manually.
Before you begin
The uninstaller program
removes all profiles by default, including all of the configuration
data and applications in each profile. Before you start the uninstall
procedure, back up the config folder, the installableApps folder,
and the installedApps folder of each profile,
if necessary, or use the -OPT removeProfilesOnUninstall="false" parameter
on the uninstall command.See Using command line tools for
a description of managing configuration files. Back up all applications
that are not stored in another location.
Determine the
installation root directory for the product so that you remove the
correct product and produce a clean system.
About this task
Reinstalling
the product into a new directory when files remain from a previous
installation can create a coexistence scenario. However, you can delete
all files and registry entries to completely remove a WebSphere Application Server product. A
clean system lets you reinstall the product into the original directory
without coexistence.
Table 1. Default directories. Default
directories are shown in the following planning table:
Identifier |
Directory |
Actual location |
app_server_root |
/opt/IBM/WebSphere/AppServer |
|
profile_root |
/opt/IBM/WebSphere/AppServer/profiles |
|
plugins_root |
/opt/IBM/WebSphere/Plugins |
|
The installation wizard and the Profile Management Tool provide an override
for your own locations for root directories.
Use
the installRegistryUtils command
that is located on the product disk to examine the installation locations
for all installed WebSphere Application
Server products.
Perform the following procedure
to produce a clean system.
Procedure
- Log on as the same user ID who installed
the product.
- Run the uninstaller program for the Web server
plug-ins for WebSphere Application
Server.
If a Web server is configured to run with the
application server, uninstall the plug-ins to remove the configuration
from the Web server.
- Use the kill command to
kill all Java™ processes that
are running.
If running Java processes
are not related to WebSphere Application
Server products and it is not possible to stop them, stop all WebSphere Application Server
product-related processes. Use the following command to determine
all processes that are running:
ps -ef | grep java
Stop
all WebSphere Application
Server-related processes with the
kill command.
kill -9 java_pid_1 java_pid_2...java_pid_n
- Issue the uninstall command.
If you have already run the uninstaller program
or if you cannot run the uninstaller program, skip this step.
app_server_root/uninstall/uninstall
See the description of the uninstall command for more information.
The
Uninstaller wizard begins and displays the Welcome panel.
- Search for related packages. Type the following
command to search for packages for WebSphere Application
Server products:
pkginfo | grep WS
If no packages appear when using these commands, skip
the next step. The resulting list of packages has the following format:
application WSBAA70 WebSphere Application Server
- Change directories to the directory where package information
is registered.
cd /var/sadm/pkg
- Issue the following command to remove any WebSphere Application
Server-related packages.
pkgrm packagename1 packagename2 packagename3 ...
Do not remove packages for WebSphere Application Server
products that you are not uninstalling. Version 7.0 package names
have a prefix of WSB or WSP and a suffix of 70. WSC package names
do not have a suffix of 70.
Issue the
following commands from the
/var/sadm/pkg directory
to search for and remove any WebSphere Application Server
product-related packages that are registered in the
/var/sadm/pkg directory:
- Change directories to the correct directory: cd /var/sadm/pkg
- ls |grep WSB|xargs -i pkgrm -n {} for WebSphere Application Server products
- ls |grep WSC|xargs -i pkgrm -n {} for Application
Client
- ls |grep WSP|xargs -i pkgrm -n {} for Web
server plug-ins for WebSphere Application Server
Package names for Web server plug-ins for WebSphere Application
Server are:
WSPAA70
WSPAA70AC
WSPAA70BC
WSPAA70CC
WSPAA70DC
WSPAA70FC
WSPAA70FB
WSPAA70GC
WSPAA70HC
If there is a problem removing the packages,
remove the related package directories in the /var/sadm/pkg directory,
including the preremove files.
For example, remove the following
file before issuing the
pkgrm -n WSBAA70 command:
/var/sadm/pkg/WSBAA70/install/preremove
- Type rm -rf app_server_root to
remove WebSphere Application
Server directories in the app_server_root directory.
Do not remove installation root directories for products that you
intend to keep. Remove all of the profile directories as well.
- Use the installRegistryUtils command
that is located on the product disk to examine the installation locations
for all installed WebSphere Application
Server products and remove the desired products from the install registry.
Results
This procedure results in having
a clean system. You can reinstall into the same directories now. A
clean system has no trace of a previously deleted installation.