Oracle® Data Mining Administrator's Guide 11g Release 2 (11.2) Part Number E12217-02 |
|
|
View PDF |
To quickly install the Oracle Data Mining software and prepare to start mining your data, you can follow the steps outlined in this chapter.
These steps explain how to install Oracle Data Mining locally on your Windows PC or laptop and start up the client interfaces: Oracle Data Miner and Oracle Spreadsheet Add-In for Predictive Analytics.
Note:
The minimum requirements for a working installation of Oracle Data Mining are:An installation of Oracle Database Enterprise Edition
A data mining user
Perform a basic installation of Oracle Database Enterprise Edition and create a starter database.
In Windows Control Panel, Administrative Tools, choose Services. Stop any Oracle services that may be running on your computer.
From the Oracle Database installation directory, run SETUP.EXE
to start Oracle Universal Installer.
On the Select Installation Options page, choose Create and Configure a Database.
On the System Class page, choose Desktop Class.
On the Typical Install Configuration page, specify the installation directories, the database name, and the database system passwords.
The Installer performs prerequisite checks, displays summary information about the installation, and copies the Oracle executables and the starter database files to your computer.
The Installer configures Oracle Net to enable client connections.
The Installer starts Oracle Database Configuration Assistant to create the starter database.
Database Configuration Assistant displays summary information about the starter database. If you wish to use Oracle sample data or the Data Mining sample programs, unlock the SH
account.
Exit the Installer. The starter database is now running, and Oracle Net is ready to accept client connections.
If necessary, restart the Oracle services that you stopped in step 1.
See:
"Install Oracle Database" for more detailed instructionsOnce you have installed the Oracle Database software and created a database, you may wish to verify that Oracle Data Mining is functioning properly before proceeding further.
In Appendix A, you will find a series of SQL and PL/SQL commands that perform basic data mining operations. You can type these commands into SQL*Plus or SQL Developer to make sure that the database is enabled for data mining.
Create a database user with data mining privileges.
Log in to SQL*Plus as the system user and execute the following CREATE USER
statement. Specify a user name for dmuser
and password for dmpassword
.
CREATE USER dmuser IDENTIFIED BY dmpassword DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA UNLIMITED ON users; Commit;
Execute these statements to grant data mining privileges to the user.
GRANT CREATE JOB TO dmuser; GRANT CREATE MINING MODEL TO dmuser; -- required for creating models GRANT CREATE PROCEDURE TO dmuser; GRANT CREATE SEQUENCE TO dmuser; GRANT CREATE SESSION TO dmuser; GRANT CREATE SYNONYM TO dmuser; GRANT CREATE TABLE TO dmuser; GRANT CREATE TYPE TO dmuser; GRANT CREATE VIEW TO dmuser; GRANT EXECUTE ON ctxsys.ctx_ddl TO dmuser; -- required for text mining GRANT SELECT ON data TO dmuser; -- required for mining data that is not in your schema
If the user will need to import or export data mining models, grant this additional privilege.
GRANT CREATE ANY DIRECTORY TO dmuser;
For import/export operations, the user must create a directory object. The user may also require additional privileges. See "Exporting and Importing Mining Models" for details.
See:
Chapter 4, "Users and Privileges for Data Mining" for more detailed instructionsTo install and launch Oracle Data Miner:
Download Oracle Data Miner from the Oracle Technology Network.
http://www.oracle.com/technology/products/bi/odm/odminer.html
Open the zip file and extract the contents to an empty directory on your computer.
Navigate to the bin
subdirectory of the Oracle Data Miner installation directory and double click odminerw.exe
to launch Oracle Data Miner.
In the New Connection dialog, specify:
a name for the connection
the user name and password of the data mining user
localhost
for Host
1521
for Port
In the Choose Connection dialog, select the connection name that you have just defined. Click OK to launch Oracle Data Miner.
See:
"Install Oracle Data Miner" for more detailed instructionsTo install and launch the Oracle Spreadsheet Add-In for Predictive Analytics in Microsoft Excel:
Install Oracle Client and create a Net Service Name as described in "Oracle Client and Oracle Net".
Download the Spreadsheet Add-In from the Oracle Technology Network.
http://www.oracle.com/technology/products/bi/odm/index.html
Open the zip file and extract the contents to the Microsoft Office Library, typically:
C:\Program Files\Microsoft Office\Office\Library
Open Excel and click Tools > Add–Ins. Select Oracle Predictive Analytics from the Add–Ins dialog box. The OraclePA menu is added to the Excel toolbar.
From the Add-In menu in Excel, choose Connect.
In the Connect (Oracle Database) dialog:
Select the Net Service Name that you created.
Provide the user name and password of the data mining user.
Click Connect to launch the Spreadsheet Add-In.
See:
"Install the Spreadsheet Add–In" for more detailed instructionsFollow these steps to install and configure the sample Data Mining programs:
Install Oracle Database Examples as described in "Install Oracle Database Examples".
The sample programs are copied to the RDBMS\demo
subdirectory of the Oracle home directory of the database. You can find the PL/SQL programs by searching for dm*.sql
. You can find the Java programs by searching for dm*.java
.
Start SQL*Plus and connect to the database as the system user. Run the dmshgrants
script. Specify the full path to the Oracle home directory and the name of the data mining user.
@ ORACLE_BASE\ORACLE_HOME\RDBMS\demo\dmshgrants dmuser
Note:
In this manual, and in other Oracle manuals,ORACLE_BASE\ORACLE_HOME
represents the full path to the Oracle home directory on a Windows platform.
See Oracle Database Installation Guide for Microsoft Windows for more information about Oracle directory naming conventions.
Connect to the database as the data mining user. Run the dmsh
script.
CONNECT dmuser @ ORACLE_BASE\ORACLE_HOME\RDBMS\demo\dmsh COMMIT;
Once you have completed steps 1 through 4, you can run the PL/SQL programs.
Before running the Java programs, complete these additional steps:
Add ORACLE_BASE\ORACLE_HOME
\jdk\bin\
to your Windows PATH
before the paths of any other Java versions. ORACLE_BASE\ORACLE_HOME
is the full path to the Oracle home directory of the database.
Add the following Data Mining JAR files to your Windows CLASSPATH
. ORACLE_BASE\ORACLE_HOME
is the full path to the Oracle home directory of the database.
ORACLE_BASE\ORACLE_HOME\RDBMS\jlib\jdm.jar ORACLE_BASE\ORACLE_HOME\RDBMS\jlib\ojdm_api.jar ORACLE_BASE\ORACLE_HOME\RDBMS\jlib\xdb.jar ORACLE_BASE\ORACLE_HOME\jdbc\lib\ojdbc5.jar ORACLE_BASE\ORACLE_HOME\oc4j\j2ee\home\lib\connector.jar ORACLE_BASE\ORACLE_HOME\jlib\orai18n.jar ORACLE_BASE\ORACLE_HOME\jlib\orai18n-mapping.jar ORACLE_BASE\ORACLE_HOME\lib\xmlparserv2.jar
See:
Chapter 7, "The Data Mining Sample Programs" for more detailed instructions