Skip Headers
Oracle® Application Server Installation Guide
10g Release 2 (10.1.2) for AIX 5L Based Systems (64-Bit)
B25201-01
  Go To Documentation Library
Home
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

E Deinstallation and Reinstallation

This appendix guides you through the deinstallation and reinstallation process for Oracle Application Server.

E.1 New Tool: Deconfig Tool

In this release, there is a new tool called the Deconfig tool that you need to run as part of the deinstallation procedure. This tool removes entries in OracleAS Metadata Repository and Oracle Internet Directory for the Oracle Application Server instance that you want to deinstall.

The Deconfig tool does not remove partner application entries. If you need to remove partner application entries, follow the steps in Section G.3.1, "Obsolete Partner URLs Still Remain on the OracleAS Single Sign-On Administration Screen".

The Deconfig tool does not remove OracleAS Clusters from the farm. If you are deinstalling OracleAS Cluster, you will need to run the dcmctl removecluster command after deinstalling the instances. Refer to Section E.5, "Deinstalling OracleAS Cluster (Identity Management)"for details.

To run the Deconfig tool, run the Perl interpreter on the ORACLE_HOME/bin/deconfig.pl script. Use the Perl interpreter provided with Oracle Application Server.

prompt> cd $ORACLE_HOME/bin
prompt> $ORACLE_HOME/perl/bin/perl deconfig.pl [-u oid_user]
            [-w password] [-r realm] [-dbp sys_db_password]

If you run it without any parameters, then the tool prompts you for the necessary information.

E.1.1 Parameters

-u oid_user

Specify the Oracle Internet Directory user.

You can specify the Oracle Internet Directory user using the user's simple name or the user's distinguished name (DN). For example, the user's simple name can be jdoe@mycompany.com, which corresponds to the DN cn=jdoe,l=us,dc=mycompany,dc=com.

The Oracle Internet Directory user needs to have privileges for deinstalling the components that are configured in the Oracle Application Server instance that you want to deinstall. These privileges are the same as for installing and configuring the component.

For example, if you are deinstalling an OracleAS Infrastructure instance that is running Oracle Delegated Administration Services and OracleAS Single Sign-On, make sure the user has privileges to configure these components. For a list of components and groups that grant the privileges, see Section 8.3, "Groups Required to Configure or Deinstall Components".

If you want to run the tool as the Oracle Internet Directory superuser, then be sure to use cn=orcladmin, and not just orcladmin. These are two different users. If you want more details about these users, see Section 8.1, "Default Users in Oracle Internet Directory".

-w password

Specify the password for the Oracle Internet Directory user.

-r realm

Specify the realm in which to authenticate the user. This value is required only if your Oracle Internet Directory has more than one realm.

-dbp sys_db_password

Specify the password for the SYS user in the database. This is the OracleAS Metadata Repository database used by Oracle Internet Directory.

This value is required only if you are deinstalling an Oracle Identity Management-only instance that has Oracle Internet Directory configured.

If you specify this parameter and it is not needed, the password value is simply not used.

-help or -h

You can also run the Deconfig tool with the -h or -help parameter to display help:

prompt> $ORACLE_HOME/perl/bin/perl deconfig.pl -h
 - or -
prompt> $ORACLE_HOME/perl/bin/perl deconfig.pl -help

E.1.2 Log Files Generated by the Deconfig Tool

The Deconfig tool writes its log file to the ORACLE_HOME/cfgtoollogs/DeconfigureWrapper.log file.

E.2 Deinstallation Procedure: Overview

Follow these high-level steps to deinstall Oracle Application Server (the details are provided in later sections):

  1. Deinstall middle-tier instances first.

    1. Run the Deconfig tool on the instance.

    2. Run the installer and click the Deinstall Products button.

    3. Clean up any remaining files.

  2. Then deinstall OracleAS Infrastructure instances.

    1. Run the Deconfig tool on the instance.

    2. Run the installer and click the Deinstall Products button.

    3. Clean up any remaining files.


