You are on page 1of 2

Applying Indexing and File Organization

Techniques to Inventory Application


Assignment # 3

Deadline: Saturday, 6th May, 2011. 11:00 PM

Problems:
1. Identify queries that are more likely to execute against your database schema.
2. Analyze these queries to identify the search keys in your schema.
3. Execute these queries and note down their cost using Oracle Execution Plan.
4. By default, Oracle database uses heap file organization. Oracle supports a rich set of file
organization schemes including multi-table cluster, B+ -tree, index organized, and partitioned
file organization, etc. Suggest the most appropriate file organization for each table in your
schema. Apply these file organizations to your schema tables.
5. Oracle database supports a variety of indexing schemes including B+ -tree and Bitmap indexes.
Suggest the most appropriate indexing scheme for every search keys in your schema. Apply
these indexes to your search keys of your schema.
6. Re-execute the same set of queries again on the enhanced database schema and take the query
cost.
7. Compare whether the indexing and file organization improve or degrade your query
performance.

NOTE:
a) We assume that data is already loaded in your schema as given in the last assignment.
b) Spool file is mandatory for each SQL operation performed against the database schema.
c) Only the assignments submitted on LMS will be considered for grading.
d) Late submissions via e-mail will not be entertained and will be graded zero.
e) There is huge information available on the web for syntax and usage of indexing and table
organizations. Only a few links are provided in this document for the reference. There might be
more useful links on the Web, please take time to search more web resources to solve this
assignment.
f) For the syntax of indexing in Oracle database, review the following link:
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5010.htm
g) For the file organizations, use the following links:
Index Organized Tables (IOTs):
http://www.orafaq.com/wiki/Index-organized_table
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/tables012.htm
Cluster Tables:
http://psoug.org/reference/clusters.html
Partitioned Tables:
http://download.oracle.com/docs/cd/B10500_01/server.920/a96524/c12parti.htm
h) For query execution plan, us the following links:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96533/ex_plan.htm

You might also like