The first tablespace in any database is always the SYSTEM tablespace. Therefore, the first datafiles of any database are automatically allocated for the SYSTEM tablespace during database creation.
You might create a new tablespace for any of the following reasons:
Note: No data can be inserted into any tablespace until the current instance has acquired at least two rollback segments (including the SYSTEM rollback segment).
To create a new tablespace, use either the Create Tablespace property sheet of Server Manager/GUI, or the SQL command CREATE TABLESPACE. You must have the CREATE TABLESPACE system privilege to create a tablespace.
CREATE TABLESPACE rb_segs
DATAFILE 'datafilers_1' SIZE 50M
DEFAULT STORAGE (
INITIAL 50K
NEXT 50K
MINEXTENTS 2
MAXEXTENTS 50
PCTINCREASE 0)
OFFLINE;
See Also: See your operating system-specific Oracle documentation for information about initially creating a tablespace.
For more information about adding a datafile, see "Adding Datafiles to a Tablespace" .
For more information about the CREATE TABLESPACE statement, see the Oracle7 Server SQL Reference.
Within a temporary tablespace, all sort operations for a given instance and tablespace share a single sort segment. Sort segments exist in every instance that performs sort operations within a given tablespace. You cannot store permanent objects in a temporary tablespace. You can view the allocation and deallocation of space in a temporary tablespace sort segment via the V$SORT_SEGMENTS table.
To identify a tablespace as temporary during tablespace creation, issue the following statement:
CREATE TABLESPACE tablespace TEMPORARY
To identify a tablespace as temporary in an existing tablespace, issue the following statement:
ALTER TABLESPACE tablespace TEMPORARY
Note: You can take temporary tablespaces offline. Returning temporary tablespaces online does not affect their temporary status.
See Also: For more information about the CREATE TABLESPACE and ALTER TABLESPACE commands, see the Oracle7 Server SQL Reference.
For more information about V$SORT_SEGMENTS, see the Oracle7 Server Reference.
For more information about Oracle space management, see Oracle7 Server Concepts.