Uninstall for database versions 9iR2 (9.2.x) and 10gR1 (10.1.x)
From the Oracle Universal Installer (OUI) page, you should be able to deinstall Data Mining from the 'Deinstall' icon. This is a supported way.
If OUI does not work for some reasons, you may do the following to deinstall ODM.
1. Start SQLPLUS and connect with user sys as sysdba
$ sqlplus / as sysdba
2. Remove ODM repositories from the database.
2.1 For Database release 9iR2 (9.2.x).
- Drop ODM, ODM_MTR schemas.
SQL> DROP USER ODM_MTR CASCADE;
SQL> DROP USER ODM CASCADE;
- Drop ODM public synonyms.
SQL> set heading offNote that 264 synonyms should be selected and dropped.
SQL> spool /home/oracle/drop_odm_synonyms.sql
SQL> select 'Drop public synonym ' || SYNONYM_NAME || ' ;' from DBA_SYNONYMS where TABLE_OWNER = 'ODM';
SQL> spool off
SQL> @/home/oracle/drop_odm_synonyms.sql
2.2 For Database release 10gR1 (10.1.x)
- Drop DMSYS schema.
SQL> DROP USER DMSYS CASCADE;
- Drop DMSYS public synonyms.
SQL> set heading offNote that 568 synonyms should be selected and dropped.
SQL> spool /home/oracle/drop_dmsys_synonyms.sql
SQL> select 'Drop public synonym '" || SYNONYM_NAME || '" ;' from DBA_SYNONYMS where TABLE_OWNER = 'DMSYS';
SQL> spool off
SQL> @/home/oracle/drop_dmsys_synonyms.sql
Issue the following DELETE statement.
SQL> DELETE FROM exppkgact$ WHERE SCHEMA='DMSYS';
3. Update the DBA registry :
Before updating the DBA registry, first make sure Data Mining is registered in your database by running the following:
SQL> connect / as sysdba;If ODM (Data Mining) is returned by the above query than execute the following to remove Data Mining from the DBA registry:
SQL> select comp_id, version, status from dba_registry;
SQL> exec dbms_registry.removed('ODM');
For UNIX Platform the following steps allow to remake Oracle executable without DM libraries.
1. Shutdown database
2. cd $ORACLE_HOME/rdbms/lib
3. make -f ins_rdbms.mk dm_off
4. make -f ins_rdbms.mk ioracle
5. startup the database
The sqlplus banner should no longer display the Data Mining option and v$option should show 'Oracle Data Mining' as false on a Unix system based install.
Please note that it is possible synonyms may exist for Data Mining objects. If any exist, remove them to complete the removal.
Uninstall for Database version 10gR2 (10.2.x)
With Database Release 10gR2, the only supported way to remove the Data Mining option is to use the Oracle Universal Installer.
The steps would be,
- Start The Oracle Universal Installer.
-In Installer , click on the "Deinstall" Button.
- Find you RDBMS home and expand it.
- Under it you will find 'Oracle Database 10g 10.2.0.x' . Expand it.
- Under it you will find another folder also called Oracle Database 10g 10.2.0.1'. Expand it.
- In the bottom of this tree you will find 'Oracle Data Mining RDBMS Files 10.2.0.1'. This is what you need to remove.
- This Data Mining uninstall process should relink oracle executable with dm_off target, which should be reflected in sys.v$option view and SQLPlus banner.
Note that on some platform (e.g: HP UX) you may notice that after selecting the 'Oracle Data Mining RDBMS Files 10.2.0.1' and pressing OK you will be asked if you're sure you want to remove basically everything, including "Oracle Database 10g" itself. If this is the case stop deinstall process and do the following:
On unix and linux platform,
1. Shutdown databaseOn all platforms,
2. cd $ORACLE_HOME/rdbms/lib
3. make -f ins_rdbms.mk dm_off
4. make -f ins_rdbms.mk ioracle
5. startup database.
Update the database registry to remove the Data Mining component from it by performing the following :
Start SQL*Plus and log in as SYSDBA and execute dbms_registry.removed('ODM')
SQL> conn / as sysdba
SQL> exec dbms_registry.removed('ODM');
The sqlplus banner should no longer display the Data Mining option and v$option should show 'Oracle Data Mining' as false on a Unix system based install.
Uninstall for Database version 11gR1 (11.1.x)
With 11g, Oracle Data Mining is installed as part of the database installation. Data Mining is now part of Oracle binary and SYS metadata.
The Data Mining option cannot be removed but it can be disabled:
On Linux/Unix platform as below:
1. Shutdown database
2. cd $ORACLE_HOME/rdbms/lib
3. make -f ins_rdbms.mk dm_off
4. make -f ins_rdbms.mk ioracle
5. startup database
On Windows platform as below:
Use the remove option from the Universal Installer and select the Data Mining under Enterprise Edition.
To verify the option have been disabled:
- Start sqlplus
$ sqlplus /nolog
- Connect as DBA user
SQL> conn / as sysdba
- Query the sys.v$option using :
SQL> Select parameter, value from v$option where parameter ='Data Mining';
If the returned value for column "value" is FALSE, then the option have been disabled.
No comments:
Post a Comment