Note:

  • If you used OracleAS Metadata Repository Creation Assistant to install the OracleAS Metadata Repository on an existing database, and you want to remove the OracleAS Metadata Repository, then select the "Remove" option in OracleAS Metadata Repository Creation Assistant. You can also use OracleAS Metadata Repository Creation Assistant to remove the registration from Oracle Internet Directory.

  • If you remove an infrastructure instance, then all middle-tier instances that depend on that infrastructure will no longer work.

    If you want to keep the middle-tier instances, you can configure them to use services from another infrastructure. Refer to Oracle Application Server Administrator's Guide for details.


Items to Remove or Clean Up

To deinstall Oracle Application Server instances, you have to clean up the items listed in Table E-1. The procedures are described later in this appendix.

Table E-1 Items to Deinstall

Item to Clean Up Tool to Use

Files from the Oracle home directory

Installer

If the installer does not remove all the files, you can remove the remaining files using the rm command.

Entries for the deleted instance in the Inventory directory

Installer

Instance name from Farm page

Installer

Entries for the deleted instance in Oracle Internet Directory

Deconfig tool


The installer does not permit custom deinstallation of individual components.

E.3 Deinstalling OracleAS Cold Failover Cluster Installations

If you are deinstalling an OracleAS Cold Failover Cluster installation:

  1. Stop the clusterware agents or packages that monitor and fail over the environment. Refer to your clusterware documentation for details.

  2. Then perform the steps described in this appendix.

E.4 Deinstalling OracleAS Single Sign-On Instances in OracleAS Cluster (Identity Management)

If you have multiple OracleAS Single Sign-On instances installed in a cluster against the same Oracle Internet Directory and you would like to deinstall some of the instances but keep others running, perform the following steps before running the Deconfig tool.

