Oracle8i SQL Reference Release 3 (8.1.7) Part Number A85397-01 |
|
SQL Statements:
CREATE CLUSTER to CREATE SEQUENCE, 23 of 25
Use the CREATE
ROLLBACK
SEGMENT
statement to create a rollback segment, which is an object that Oracle uses to store data necessary to reverse, or undo, changes made by transactions.
See Also:
|
You must have CREATE
ROLLBACK
SEGMENT
system privilege.
storage_clause
: See storage_clause.
PUBLIC
Specify PUBLIC
to indicate that the rollback segment is public and is available to any instance. If you omit this clause, the rollback segment is private and is available only to the instance naming it in its initialization parameter ROLLBACK_SEGMENTS
.
rollback_segment
Specify the name of the rollback segment to be created.
TABLESPACE
Use the TABLESPACE
clause to identify the tablespace in which the rollback segment is created. If you omit this clause, Oracle creates the rollback segment in the SYSTEM
tablespace.
Restriction: You cannot create a rollback segment in a tablespace that is system managed (that is, during creation you specified EXTENT
MANAGEMENT
LOCAL
AUTOALLOCATE
).
See Also:
|
storage_clause
The storage_clause
lets you specify the characteristics for the rollback segment.
CREATE
ROLLBACK
SEGMENT
Example
The following statement creates a rollback segment with default storage values in the system tablespace:
CREATE ROLLBACK SEGMENT rbs_2TABLESPACE system;
The above statement is equivalent to the following:
CREATE ROLLBACK SEGMENT rbs_2 TABLESPACE system STORAGE ( INITIAL 10K NEXT 10K MAXEXTENTS UNLIMITED);
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|