Skip Headers
Oracle® Data Mining Administrator's Guide
10g Release 2 (10.2)

Part Number B14338-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to next page
Next
View PDF

1 Installing Oracle Database for Data Mining

This chapter explains how to install Oracle Database to support Data Mining applications and development. It is directed primarily at users who want to install Oracle Database on a personal computer for their own use.

This chapter contains the following topics:

Who Needs to Install Oracle Database?

If you want to use Oracle Data Mining, then you must have access to Oracle Database. You may be able to access an existing installation instead of installing Oracle Database yourself. Contact your Oracle database administrator and inquire whether you can access an instance of Oracle Database 10g Release 2 that is operating in 10.1 or later compatibility mode.

If you can access an existing installation, then ask your Oracle DBA to do the following:

  1. Install the Sample Schemas, if they are not already installed.

  2. Install the sample Data Mining programs, as described in "Installing the Data Mining Sample Programs".Create a user name for you, as described in "Creating Oracle Database Users for Data Mining".

  3. Provide you with the connection information.

Meanwhile, you can install a Data Mining client on your personal computer, as described in Chapter 3.

If you do not have access to an existing installation, then follow the installation instructions provided here for installing Oracle Database.

Installation of Oracle Database 10g

There are three installation disks for Oracle Database:

Documentation is available on a separate CD or from the Oracle Technology Network.

This chapter provides step-by-step instructions for installing Oracle Database on a Microsoft Windows platform. If you use a different platform, you can still derive the preferred settings for Data Mining from these instructions. However, you should be careful to perform any pre- and post-installation steps specific to your platform, because they may be critical to a successful installation. Refer to the Installation Guide for your platform.

To install Oracle Database, you use Oracle Universal Installer. This installation program is nearly the same on all platforms, with differences that arise because of the differences in the operating systems.

Hardware Requirements

Verify that your computer meets the following requirements:

  • Processor: 200 MHz minimum

  • Available hard disk space:

    System drive: 100 MB

    Oracle home drive: 1.5 GB

    Temp disk space: 100 MB

  • RAM: 256 MB minimum, 512 MB recommended

  • Virtual memory: double the amount of RAM

  • Video adapter: 256 color

Software Requirements

The following operating systems are among those supported for Oracle Database:

  • Windows XP Professional

  • Windows 2000 with service pack 1 or higher

Preliminary Steps

If any Oracle products are already installed on your computer, you must disable them before installing Oracle Database. Take these steps:

  • Delete the ORACLE_HOME environment variable:

    1. From the Control Panel, choose System.

    2. On the Advanced tab of the System Properties page, choose Environment Variables.

    3. In the System Variables, select ORACLE_HOME, then click Delete.

  • Stop all Oracle services.

    1. From the Control Panel, choose Administrative Tools, then Services.

    2. On the Services page, scroll down the list of names and locate those that begin with Oracle. Select those services and choose Stop.

If you are installing from a network drive, use Windows File Manager to map that drive to your computer.

Installing Oracle Database

