Oracle® Communications Data Model Installation Guide Release 11.3.1 Part Number E28441-04 |
|
|
PDF · Mobi · ePub |
This chapter explains how to deinstall Oracle Communications Data Model:
Backing up and recovering Oracle Communications Data Model involves a two-step process to 1) backup or recover the relational objects, and 2) backup or recover the analytic workspace that is part of Oracle Communications Data Model. These steps are outlined in the following topics:
Take the following steps to backup Oracle Communications Data Model:
Backup the OCDM_SYS
and OCDM_MINING
schemas by executing the expdp
utility.
This utility exports all physical tables containing the data and trained mining models. For more information, see Oracle Database Utilities.
Backup the analytic workspace that is part of the Oracle Communications Data Model. The analytic workspace is backed up as an EIF file, named OCDM_BAK.EIF
, which is generated under the ORACLE_HOME
/ocdm/pdm/olap
directory.
Connect to the Database with ocdm_sys
.
Issue the following SQL statements.
exec dbms_aw.execute('AW ATTACH OCDM'); exec dbms_aw.execute('CDA OCDM_OLAP_DIR'); exec dbms_aw.execute('EXPORT ALL TO EIF FILE ', 'OCDM_BAK.EIF', ' NOTEMPDATA'); exec dbms_aw.execute('AW DETACH OCDM');
Take the following steps to restore Oracle Communications Data Model from the backup files:
Restore the OCDM_SYS
and OCDM_MINING
schemas by executing the impdp
utility.
This utility imports all physical tables containing the data and trained mining models. For more information, see Oracle Database Utilities.
Connect to the Database with ocdm_sys
, and import the analytic workspace that was saved as an EIF file, named OCDM_BAK.EIF
, under the ORACLE_HOME
/ocdm/pdm/olap
directory.
exec dbms_aw.execute('IMPORT ALL TO EIF FILE ','OCDM_BAK.EIF');
To deinstall Oracle Communications Data Model, you do not simply run Oracle Universal Installer in deinstall mode. Instead, you perform the following tasks:
Backup Oracle Communications Data Model, as described in "Exporting Oracle Communications Data Model".
Stop any sessions that use the Oracle Communications Data Model schemas, as described in "Pre-Deinstallation Tasks".
Execute the deinstallation script, as described in "Deinstallation Script Execution".
If you are deinstalling the sample reports, perform the tasks described in "Post-Deinstallation Tasks".
Note:
To deinstall Oracle Communications Data Model, you do not simply run the Oracle Universal Installer in deinstall mode.The deinstallation script removes the ocdm_sys
and ocdm_mining
schemas. Consequently, before you run the deinstallation script, ensure that there are no active sessions that connect to either the ocdm_sys
schema or the ocdm_mining
schema.
Identifying if the ocdm_sys or ocdm_mining schemas are active
To identify if there are active sessions connecting to these schemas take the following steps:
Sign in as DBA.
Execute the following SQL statements:
select SID,SERIAL# from v$session where USERNAME='OCDM_SYS'; select SID,SERIAL# from v$session where USERNAME='OCDM_MINING';
If either of these queries returns a session ID, then there is an active session.
Ending an active ocdm_sys or ocdm_mining schema session
To end an active session, execute the following statements in which you replace sid
and serial
are the session ID and serial number returned by the earlier queries.
alter system kill session 'sid,serial' ;
To execute the Oracle Communications Data Model deinstallation script:
Set the ORACLE_HOME to the location of the Database on which to deinstall Oracle Communications Data Model.
For example, suppose that Oracle Home is in the directory /loc/app/oracle/product/dbhome
In a Bourne, Bash, or Korn shell, use these commands to set ORACLE_HOME:
$ ORACLE_HOME=/loc/app/oracle/product/dbhome $ export ORACLE_HOME
In a C shell, use this command to set ORACLE_HOME
% setenv ORACLE_HOME /loc/app/oracle/product/dbhome
Execute the Oracle Communications Data Model deinstallation script:
$ORACLE_HOME/ocdm/ocdm_deinstall.sh
When prompted, enter the SYSTEM password.
The script de-configures Oracle Communications Data Model and executes the Oracle Universal Installer in deinstall silent mode.
If you are deinstalling the sample reports, after the deinstallation script runs, perform the tasks described in "Post-Deinstallation Tasks".
If you are deinstalling the Oracle Communications Data Model sample reports, follow these steps to perform additional cleanup:
Delete ocdm.rpd
in the directory BIHome
/Server/Repository
.
Delete the ocdmwebcat
folder in BIDataHome
/web/catalog
.
Delete the following line from BIHome
/Server/Config/NQSConfig.INI
:
Star = ocdm.rpd, DEFAULT