0% found this document useful (0 votes)
88 views2 pages

Indexing and File Organization

This document provides an assignment on applying indexing and file organization techniques to an inventory application database schema. It includes 7 problems to solve, such as identifying common queries, analyzing them to determine search keys, applying optimal file organizations and indexes to tables and keys, and re-executing queries to compare performance. Notes provide that data is already loaded and spool files are required. Late submissions will not be accepted and online resources are available for learning indexing and file organization syntax.

Uploaded by

waqasqadeer
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views2 pages

Indexing and File Organization

This document provides an assignment on applying indexing and file organization techniques to an inventory application database schema. It includes 7 problems to solve, such as identifying common queries, analyzing them to determine search keys, applying optimal file organizations and indexes to tables and keys, and re-executing queries to compare performance. Notes provide that data is already loaded and spool files are required. Late submissions will not be accepted and online resources are available for learning indexing and file organization syntax.

Uploaded by

waqasqadeer
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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