To install Oracle Database on a Windows platform, take these steps:

  1. From Database (db) Disk 1 (of 1), run SETUP.EXE.

    Oracle Universal Installer opens and displays the Welcome page.

  2. Select Advanced Installation. Click Next to advance to each page.

    Welcome Page
    Description of the illustration db_installa.gif

  3. On the Select Installation Type page, select Enterprise Edition.

    Select Installation Type page
    Description of the illustration db_install1.gif

  4. On the Specify Home Details page, create a new Oracle home directory.

    Specify Home Details page
    Description of the illustration db_install2.gif

  5. On the Product-Specific Prerequisite Checks page, verify that all checks succeeded. If any checks failed, then you must correct the problem before proceeding.

  6. On the Select Configuration Option page, select Create a database.

  7. On the Select Database Configuration page, select General Purpose.

  8. Complete the Specify Database Configuration Options page as follows:

    • Type in a global database name and SID.

      The SID is a name that you choose. If you are installing on a personal computer for your own use, then the SID and the global database name are the same; the global database name does not include the domain.

    • Choose a database character set from the drop-down list. The Western European character set is a good choice for databases for the European Union and the Americas. UTF8 is a good choice for global databases.

    • Select Create database with sample schemas.

    Specify Database C onfiguration Options page
    Description of the illustration db_install6.gif

  9. Choose the options you want. The following steps identify the simplest choices.

    1. On the Select Database Management Option page, select Use Database Control for Database Management.

    2. On the Select Database File Storage Option page, select File System.

    3. On the Specify Backup and Recovery Options page, select Do not enable automated backups.

    4. On the Specify Database Schema Passwords page, select Use the same password for all the accounts. Then enter a password of your choice in the Enter Password and Confirm Password fields.

  10. On the Summary page, review your previous choices, then click Install.

  11. On the Database Configuration Assistant page, click Password Management.

    Tip: Print a screen shot of this page or write down the information it contains for future reference.

    Database Configuration Assistant
    Description of the illustration db_install12.gif

  12. On the Password Management page, unlock the DMSYS, SCOTT, and SH accounts and enter new passwords for them.

    Password Management page
    Description of the illustration db_install13.gif

  13. On the End of Installation page, confirm that the installation was successful.

    Tip: Print a screen capture of this page or write down the information it contains for future reference.

    End of Installation page
    Description of the illustration db_install14.gif

Installing the Data Mining Sample Programs

To install the Data Mining Sample Program Files on a Windows platform, take these steps:

  1. From Companion Disk 1 (of 1), run SETUP.EXE.

    Oracle Universal Installer opens and displays the Welcome page. Click Next to advance to each page.

  2. On the Select a Product to Install page, select Oracle Database 10g Products 10.2.0.0.0.

    Select a Product to Install page
    Description of the illustration cp_install1.gif

  3. On the Specify Home Details page, select the Oracle home in which you installed Oracle Database 10g Release 2 in the previous procedure. Do not rely on the default setting to be correct.

  4. On the Product-Specific Prerequisite Checks page, verify that all checks succeeded. If any checks failed, then you must correct the problem before proceeding.

  5. On the Summary page, review your previous choices, then click Install.

  6. On the End of Installation page, confirm that the installation was successful.

Tips for Linux Installations

The step-by-step instructions in this guide are for installations on a Windows platform. The following are some tips to help you with the differences between the Linux and Windows platforms.


See Also:


Additional Information for Enterprise Installations

The information in this section is for DBAs who plan to install Oracle Database on Real Application Clusters (RAC) or deploy Data Mining models in a different database than the one in which they were developed.

Creating Data Mining Tablespaces on Real Application Clusters

When Oracle Database is installed on RAC, the Data Mining tables should be stored in a tablespace with a raw device partition. You can define this tablespace during installation of Oracle Database by choosing Raw Devices on the Specify Database File Storage Option page. Pre-installation steps are required for this storage option. Refer to the Installation Guide for your platform for more information.

Installing the Data Mining Scoring Engine

You only need to install the Data Mining Scoring Engine on computers where you will apply models that were built on another computer system. The Scoring Engine is an Enterprise Edition option that can be installed only during a custom installation. You can include the Data Mining Scoring Engine in a new installation, or you can add it to an existing installation at a later time.


Note:

The Data Mining Scoring Engine and the Data Mining option cannot be installed on the same computer. Installation of one option will de-install the other option. No other database options are affected by installation of the Data Mining Scoring Engine.

To add the Data Mining Scoring Engine to an existing installation of Oracle Database, take these steps:

  1. Open Oracle Universal Installer as described in "Installation of Oracle Database 10g".

  2. On the Select Installation Type page, select Custom.

  3. On the Specify Home Details page, select the Oracle home in which you previously installed Oracle Database 10g Release 2. Do not rely on the default setting to be correct.

  4. On the Available Product Components page, select Data Mining Scoring Engine. Available Product Components page
    Description of the illustration db_cust2.gif

Verifying Installation of Data Mining Components

If Data Mining is installed, then the following SQL query returns TRUE:

SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Data Mining';

If the Data Mining Scoring Engine is installed, then the next SQL query returns TRUE:

SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Data Mining Scoring Engine';

