WINDOWS下的程序员出身,偶尔也写一些linux平台下小程序, 后转行数据库行业,专注于ORACLE和DB2的运维和优化。 同时也是ios移动开发者。欢迎志同道合的朋友一起研究技术。 数据库技术交流群:58308065,23618606
全部博文(599)
分类: Oracle
2010-02-22 14:01:34
This tutorial shows you how to enable the Data Mining option in the Oracle Database 10g Release 2, populate a data mining schema with sample tables, and install Oracle Data Miner.
This tutorial covers the following topics:
Oracle Data Miner is a graphical user interface for Oracle Data Mining. It provides wizards that can easily be used to perform all data mining operations. Oracle Data Miner helps data analysts find valuable hidden information and makes data mining easier by doing the following:
Automating data mining and model scoring process. | ||
Giving hints for the flow of steps in the operations. |
Before you perform this tutorial, you should:
1. |
Perform the tutorial or have access to an Oracle Enterprise Edition 10g Release 2 Database with the Data Mining option enabled. | |
2. |
Download and unzip the Data Mining Sample Data from . |
Note: It is recommended that you perform the Basic Installation. If you are required to perform a Custom Installation, note that the Oracle Data Mining option is automatically installed with any installation. DO NOT install the Oracle Data Mining Scoring Engine option as that action will disable the Oracle Data Mining option. Also, if you unlock and assign a password to the user DMSYS in step 11 of the database installation instructions, it is not necessary to enter the commands shown in the section below : .
After installing Oracle Database 10g on Windows, you need to enable the Oracle Data Mining administrative function and unlock schema required for the data mining examples. Perform the following steps:
1. |
Open a command prompt window and execute the following commands to unlock the DMSYS account and assign a password. cd Note: The SH user also needs to be unlocked. |
Each database user who executes ODM operations must have:
Default and temporary tablespaces specified | ||
Permission to access the mining data |
Under normal circumstances in a simple training environment, or single-user system, users can share existing default and temporary tablespaces. But, in a production setting with several users, it is better to create separate tablespaces for each user.
To create and configure a data mining account, perform the following steps:
1. |
Now you can create a new tablespace. To create a new tablespace named dmuser1, execute the following command: CREATE TABLESPACE dmuser1 DATAFILE '
|
2. |
You can create a data mining user named dmuser1 having password dmuser1. Execute the following command: CREATE USER dmuser1 IDENTIFIED BY dmuser1 DEFAULT TABLESPACE dmuser1 TEMPORARY TABLESPACE temp |
3. |
Next, the user must be granted permissions to carry out data mining tasks. Execute the following command: @dmshgrants |
4.. |
Finally, the schema for the new user can be populated with tables and views constructed from the data in the SH schema. You need to connect as dmuser1. Execute the following commands: connect dmuser1/dmuser1 @dmsh commit; |
To install Oracle Data Miner, perform the following steps:
1. |
Download Oracle Data Miner from and unzip into any directory except under your |
2. |
Double-click
|
3. |
You need to create a database connection for the DMUSER1 account you created previously. Enter the following details in the window and click OK. Connection Name: dmuser1_connect Note: The connection name can be anything you want. The Port and SID (Global Database Name) were assigned during the database installation.
|
4. |
Once your connection has been created, click OK to open Data Miner. |
5. |
Confirm that the sample tables and views are in your dmuser1 user schema. Expand Data Sources > DMUSER1 > Views and Tables.
|
In this tutorial, you learned how to:
Enable the data mining option in the Oracle Database 10g Release 2 database | ||
Populate a data mining schema with sample tables | ||
Install Oracle Data Miner |