Oracle Database Tables and Types
Tables are the basic fundamentals of databases. table which stores data in it. mainly 2 types of tables:
- Heap Organized
- Index Organized
Why Use Index Organized Tables
Accessing data via the primary key is quicker as the key and the data reside in the same structure. There is no need to
read an index and then read the table data in a separate structure.
The lack of duplication of the key columns in an index and table means the total storage requirements are reduced.
Creation Of Index Organized Tables
To create an index-organized table you must:
- Specify the primary key using a column or table constraint.
- Use the ORGANIZATION INDEX.
Disadvantage:
- You must have a primary key on the table with a unique value.
- You cannot have any other indexes on the data.
- You cannot partition an index-organized table.
0 Comments