For more detailed information, query DBA_REGISTRY with a command such as this one:

SQL> SELECT COMP_ID, VERSION, STATUS FROM DBA_REGISTRY WHERE COMP_ID = 'ODM';
 
COMP_ID                        VERSION                        STATUS
------------------------------ ------------------------------ -----------
ODM                            10.2.0.0.0                     VALID

Upgrading from Oracle Database 10g Release 1 (10.1)

If Oracle Database 10g Release 1 is installed on your computer, then install Oracle Database 10g Release 2 into a separate Oracle home. A new version of the Data Mining option is installed along with the other components of Oracle Database.

During installation of release 10.2, Oracle Universal Installer will detect 10.1 databases and will prompt you to upgrade them. For upgrading, the Installer will open the Database Upgrade Assistant (DBUA). It automatically upgrades these Data Mining components:


See Also:

Oracle Database Upgrade Guide for complete upgrade instructions

Post-Upgrade Steps for Data Mining

The data mining objects in these schemas require additional upgrade steps after upgrading the database:

  • DMSYS Repository Schema. The odmu101s.sql script removes redundant release 10.1 objects.

  • User Schemas. The odmu101a.sql script re-creates the views of the Sales History sample schema for users who wish to run the sample Data Mining programs described in Chapter 4.

To upgrade the DMSYS repository, follow these steps:

  1. Open SQL*Plus and connect to the database as the SYS user or another privileged account.

  2. Verify that the compatibility mode is set to 10.2.x.x (such as 10.2.0.0).

    SELECT name, value, description FROM v$parameter
             WHERE name='compatible';
    
    

    If the compatibility model is incorrect, then edit the init.ora file for the database.

  3. Run the odmu101s.sql script.

    Issue this command on Windows platforms:

    %ORACLE_HOME%\rdbms\admin\odmu101s.sql
    
    

    Or this command on Linux platforms:

    $ORACLE_HOME/rdbms/admin/odmu101s.sql
    
    

To upgrade the sample Sales History views in the schemas of Data Mining users, take these steps for each schema:

  1. Backup the schema using the expdp command in Oracle Data Pump.

  2. Open SQL*Plus and connect to the database as the SYS user or another privileged account.

  3. Run the odmu101a.sql script, passing it two parameters: user_name and password.

    Issue this command on Windows platforms:

    %ORACLE_HOME%\rdbms\admin\odmu101a.sql user_name password
    
    

    Or this command on Linux platforms:

    $ORACLE_HOME/rdbms/admin/odmu101a.sql user_name password
    

Upgrading PL/SQL Models

All data mining PL/SQL models residing in user schemas in a release 10.1 database can be upgraded as part of the database upgrade. The upgrade of models is seamlessly integrated into the database upgrade process.

You can also export models from a release 10.1 database and import them into a release 10.2 database. The import process upgrades the models to release 10.2. Use the expdp and impdp command utilities in Oracle Data Pump. The Data Mining option or the Data Mining Scoring Engine option must be installed in the target database.


Note:

Java models cannot be upgraded. They must be re-created in Oracle Database 10.2.

The Database Upgrade Assistant invokes procedures in the Data Mining DMP_SYS public package for upgrading and downgrading PL/SQL models between release 10.1 and 10.2.

The UPGRADE_MODELS procedure upgrades the Data Mining models from release 10.1 to 10.2, and has this syntax:

UPGRADE_MODELS (
     to_version     IN     VARCHAR2);

The DOWNGRADE_MODELS procedure downgrades models from release 10.2 to 10.1, and has this syntax:

DOWNGRADE_MODELS (
     from_version   IN     VARCHAR2);

These procedures are integrated with the Data Mining upgrade and downgrade processes and run as SYS. You do not need to run them manually.

Downgrading Oracle Data Mining

You can downgrade a database from release 10.2 to release 10.1 if the compatibility setting is set to 10.1.x.x. Otherwise, the database will include incompatibilities that will prevent it from being downgraded. The Data Mining option and user-owned PL/SQL models will be downgraded as part of database downgrade.


See Also:

Oracle Database Upgrade Guide for complete downgrade instructions