8 Dropping Indexes from a Table

This chapter contains the following topics:

8.1 Understanding the Index Selection Tool

Database administrators drop indexes from tables in a physical database to increase system performance. Instead of using the actual database application to drop table indexes, you can use the Index Selection Tool (P95150). The advantage of using P95150 to drop indexes is that Oracle's JD Edwards EnterpriseOne keeps track of the indexes that are dropped, even if the indexes have been restored or rebuilt. For example, during a software update, the system restores indexes to tables that are affected by the update. Typically, after an update, you would have to perform another analysis to determine the indexes that need to be re-dropped. However, JD Edwards EnterpriseOne retains this information so that you can easily find the indexes that were previously dropped, reducing the time it takes to drop the indexes again.

Note:

P95150 should only be used by system administrators or database administrators. Use Security Workbench (P00950) to apply the proper security to this application.

See "Using Security Workbench" in the JD Edwards EnterpriseOne Tools Security Administration Guide.

8.1.1 Flagging indexes

The P95150 program enables you to locate and display the table indexes in a tree structure. You expand the tree to view and flag the indexes that you wish to drop. You can flag a single index or multiple indexes at a time. The P95150 program only allows you to drop indexes that are not unique or primary to the table since dropping these types of indexes would disrupt the integrity of the table.

When you open a table in P95150, the program displays the table and all of its columns in a tree. Each item, or node, in the tree has an icon next to it. The Tree Node Key tab contains a description of each of these icons, which include:

  • Table

  • Data Source Override

  • Primary Index

  • Unique Index

  • Unflagged Index

    The Unflagged Index is the only type of index that you can flag or drop. The system does not permit you to drop a primary or unique index.

  • Index Flagged for Drop

  • Column in Index

8.1.2 Determining the Data Source

A table can reside in multiple data sources, so you must determine the data source from which you want the table index to be dropped. When you initially open a table in P95150, by default, the system displays a table in a Default node. A table in the Default node is not associated with a data source. If you flag and then try to drop an index from this node, the program prompts you to specify a data source. If you specify a data source before flagging and dropping an index, the program displays another node besides the Default node. This node is named after the data source that you selected and contains the same tree as the Default node. When you drop an index from the data source node, the index is automatically dropped.

8.1.3 Index Selection Logs

The P95150 program contains an option that enables you to view the history of actions that have been performed using the tool. You can view the following information in the index selection logs:

  • Table name

  • Data Source

  • Index ID

  • Log Description

  • User

  • Machine

  • Date Updated

  • Time Updated

8.2 Using the Index Selection Tool

This section discusses how to:

  • Add a table to the Index Selection Tool.

  • Select a data source.

  • Drop a single index from a table.

  • Drop multiple indexes from a table.

  • Restore indexes to a table.

  • View the Index Selection Logs.

8.2.1 Forms Used with the Index Selection Tool

Form Name FormID Navigation Usage
Machine Search & Select W95150H In the Solution Explorer Fast Path, enter P95150. Provide the location of the data source master table that the Index Selection Tool validates data sources against.
Index Selection Tool W95150A On Machine Search & Select, select a row and then click Select. Flag, drop, and restore table indexes.
Choose OCM or Regular Data Source W95150D On Index Selection Tool, click the search button in the Data Source field. Choose the method in which you want to select a data source.
Select Data Source By Object Configuration Manager W95150C On Choose OCM or Regular Data Source, select the "Select data source by OCM (recommended)" option and click OK. Select the data source that the table is mapped to by OCM.
Database Data Source Search and Select W986101WB On Choose OCM or Regular Data Source, select the "Select data source from list of all data sources" option and click OK. Select a data source from which you want to drop table indexes.
Add Table to Index Selection Tool W95150B On Index Selection Tool, click the Add button. Select a table for flagging or dropping indexes.
Index Selection Logs W95150I On Index Selection Tool, from the Form menu, select Index Selection Logs. View the Index Selection Logs.

8.2.2 Adding a Table to the Index Selection Tool

Access the Machine Search & Select form.

  1. Click the search button in the Data Source column to find the data source master table that you want the Index Selection Tool to validate data sources against.

    Once you select a table, the system automatically displays the machine in which the table resides in the Machine Name column.

  2. Click Select to continue.

  3. On the Index Selection Tool, click the Add button.

  4. On the Add Table to Index Selection Tool form, select a table and click OK.

    The left pane displays the table in a default node tree.

8.2.3 Selecting a Data Source

Before you drop an index from a table, you can select a specific data source location for the table. When you use this method, the Index Selection Tool tree displays the data source in a node for the table.

Access the Index Selection Tool form.

  1. Select a table in the tree and then click the Add Data Source button in the center column.

  2. On Choose OCM or Regular Data Source, click one of these options and then click OK to continue:

    • Select data source by OCM (recommended).

      Use this option to ensure that the table exists in any data source that you select.

    • Select data source from list of all data sources.

      If you select this option, you must select a data source from the Database Data Source Search and Select form, which lists all available data sources.

  3. If you selected the "Select data source by OCM (recommended)" option, on Select Data Source by Object Configuration Management, click one of these options and then click the search button in the Data Source column:

    • List data sources that the table is specifically mapped to by OCM.

      Use this option to select from a list of data sources that the table has been specifically mapped to.

    • List data sources that the table is specifically and by "DEFAULT" mapped by OCM.

      Use this option to select from a list of data sources that the table has been specifically mapped to, as well as mapped to by default.

  4. Click Select.

    The Index Selection Tool displays the data source in a new node under the table.

8.2.4 Dropping a Single Index from a Table

Access the Index Selection Tool form.

The instructions in this section assume that you have already selected a table and a specific data source from which you want to drop the table index.

  1. Expand the data source node to view the indexes for the table.

  2. To flag an index, select an index and then click the Flag/Unflag Index button.

  3. To drop a single index, select a flagged index and then click the Drop Single Index button.

  4. On Drop Single Index, click one of these options and then click OK:

    • Use proxy user and password.

    • Specify user and password.

      This option activates the Owner ID and Password fields, which you must complete before clicking OK.

  5. On the dialog box, click OK to continue.

8.2.5 Dropping Multiple Indexes from a Table

Access the Machine Search & Select form.

The instructions in this section assume that you have already selected a table and a specific data source from which you want to drop indexes.

  1. From the data source node, select an index, and then click the Flag/Unflag Index button. Repeat until you have flagged all of the indexes that you want to drop from the table.

  2. To drop multiple indexes, select the data source node that contains the indexes that are flagged to be dropped, and then click the Update Table Indices button.

  3. On Update Table Indices, click one of these options and then click OK:

    • Use proxy user and password.

    • Specify user and password.

      This option activates the Owner ID and Password fields, which you must complete before clicking OK.

8.2.6 Restoring Indexes to a Table

Access the Index Selection Tool form.

  1. Locate the table and data source that you want to restore indexes to.

  2. Expand the data source node to view the indexes that have been dropped.

  3. If you want to restore a single index, select the index and then click the Create Single Index button.

  4. If you want to restore all of the indexes to the table, select the appropriate data source node and then click the Update Table Indices button.

8.2.7 Viewing the Index Selection Logs

Use the Index Selection Logs to view all of the actions that you have taken when working with table indexes.

Access the Work with Index Selection Logs form.

  1. Enter a table name in the Table Name field or enter an asterisk (*) to view all the tables that have been acted upon in the Index Selection Tool.

  2. Click Find.

    The program displays the records for all actions taken based on the search criteria. Each record contains this information:

    • Table Name

    • Data Source

    • Index ID

    • Log Description

    • User

    • Machine

    • Date Updated

    • Time Updated