Setting Up Oracle Data Miner 11g Release 2

In the following topics, you perform the steps required to set up Oracle Data Miner 11g Release 2 for use within SQL Developer 3.0.

Important: As stated above, you need the SYS user credentials in order to install the Oracle Data Miner Repository . In addiiton, you will use the SYS user to create a database user account for data mining purposes.

Create a Data Miner User Account

SQL Developer is a client to the Oracle Database software. Before you can perform actions such as creating a user, you must connect to the database from SQL Developer.

To connect to the database, you will define an administrative (SYS) connection in SQL Developer, and then use that connection to create the data miner user.

Perform the following steps.

1. To open SQL Developer, double-click sqldeveloper.exe in the directory where you unzipped SQL Developer.

For example, double-click C:\SQLDev\sqldeveloper.exe, as shown below:

Show Screenshot for Step

Notes:

  • If you are prompted to import settings from an earlier version, click Yes if you have been using an earlier version of SQL Developer and want to preserve those settings.
  • If you wish, create a shortcut to C:\SQLDev\sqldeveloper.exe and move it to your desktop.

 

2. In the the SQL Developer Connections tab, right-click Connections and select New Connection from the pop-up menu.

Show Screenshot for Step

Result: The New / Select Database Connection dialog box appears.

Notes:

  • Your SQL Developer interface may also display the Reports tab next to the Connections tab.
  • In this lesson, we have already closed the SQL Developer Reports tab.

 

3. In the New / Select Database Connection dialog box:

A. Enter the following parameters:

  • Connection Name: admin
  • Username: sys
  • Password: The Administrative password for your database
  • Connection Type: Basic
  • Role: SYSDBA
  • Hostname: The host name of your database server (localhost if the database is installed on your PC)
  • Port: Enter the apropriate port number (1521 is the default)
  • SID: The name of SID for your database (orcl the default)

Show Screenshot for Step

B. Click Test to test the connection.

Note: If the connection is successful, Status (just above the Help button) changes to “Success!”

C. Click Connect to save the connection and to also establish a connection to the database.

 

4 . Next, create an account for data mining.

A. In the SQL Developer Connections tab, drill on the admin connection.

B. Then, right-click the Other Users node and select Create User from the pop-up menu, like this:

Show Screenshot for Step

C. In the Create/Edit User window, select the User tab and specify a username, password, default tablespace, and temporary tablespace for the user account. In the example below, the parameters include:

  • User Namedmuser
  • Password: Create a password of your choice
  • Default TablespaceUSERS
  • Temporary Tablespace: TEMP

Note: Your available tablespaces may differ if you are using an existing database that does not have the standard default tablespaces.

Show Screenshot for Step

D. Still in the Create/Edit User window, select the Roles tab and click the check box in the Granted Column forCONNECT.

Show Screenshot for Step

E. Still in the Create/Edit User window, select the Quotas tab and click the check box to set Tablespace toUnlimited (for the default tablespace).

Show Screenshot for Step

F. Click Apply to create the account.

Note: The Results tab displays the following:

Show Screenshot for Step

E. Click Close to dismiss the Create/Edit User window.

 

Create a SQL Developer Connection for the Data Miner User

In this topic, you create a SQL Developer connection for the data miner user.

You can create this connection either by using the SQL Developer Connections tab or the Data Miner tab. In either case, the same New / Edit Database Connection dialog box appears. All saved SQL Developer connections appears in both tabs.

Follow these steps to create a connection for the data miner user:

1 . In the SQL Developer Connections tab, right-click the Connections node and select New Connection from the pop-menu.

Show Screenshot for Step

 

2 . In the New / Select Database Connection dialog box, specify the following parameters:

  • Connection Name: dmuser
  • Username: dmuser
  • Password: Enter the password that you created for the data miner user
  • Connection Type: Basic
  • Role: default
  • Host Name: Enter the appropriate host name for your database server
  • Port: Enter the apropriate port number (1521 is the default)
  • SID: Enter the approriate value (orcl the default)

Note: If you wish to avoid prompts for passwords, you can select the Save Password option.

Show Screenshot for Step

 

3 . Still in the New / Select Database Connection dialog box:

A. Click Test to test the Connection.

Result: The Status prompt should display “Success!”

B. Click Connect.

Result: The SQL Developer Connections tab now displays both connections, like this:

Show Screenshot for Step

Note: When you activate a connection from the SQL Developer Connections tab, a SQL Developer Worksheet window automatically opens for that user.

 

4 . Close both the dmuser and admin Worksheet windows, like this:

Show Screenshot for Step

Next, you will install the Data Miner Repository.

 

Install the Data Miner Repository

At this stage, you have created a database account for the data miner user (dmuser), and have created a SQL Developer connection for that user. Next, you install the Data Miner Repository in the database using an automated process.

To accomplish this, you simply display the Oracle Data Miner tab ( which looks similar to the SQL Developer Connections tab), and then connect to the data miner user from the Data Miner tab.

Notes:

  • The Data Miner Repository installation routine automatically starts the first time that you activate a SQL Developer connection from the Data Miner tab.
  • Once the Data Miner Repository has been installed in the database, other data miner users may be granted the required privileges to the repository by an automated process that is similar to the installation routine examined here.

Follow these steps:

1. From the SQL Developer menu, select View > Data Miner > Data Miner Navigator, as shown here:

Show Screenshot for Step

Result: The Data Miner tab appears below the SQL Developer Connections tab.

Show Screenshot for Step

 

2. Dismiss the SQL Developer Connections tab by clicking the Close (X) icon, like this:

Show Screenshot for Step

Result: The Data Miner tab now appears directly below the SQL Developer main menu.

Show Screenshot for Step

 

3 . To begin the installation process of the Data Miner Repository:

A. Double-click on dmuser (and not the admin user).

Result: A message tells you that the Data Miner Repository is not installed in the database, and asks you if you want to install the Repository.

Show Screenshot for Step

B. Click Yes to launch the installation process.

 

4 . In the Connection Information dialog box:

A. Enter the Administrative password for the database.

Show Screenshot for Step

Note: You must be logged in as SYS to install the repository.

B. Click OK to continue.

 

5 . In the Repository Installation Settings dialog box:

A. Select the Default Tablespace and the Temporary Tablespace for the repository account named ODMRSYS.

Show Screenshot for Step

Notes:

  • The initial space requirement for the Data Miner Repository is 200MB; however, the tablespace grows as metadata is added.
  • In our example, we select the default values, which are USERS for Default Tablespace and TEMP for Temporary Tablespace.

B. Click OK to display the Install Data Miner Repository dialog box.

 

6 . In the Install Data Miner Repository dialog box:

  • The Install Demo Data option is preselected (the demo data is used by subsequent Oracle Data Miner OBE tutorials).

Show Screenshot for Step

A. Click Start to begin the repository installation.

Notes:

  • The Installation takes approximately 10 minutes for remote database installations and 2 minutes for local database installations.
  • The scroll bar provides a visual indication of the installation process progress, as shown below.

Show Screenshot for Step

B. When the installation completes, click Close to dismiss the dialog box.

 

You are now ready to perform data mining with the dmuser account. You can begin with the tutorial Using Oracle Data Miner 11g Release 2.

Summary

In this lesson, you learned how to set up the Oracle Data Miner graphical user interface for use within SQL Developer, version 3.0.

 

Reference: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/bidw/datamining/ODM11gR2-SetUp.htm

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s