11 Uninstalling OCECAS

This chapter describes how to uninstall Oracle Communications Evolved Communications Application Server (OCECAS) and its components.

Uninstalling OCECAS consists of the following steps.

Silent mode enables you to uninstall the product without having to respond to prompts during the process. For general information about silent installation for Oracle products, see "Using the Oracle Universal Installer in Silent Mode" in Oracle Fusion Middleware Installing with the Oracle Universal Installer.

Dropping the OPSS Repository

You can drop the OPSS repository in either GUI mode or silent mode.

Dropping the OPSS Repository in GUI Mode

Follow these steps to drop the OPSS Repository in GUI mode:

  1. If it is not already running, start the Oracle database listener by entering the following command:

    DB_Oracle_home/bin/lsnrctl start
    
  2. If WebLogic is running and using the database, stop WebLogic.

    You will not be able to drop the repository if it is being used.

  3. Locate the Oracle repository creation utility (rcu) and run it. For example:

    cd OCECAS_home/oracle_common/bin
    ./rcu
    
  4. On the Welcome screen, click Next.

  5. On the next screen, select the Drop Repository option button and then click Next.

  6. On the Database Connection Details screen, enter the specified values for the following entries:

    Table 11-1 Entries for Database Connection Details

    Entry Value

    Database Type

    Select Oracle Database from the menu list.

    Host Name

    Enter the host name of your host.

    Port

    Enter port number 1521.

    Service Name

    Enter SDC.

    Username

    Enter sys.

    Password

    Enter the password for user sys.

    Role

    Select SYSDBA from the menu list.


    Then click Next.

  7. On the Checking Prerequisites progress dialog, click OK when the operation is complete.

  8. On the Select Components screen, select the following schemas under Oracle AS Repository Components -> AS Common Schemas:

    • Audit Services

    • Audit Services Append

    • Audit Services Viewer

    • Oracle Platform Security Services

    • Common Infrastructure Services

    Then click Next.

  9. On the Checking Prerequisites progress dialog, click OK when the operation is complete.

  10. On the Summary screen, click Drop.

  11. On the Completion Summary screen, click Close.

Dropping the OPSS Repository in Silent Mode

You can also drop the OPSS database repository by using the -silent option to run rcu in silent mode.

Follow these steps to drop the OPSS repository in silent mode:

  1. If it is not already running, start the Oracle database listener by entering the following command:

    DB_Oracle_home/bin/lsnrctl start
    
  2. If WebLogic is running and using the database, stop WebLogic.

    You will not be able to drop the repository if it is being used.

  3. Enter the following commands on the command line to drop the repository in silent mode; if necessary, adjust the path for ORACLE_HOME to the directory that you are actually using:

    JAVA_HOME=/usr/java/latest
    ORACLE_HOME=/middleware/occas/oracle/product/12.1.0
    export JAVA_HOME ORACLE_HOME
    OCECAS_home/oracle_common/bin/rcu -silent -dropRepository -databaseType ORACLE -connectString localhost:1521:SDC -dbUser sys -dbRole sysdba -schemaPrefix SDC -component OPSS
    
  4. Enter the password for user SYS when you see the following prompt:

    Please enter the database password(User:sys):
    

The utility displays output like the following as it proceeds to completion:

Processing command line ....
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Drop
Repository Drop in progress.
Percent Complete: 22
Percent Complete: 47
Percent Complete: 49
Percent Complete: 49
Percent Complete: 100
Repository Creation Utility: Drop - Completion Summary
Database details:
Host Name : localhost
Port : 1521
Service Name : SDC
Connected As : sys
Prefix for (prefixable) Schema Owners : SDC
RCU Logfile : /middleware/occas/oracle/logdir.2015-10-07_08-36/rcu.log
Component schemas dropped:
Component Status Logfile
Oracle Platform Security Services Success /middleware/occas/oracle/logdir.2015-10-07_08-
36/opss.log
Repository Creation Utility - Drop : Operation Completed

Dropping the OCECAS Database

Prior to uninstalling OCECAS you must drop the OCECAS database from the machine where you installed it, either the machine that hosts the management domain, or the remote machine where you installed it.

To drop the OCECAS database from the machine that hosts the management domain, follow these steps:

  1. Manually shut down all services and WebLogic Server.

  2. Go to the Ocecas_home directory and enter the following command:

    ./root.sh -d remove
    

