select * from v$option where PARAMETER = 'Data Mining'; PARAMETER VALUE ------------ ------------ Data Mining FALSE
In my case, Data Mining is not installed. Data Mining files need to be installed and the Oracle executable needs to be linked with Data Mining in the Oracle Home.
Oracle states some important facts about Data Mining in 11g:
"As per the overview of changes of Data Mining in 11g , there are some substantial changes with the Data Mining option in 11g"
* Oracle Data Mining 11gRelease 1 (11.1) has a tight integration with Oracle Database. Data Mining metadata and PL/SQL packages have been migrated from DMSYS to SYS. The DMSYS schema no longer exists in Oracle Database 11g Release 1 (11.1) fresh installations.
* If the database has been upgraded from earlier version, then DMSYS schema could be there, in which case the Document Data Mining Adminstration Guide should be followed the relevant steps to migrate data to SYS schema and then drop DMSYS schema.
* There is no longer an 'odm' directory in the ORACLE_HOME, and no entry for Data Mining in the DBA_REGISTRY but there is a value in V$OPTION (as displayed above)
To enable Data Mining:
1. Shut down all oracle processes running out of your Oracle_home (db, listener)
2. relink the oracle executable
chopt enable dm Writing to /u01/oracle/product/11204/install/enable_dm.log... /usr/bin/make -f /u01/oracle/product/11204/rdbms/lib/ins_rdbms.mk dm_on ORACLE_HOME=/u01/oracle/product/11204 /usr/bin/make -f /u01/oracle/product/11204/rdbms/lib/ins_rdbms.mk ioracle ORACLE_HOME=/u01/oracle/product/11204
3. Start up the database again
4. cd $ORACLE_HOME/rdbms/admin
5. Run the necessary files to finish the installation of data mining:
sqlplus / as sysdba SQL>spool enable_dm.log SQL>@catodm.sql SQL>@dbmsodm.sql SQL>@prvtodm.plb6. Confirm that Data Mining is indeed installed:
select * from v$option where PARAMETER = 'Data Mining'; PARAMETER VALUE ------------ ------------ Data Mining TRUE
No comments:
Post a Comment