You can add a tablespace to an existing tablespace group by specifying the existing group name in the
The following statement adds a tablespace to an existing group. It creates and adds tablespace
Now
You can remove a tablespace from a group as shown in the following statement:
Tablespace
TABLESPACE GROUP
clause of the CREATE TEMPORARY TABLESPACE
or ALTER TABLESPACE
statement.The following statement adds a tablespace to an existing group. It creates and adds tablespace
lmtemp3
to group1
, so that group1
contains tablespaces lmtemp2
and lmtemp3
.CREATE TEMPORARY TABLESPACE lmtemp3 TEMPFILE '/u02/oracle/data/lmtemp301.dbf' SIZE 25M TABLESPACE GROUP group1;The following statement also adds a tablespace to an existing group, but in this case because tablespace
lmtemp2
already belongs to group1
, it is in effect moved from group1
to group2
:ALTER TABLESPACE lmtemp2 TABLESPACE GROUP group2;
Now
group2
contains both lmtemp
and lmtemp2
, while group1
consists of only tmtemp3
.You can remove a tablespace from a group as shown in the following statement:
ALTER TABLESPACE lmtemp3 TABLESPACE GROUP '';
Tablespace
lmtemp3
no longer belongs to any group. Further, since there are no longer any members of group1
, this results in the implicit deletion of group1
.
Comments