|
||||||||||||
Lesson 6
Objective
|
Setting the extent size for an object
Use the storage clause to set the extent size for a table in Oracle |
|||||||||||
|
Use the storage clause to set the extent size for a table in Oracle.
In the previous lesson, you learned about the different attributes that determine how Oracle uses extents within a segment. There are a set of SQL keywords you can use in the DDL statements that create and alter database objects and thus control how extents are used. |
||||||||||||
|
Syntax for extents
All of these storage parameters can be used with a
CREATE TABLE, CREATE INDEX, ALTER TABLE, or ALTER
INDEX statement: |
||||||||||||
|
||||||||||||
| Example Click the View Code link below. View Code
If you use the storage parameters when creating a table, the syntax will look like this: This
SQL statement causes the table to begin with a single extent of 100 K allocated. Subsequent extents would contain 50K, 75
K (50 K *150%), and so on. The table could not contain more than five extents, which would limit its overall size to
506.25 K. You do not have to specify storage parameters for any object. |
||||||||||||
| The next lesson shows how to set default storage attributes for all the objects in a tablespace. | ||||||||||||
|
|
||||||||||||