To drop the OCECAS database from a remote machine, follow these steps:

  1. Log in to the remote machine.

  2. Locate the scripts directory, which should be in the same location as on the machine hosting the management domain. For example:

    cd Ocecas_home/wlserver/csp/installation/scripts
    
  3. Run the following command:

    sdc-db.sh -d remove
    

Uninstalling OCECAS

You can uninstall OCECAS in either GUI mode or in silent mode.

Uninstalling OCECAS in GUI Mode

To uninstall OCECAS components in GUI mode, perform the following on each machine in your OCECAS system:

  1. Log in to the target system.

  2. Manually shut down all services and WebLogic Server.

  3. Go to the Ocecas_home/oui/bin directory, and enter the following command:

    ./deinstall.sh
    
  4. If you have multiple Oracle products installed in your Oracle inventory directory (oraInventory), the Distribution to Uninstall screen appears.

    Perform the following to specify the Oracle product to uninstall:

    1. From the Select Distribution to Uninstall list, select Evolved Communications Application Server~7.0.0.0.0.

    2. Click Uninstall.

  5. From the Welcome screen, click Next.

    The Deinstallation Summary screen appears.

  6. Verify that the list of feature sets to uninstall is correct.

    To save the information to a response file so you can uninstall the components later, click Save Response File and specify the name and location of the response file.

  7. Click Deinstall.

    The Deinstallation Progress screen appears, and a progress bar indicates the status of the uninstallation process.

  8. When the uninstallation process is complete, click Next.

    The Deinstallation Complete screen appears.

  9. Click Finish.

    The uninstaller exits.

Uninstalling OCECAS in Silent Mode

Use silent mode to uninstall duplicate installations on multiple machines. In silent mode, you create and use a response_uninistall.rsp configuration file, and then specify it as a parameter at the command line. The program does not display any options during the uninstallation process.

To uninstall OCECAS components in silent mode, perform the following on each machine in your OCECAS system:

  1. Log in to the target system.

  2. Manually shut down all services and WebLogic Server.

  3. Create a text file.

  4. Add the following contents to your text file:

    [ENGINE]
    
    #DO NOT CHANGE THIS.
    Response File Version=1.0.0.0.0
     
    [GENERIC]
     
    #This will be blank when there is nothing to be de-installed in distribution level
    SELECTED_DISTRIBUTION=Evolved Communications Application Server~7.0.0.0.0
     
    #The oracle home location. This can be an existing Oracle Home or a new Oracle Home
    ORACLE_HOME=Ocecas_home
    

    where SELECTED_DISTRIBUTION is set to the component to uninstall. This parameter is required only if multiple applications are installed in the Oracle Inventory directory (oraInventory). For OCECAS, set SELECTED_DISTRIBUTION to Evolved Communications Application Server~7.0.0.0.0.

  5. Save the text file with the name response_uninstall.rsp.

  6. Perform this step only on the machine that hosts your Management Domain:

    Go to the Ocecas_home directory, and enter the following command:

    ./root.sh -d remove
    
  7. Go to the Ocecas_home/oui/bin directory and enter the following in a command window:

    ./deinstall.sh -silent -responseFile ResponseFile
    

    where ResponseFile is the full path and name of the response_uninstall.rsp file. For example, Ocecas_home/oui/bin/response_uninstall.rsp.

    The uninstallation process completes with no prompts.

If the uninstallation procedure completes successfully, you see a response similar to the following:

Launcher log file is /tmp/OraInstall2015-11-06_01-46-10PM/launcher2015-11-06_01-46-10PM.log.
Starting Oracle Universal Installer
 
Checking if CPU speed is above 300 MHz.   Actual 2893.030 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 15826924 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 136360 MB    Passed
 
 
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2014-11-06_01-46-10PM
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Log: /tmp/OraInstall2014-11-06_01-46-10PM/deinstall2014-11-06_01-46-10PM.log
Setting ORACLE_HOME to /home/oracle/
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
Starting silent deinstallation...
-----------20%----------40%----------60%----------80%--------100%
 
The uninstall of Oracle Communications Evolved Communications Application Server 7.0.0.0.0 completed successfully.
Logs successfully copied to /export/oraInventory/logs.