How many types of Tables supported by Oracle?

How many types of Tables supported by Oracle? Explain them.

Oracle supports 4 types of tables based on how data is organized in storage:

Ordinary (heap-organized) table

- A basic, general purpose table
- Data is stored as an unordered collection (heap)

Clustered table

- A part of a cluster
- Cluster: A cluster is a group of tables that share the same data blocks as they share common columns and are often used together.

Index-organized table

- Data is stored in a B-tree index structure in a primary key sorted manner.
- Each index entry in the B-tree stores the non-key column values as well.

Partitioned table

- Data is broken down into smaller, more manageable pieces called partitions or sub-partitions.
- Each partition can be managed individually.
- Each partition can operate independently.

Advantage:

- The structure obtained from partitioning is better tuned for availability and performance.
What is trigger in oracle?
Triggers are constructs in PL/SQL that need to be just created and associated with a table....
What are the types of triggers?
The different types of triggers are: Row triggers and statement triggers: specifies how many times the trigger should get executed – Once for every row or once for every triggering statement....
How the triggers are attached to the table?
When we write a trigger, we also have to give the reference of the table the trigger has to be fired on.....
Post your comment