iSelfSchooling.com  Since 1999     References  |  Search more  | Oracle Syntax  | Free Online Oracle Training

    Home      .Services     Login       Start Learning     Certification      .                 .Share your BELIEF(s)...

 

. Online Accounting        .Copyright & User Agreement   |
    .Vision      .Biography     .Acknowledgement

.Contact Us      .Comments/Suggestions       Email2aFriend    |

 

How to de-installing or remove Oracle9iAS From UNIX platforms?

 

 

The following is steps required to completely remove or de-install Oracle9i Application Server (9iAS) installation from UNIX platforms.

 

This article is intended for those who need to completely de-install 9iAS installation from Unix. If multiple 9iAS installations need to be de-installed from the same host, then the steps listed in this document can be applied on each 9iAS installation to be de-installed, starting with the 9iAS installations (Mid Tiers), followed by the 9iAS infrastructure installations.

 

This article doesn’t address to how to de-install 9iAS from Windows platforms. For information regard how to de-install 9iAS from Windows platforms refer to the article “How to de-install or remove Oracle9iAS from Windows platform.

 

Because the de-install process will include steps that require manual removal and/or update of files that are shared by other existing Oracle products, it is highly recommended to take a full backup of the system before starting the de-install process.

 

Steps to De-install an Oracle 9iAS Release 2 Installation on UNIX

-----------------------------------------------------------------

The following steps need to be taken for each 9iAS installation to be de-installed:

1- Verify dependencies

2- Stop the instance

3- De-install using OUI

4- Remove configuration information from OID

5- Remove Oracle Home

6- Update shared files

7- Cleanup OUI files (Optional)

1- Verify the Dependencies

--------------------------

 

Because de-installing a 9iAS installation may affect other associated 9iAS installations, dependencies need to be verified. Based on the 9iAS installation classification, a different set of action may need to be taken to other related 9iAS installation prior to de-install. A 9iAS installation can be classified as one of the following:

a) A standalone installation

b) An installation acting as the Primary 9iAS Instance

c) An installation that is associated with an Infrastructure

d) A standalone Infrastructure installation

e) An Infrastructure installation used by other installations (Mid-Tiers)

 

a. A standalone installation

============================

A standalone installation can only be a J2EE and Web Cache install type. In this case, no dependency on/from other installations and no additional actions to be taken at this step.

 

b. An installation acting as the Primary 9iAS Instance

======================================================

When multiple 9iAS installs are performed on a host, there is only one Oracle Home which will contain the active Enterprise Manager Daemon to enable the Oracle Enterprise Manager Website. All installations on a single host are administered by this Enterprise Manager. The Instance which contains the active Enterprise Manager Daemon is referred to as the Primary 9iAS Instance.

 

To identify whether this 9iAS installation is acting as the Primary 9iAS instance, check for ACTIVE_EMD_HOME entry in /etc/emtab (or /var/opt/oracle/emtab). If the Oracle Home that is contained in this entry is the one being de-installed, then this 9iAS installation is acting as a Primary 9iAS instance. In this case, while the OUI de-installs the installation, it will prompt the user to designate an alternate Primary instance from the remaining instances on the host.

 

CAUTION:

If the newly designated Primary 9iAS instance is to be de-installed later, refer to "Oracle9i Application Server Release Notes Addendum Release 2", Section 2.3.4 "Transferring Oracle Enterprise Manager Web Site After Deinstallation of an Instance Produces Error" for additional steps before de-installing the installation.

 

c. An installation that is associated with an Infrastructure

============================================================

After de-installing the installation, for example, Portal and Wireless install type, OUI will remove all information related to this installation from the DCM repository of the Infrastructure. However, in some cases OUI may not properly de-install the installation, therefore the following steps are recommended to be followed:

i. Before de-installing the installation:

Get the name of the instance, by running the following command from the installation home:

$ORACLE_HOME\dcm\bin\dcmctl whichInstance

 

ii. After de-installing the installation:

Remove the instance information from the DCM repository of the Infrastructure, by running the following command from the Infrastructure installation home:

$ORACLE_HOME\dcm\bin\dcmctl destroyInstance -i <instance_name>

 

d. A standalone Infrastructure installation

===========================================

There is no dependency and no further actions need to be taken at this step.

 

e. An Infrastructure installation used by other installations (Mid-Tiers)

=========================================================================

In this case, all installations associated with this Infrastructure installation need to be de-installed prior to de-installing the infrastructure.

 

2- Stop the Instance

--------------------

To completely stop all the instance processes. To confirm that all processes have been stopped, use the following command as root:

# ps -ef | grep $ORACLE_HOME Where $ORACLE_HOME above is the Oracle Home of the instance to be stopped.

 

If the above command returned any still running processes, kill the processes using the following command as root:

# kill -9 [pid]

 

3- De-install using OUI

-----------------------

Use the Oracle Universal Installer (OUI) to de-install the installation. Select the Oracle Home to be de-installed in the OUI Inventory Screen and click Remove.

 

4- Remove configuration information from OID

--------------------------------------------

When you de-install a 9iAS installation (Mid-Tier) that is associated with an Infrastructure using Oracle Universal Installer, the configuration information stored in Oracle Internet Directory for this installation is not automatically removed. This is necessary if you need to install/re-install a new 9iAS installation (Mid-Tier) with the same name as the previously de-installed one.

 

5- Remove Oracle Home

---------------------

Manually remove the Oracle Home of the de-installed installation. Assuming that $ORACLE_HOME is set to /app/oracle/product/ias/infra. In this case use the following commands as the oracle user:

$ cd /app/oracle/product/ias

$ rm -rf infra

Also, remove any reference to the Oracle Home from all environment variables.

 

Be sure to verify that any Oracle environment is not set in the .login or .profile, nor any other custom startup scripts.

 

6- Update shared files

----------------------

The following files may be used by existing Oracle products, and will need to be updated manually to remove any reference to the de-installed installation. You need to be logged with the root user to update these files.

 

CAUTION:

It is recommended to take a copy of the following files prior to updating them.

 

a. /etc/oratab (or /var/opt/oracle/oratab)  Remove all lines (if they exist), from this file that reference the de-installed Oracle Home.

 

b. /etc/emtab (or /var/opt/oracle/emtab)  Remove all lines (if they exist), from this file that reference the de-installed Oracle Home.

 

7- Cleanup OUI files (Optional)

-------------------------------

CAUTION:

The following step should only be taken if no other Oracle products exist on the machine. Removing the following files and directories while other Oracle products exist, will result in ALL Oracle products on the system rendered unusable.

Assuming that $ORACLE_BASE is set to /app/oracle/product:

$ cd /app/oracle/product

$ rm -rf infrastructure

$ rm -rf oradata

$ rm -rf oui

$ rm -rf oraInventory

$ rm -rf jre

$ rm -rf admin

As user root:

# rm -rf /usr/local/bin/dbhome

# rm -rf /usr/local/bin/oraenv

# rm -rf /usr/local/bin/coraenv

# rm -rf /etc/oratab

# rm -rf /etc/emtab

# rm -rf /etc/oraInst.loc

Note:

-----

oratab, emtab and oraInst.log may exist under /var/opt/oracle rather than /etc.  If this is the case, use the following commands to remove them:

# cd /var/opt/oracle

# rm -rf oracle

 

Good Luck!

 

Google
 
Web web site