RelationalDBDesign
SiteMap
Advanced Tuning
SQL Tuning
Perform Tuning
Tuning Instance
Tuning Basics
External Environment
Performance Tuning
«Prev
Next»
Performance Tuning
Optimizer and Query
Oracle Optimizer Functions
Optimizer Characteristics
Using Stored Outlines
DBMS_STATS Package
Statistics Package
Monitoring DB Operations
Examine Stats
Materialized Views
What are materialized Views
Materialized View Syntax
Summary Data Joins
Index Materialized View
Oracle Handling Invalidation
Query Rewriting Conditions
Explain Plan Command
Managing MV
MV Conclusion
Index Enhancements
Index Types Review
Create Descending index
Oracle bitmapped Index
Create Reverse Index
Creating Statistics
Understanding Domain Indexing
Rebuilding Defragmenting indexes
Function Based indexing
Creating Function-based-index
Index Category Conclusion
Index Organized Tables
index Organized Table
Create IOT Ttable
Bridge Primary Keys
Rebuild Index
Create Secondary Indexes
IOT vs. Regular Tables
IOT Table Conclusion
Advanced Queuing
What is Advanced Queuing
Data Dictionary Views
PL/SQL Applications for Queuing
Developing Advanced Queuing Apps
Developing PL/SQL Apps for Enqueuing
Developing Appslications-dequeuing
PL/SQL Propagation Functionality
Run Queuing Apps
Advanced Queuing Conclusion
Managing LOB
Converting long to LOB
Creating Secondary Index on Index Organized Table - Exercise
Course project: Creating a secondary index on an index-organized table
Objective:
Navigate to installed products and answer questions about them.
Exercise scoring
Background/overview
In this exercise, you will add a secondary index to the index-organized table you created in the last exercise. The secondary index will based on the product ID.
Fact File
Review the fact file to find out more information about the House-O-Pets and its Oracle database.
Click the link below to see the contents of the tables in the House-O-Pets database.
House O-Pets database
Download files
You can download a correct version of the script for this exercise, seciot.sql, from the Resources page.
Scenario
You have discovered that some of the queries against the
IOT_SALES
table ask for the information returned to be sorted by product ID. You want to see if the performance of queries on the index-organized table you just created can be improved by adding a secondary index based on the product ID.
Instructions
Create a secondary index on the index-organized table you created in the last exercise. This index will be based on the
PRODUCT_ID
column in the
IOT_SALES
table.
Hints
The syntax for creating a secondary index is the same as a standard index.
This index will not be unique.
Submitting your exercise
Type (or cut and paste) your plan into the box below to submit your answers.
Click the
Submit
button when you are finished to submit the exercise.