Upgrade Guide > Upgrading the Siebel Database >

Identifying and Dropping Obsolete Indexes for a Siebel Upgrade


Upgrades: All Siebel upgrades.

Environments: Production test environment only. Does not apply to production environment.

This topic is part of an upgrade process. See How to Perform a Siebel Database Upgrade.

Use this topic to identify indexes that may be obsolete in the Siebel Database and can be dropped. This topic is optional but is recommended since dropping obsolete indexes improves database performance.

When you run the Database Server Configuration Utilities in Prepare for Production mode, it does the following to identify obsolete indexes:

  • Compares the repository schema definition in the development environment against the Siebel Database physical schema definition in the production test environment.
  • If an index is present in the Siebel Database physical schema definition but not in the repository logical schema definition, the utility creates an SQL statement that drops the index. The utility places this SQL statement in a file.

This file is not executed when you run the Upgrade Wizard. You must manually review the file. If it contains indexes you want to drop, you must copy the corresponding SQL statements to another SQL file. This file is executed by the Upgrade Wizard after you run the Database Server Configuration Utilities in upgrep mode.

When the Upgrade Wizard runs, all indexes, including obsolete indexes, are maintained during table rebuilds and data migration. The obsolete indexes file is executed during the Create Siebel Indexes step.

Prerequisites: You must have run the Database Server Configuration Utilities in Prepare for Production mode in the production test environment.

To identify and drop obsolete indexes

  1. Navigate to the following file:

    Windows: DBSRVR_ROOT\platform\gen_obs_idx.sql

    UNIX: DBSRVR_ROOT/platform/gen_obs_idx.sql

    where platform is the database type, for example DB2UDB.

  2. Open the file with a text editor and review the SQL statements it contains.

    The SQL statements drop indexes that are present the Siebel Database but not in the development environment repository logical schema definition.

  3. If you want to drop an index, copy the corresponding SQL statement(s) to the following file:

    Windows: DBSRVR_ROOT\platform\obs_idx.sql

    UNIX: DBSRVR_ROOT/platform/obs_idx.sql

    where platform is the database type, for example DB2UDB.

    This file will be executed when you run the Upgrade Wizard after performing the database upgrep.

Upgrade Guide Copyright © 2006, Oracle. All rights reserved.