Mastering Indexes and PL/SQL in Oracle 9i: Advanced Techniques
This guide covers advanced topics in Oracle 9i, focusing on the creation and usage of indexes and PL/SQL stored program units. Learn how to effectively create server-side stored program units in SQL*Plus and utilize Forms Builder for programming. Understand the role of database indexes, their impact on query performance, and the conventions for naming indices. With practical examples and clear explanations, this resource is essential for database professionals looking to enhance their skills in Oracle 9i.
Mastering Indexes and PL/SQL in Oracle 9i: Advanced Techniques
E N D
Presentation Transcript
1. A Guide to Oracle9i 1 Advanced SQL And PL/SQL Topics Chapter 9
2. A Guide to Oracle9i 2 Lesson A Objectives Learn how to create and use indexes
Become familiar with PL/SQL stored program units
Learn how to create server-side stored program units in SQL*Plus
Learn how to use Forms Builder to create stored program units
3. A Guide to Oracle9i 3 Database Indexes Similar to an index in a book
Table with list of sorted data values and corresponding physical location
Used to speed searches
Uses ROWID column to represent physical location
Primary key indexed automatically
Unlimited number allowed, but more indexes means more processing time for action queries (insert, update, delete)
4. A Guide to Oracle9i 4 Creating an Index Create index after table data is loaded CREATE INDEX index_name ON tablename (index_fieldname); Convention for naming index: tablename_fieldname.