Note that if the OracleAS Single Sign-On instance that you wish to deinstall was the last instance to be installed against the Oracle Internet Directory, you should not perform this step. Instead, perform the steps in Section E.7, "Deinstalling OracleAS Infrastructure".

  1. Open the file located at ORACLE_HOME/deconfig/DeconfigWrapper.properties for editing.

  2. Search for the line that begins with "SSO=". For example, the line might look like the following:

    SSO=/OraHome_1/jdk/bin/java -jar /OraHome_1/sso/lib/ossoca.jar deinstall /OraHome_1 "%OID_USER%" %OID_PASSWORD%
    
    
  3. Comment out the line by adding a pound (#) character at the beginning of the line. In the preceding example, the line would be changed to look like the following:

    # SSO=/OraHome_1/jdk/bin/java -jar /OraHome_1/sso/lib/ossoca.jar deinstall /OraHome_1 "%OID_USER%" %OID_PASSWORD%
    
    

After modifying the file, perform the steps in Section E.7, "Deinstalling OracleAS Infrastructure" to complete the deinstallation.

E.5 Deinstalling OracleAS Cluster (Identity Management)

To deinstall an OracleAS Cluster (Identity Management), perform the following steps.

  1. Deinstall all instances that contain OracleAS Single Sign-On except for the last instance installed. Use the steps in Section E.4, "Deinstalling OracleAS Single Sign-On Instances in OracleAS Cluster (Identity Management)" to perform the deinstallation.

  2. Deinstall the last OracleAS Single Sign-On instance using the steps in Section E.7, "Deinstalling OracleAS Infrastructure".

  3. If you are using a Distributed OracleAS Cluster (Identity Management), deinstall the Oracle Internet Directory instances using the steps in Section E.7, "Deinstalling OracleAS Infrastructure".

E.6 Deinstalling Middle Tiers

To deinstall middle tiers:

  1. Log in as the operating system user who installed the instance you want to deinstall.

  2. Stop all processes associated with the instance you want to deinstall.

    Refer to Oracle Application Server Administrator's Guide for details on how to stop the processes.

  3. Run the Deconfig tool.

    prompt> cd $ORACLE_HOME/bin
    prompt> $ORACLE_HOME/perl/bin/perl deconfig.pl [parameters]
    
    

    Refer to Section E.1, "New Tool: Deconfig Tool" for parameter details.

  4. Start the installer.

    prompt> $ORACLE_HOME/oui/bin/runInstaller
    
    
  5. Follow these steps in the installer.

    1. Welcome screen: Click Deinstall Products.

    2. Inventory screen: Select the instance you want to deinstall, and click Remove.

    3. Confirmation screen: Verify the components selected for deinstallation. Click Yes to continue.

    4. Deinstallation Progress screen: Monitor the progress of the deinstallation.

    5. Exit the installer when the deinstallation is complete.

  6. Delete any remaining files in the Oracle home directory of the deleted instance.

    prompt> rm -rf $ORACLE_HOME
    
    
  7. Remove the line for the deinstalled middle tier from the file.

    Towards the end of the file, you should see lines that specify the Oracle home directory. Remove the line for the Oracle home that you deinstalled. For example, if your Oracle home is /private1/j2ee, the line would look like the following:

    *:/private1/j2ee:N
    
    
  8. Note that OracleAS Portal entries in Oracle Internet Directory are not removed by the Deconfig tool or the installer.

E.7 Deinstalling OracleAS Infrastructure

This section describes how to deinstall OracleAS Infrastructure instances. It includes the following topics:

E.7.1 Deinstallation Order

The OracleAS Infrastructure instance could contain all the OracleAS Infrastructure components, or it could contain only a subset of the components, because you have a distributed OracleAS Infrastructure installation. Here are some common scenarios and their deinstallation order:

If you have an Oracle Identity Management + OracleAS Metadata Repository instance, you have only one instance to deinstall.

If you installed Oracle Identity Management and OracleAS Metadata Repository separately:

  1. Deinstall the Oracle Identity Management instance.

  2. Deinstall the OracleAS Metadata Repository.

If you have a distributed Oracle Identity Management:

  1. Deinstall the instance(s) that are running OracleAS Single Sign-On, Oracle Delegated Administration Services, Oracle Directory Integration and Provisioning, and/or OCA.

  2. Deinstall the instance running Oracle Internet Directory.

  3. Deinstall the OracleAS Metadata Repository.

E.7.2 Deinstallation Steps

  1. Log in as the operating system user who installed the instance you want to deinstall.

  2. If OCA is configured on the instance you want to deinstall, run the following commands:

    prompt> $ORACLE_HOME/oca/bin/ocactl stop
    prompt> $ORACLE_HOME/oca/bin/cmdeinst ocaAdminPassword oidAdminPassword
    
    

    Replace ocaAdminPassword with the password of the OCA administrator.

    Replace oidAdminPassword with the password of the Oracle Internet Directory user who installed OCA. The user must belong to the following groups:

    • Trusted Application Admins

    • iAS Admins

    • Repository Owners group for the metadata repository used by OCA

    The "ocactl stop" command stops OCA services. The cmdeinst command performs the following actions:

    • removes OCA entries from Oracle Internet Directory

    • removes data from tables in the oca schema

    • removes OCA files created by the OCA Configuration Assistant during installation

  3. If Oracle Directory Integration and Provisioning is configured and running in the instance you want to deinstall, stop the Oracle Directory Integration and Provisioning server.

    Ensure that Oracle Internet Directory is running.

    You can stop Oracle Directory Integration and Provisioning by running the following command:

    prompt> cd $ORACLE_HOME/bin
    prompt> oidctl connect=db_connect_string server=odisrv instance=1 stop
    
    

    db_connect_string is the TNS alias as listed in the file ORACLE_HOME/network/admin/tnsnames.ora.

    For any additional Oracle Directory Integration and Provisioning servers that you started, you must stop them too. Refer to instructions in the Oracle Identity Management Integration Guide.

  4. If Oracle Internet Directory is configured as a replica, you need to delete this node from the directory replication group (DRG). Refer to Chapter 25, "Oracle Internet Directory Replication Administration", in the Oracle Internet Directory Administrator's Guide for steps.

  5. Run the Deconfig tool.

    prompt> cd $ORACLE_HOME/bin
    prompt> $ORACLE_HOME/perl/bin/perl deconfig.pl [parameters]
    
    

    Refer to Section E.1, "New Tool: Deconfig Tool" for parameter details.


    Note:

    If you are deinstalling an instance that includes the Oracle Internet Directory or OracleAS Single Sign-On components, you need to run the Deconfig tool as the Oracle Internet Directory superuser (cn=orcladmin). If the instance does not include Oracle Internet Directory or OracleAS Single Sign-On, then you need to run the tool as a user with the proper privileges, as shown in Table 8-4.

  6. Start the installer.

    prompt> $ORACLE_HOME/oui/bin/runInstaller
    
    
  7. Follow these steps in the installer.

    1. Welcome screen: Click Deinstall Products.

    2. Inventory screen: Select the instance you want to deinstall, and click Remove.

    3. Confirmation screen: Verify the components selected for deinstallation. Click Yes to continue.

    4. Deinstallation Progress screen: Monitor the progress of the deinstallation.

    5. Exit the installer when the deinstallation is complete.

  8. Delete any remaining files in the deleted instance's Oracle home directory.

    prompt> rm -rf $ORACLE_HOME
    
    
  9. Remove lines for the deinstalled infrastructure instance from the file.

    Towards the end of the file, you should see lines that specify the Oracle home directory. If you are deinstalling an infrastructure instance that contains a metadata repository, there will be two lines in the file:

    • one line that begins with a *

    • one line that begins with the database SID

    You need to remove both lines.

    For example, if the infrastructure instance is installed in /private1/infra, and it includes a metadata repository whose SID is orcl, the lines would look like the following:

    orcl:/private1/infra:N
    *:/private1/infra:N
    
    

E.8 Deinstalling OracleAS Developer Kits

  1. Log in as the operating system user who installed OracleAS Developer Kits.

  2. Stop all processes associated with the instance you want to deinstall.

    Refer to Oracle Application Server Administrator's Guide for details on how to stop the processes.

  3. Start the installer.

    prompt> $ORACLE_HOME/oui/bin/runInstaller
    
    
  4. Follow these steps in the installer.

    1. Welcome screen: Click Deinstall Products.

    2. Inventory screen: Select the instance you want to deinstall, and click Remove.

    3. Confirmation screen: Verify the components selected for deinstallation. Click Yes to continue.

    4. Deinstallation Progress screen: Monitor the progress of the deinstallation.

    5. Exit the installer when the deinstallation is complete.

  5. Delete any remaining files in the deleted instance's Oracle home directory.

    prompt> rm -rf $ORACLE_HOME
    
    
  6. Remove the line for the deinstalled OracleAS Developer Kits from the file.

    Towards the end of the file, you should see lines that specify the Oracle home directory. Remove the line for the Oracle home that you deinstalled. For example, if your Oracle home is /private1/devkit, the line would look like the following:

    *:/private1/devkit:N
    
    

E.9 Harmless Errors in the Log File

If you get the following "unable to delete file" and "unable to find make file" errors in the oraInstalltimestamp.err file after you deinstall J2EE and Web Cache or Portal and Wireless instances, these are harmless error messages.

Ignoring Exception during de-install oracle.sysman.oii.oiil.OiilDeinstallException:
An error occurred during runtime. oracle.sysman.oii.oiil.OiilDeinstallException:
An error occurred during runtime.
...
Ignoring Exception during de-install oracle.sysman.oii.oiil.OiilDeinstallException:
Unable to delete file 
/home/j2ee/sysman/emd/targets.xml
oracle.sysman.oii.oiil.OiilDeinstallException: Unable to delete file
/home/j2ee/sysman/emd/targets.xml
at instantiateFileEx.deinstallAction(instantiateFileEx.java:935)
...
Ignoring Exception during de-installoracle.sysman.oii.oiil.OiilDeinstallException:
Unable to find make file:
/home/j2ee/network/lib/ins_net_client.mk
oracle.sysman.oii.oiil.OiilDeinstallException: Unable to find make file:
/home/j2ee/network/lib/ins_net_client.mk
at ssmakeux.deinstallAction(ssmakeux.java:246)
...

E.10 Cleaning Up Oracle Application Server Processes

If you do not shut down Oracle Application Server processes before starting the installation, then you have to kill the processes because the files for these processes are deleted. To check for processes that are still running, run the ps command:

prompt> ps -ef

To kill a process, use the kill command:

prompt> kill -9 process_id

You can determine the process_id from the ps command.

If you need to shut down the dcmctl shell process, you can try exiting the shell by typing exit.

E.11 Reinstallation

The installer does not allow reinstallation of an Oracle Application Server instance in a directory that already contains an Oracle Application Server instance. To reinstall Oracle Application Server in the same directory, you have to deinstall and then install it.

E.12 Troubleshooting

Refer to Section G.3, "Deinstallation Problems and Solutions" for help with common deinstallation problems.