Siebel Database Upgrade Guide > Upgrading the Siebel Database >

Identifying and Dropping Obsolete Indexes for a Siebel Upgrade


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

Use this topic to identify indexes that might 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, they do 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, then the utility creates an SQL drop statement and adds it to that index. The utility places this SQL statement in a file called gen_obs_idx.sql.

You must manually review the gen_obs_idx.sql file. If it contains indexes you want to remove (those containing a drop statement not followed by a create statement), then you must copy the corresponding SQL statements to another SQL file called obs_idx.sql. This file is executed by the Database Server Configuration Utilities in upgrep mode.

When the Upgrade Wizard is then run, 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.

Requirements: 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 DB2.

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

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

  3. If you want to remove an index, then 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 DB2.

    This file will be executed when you run the Database Configuration Wizard in upgrep mode.

Siebel Database Upgrade Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.