| Oracle8i SQL Reference Release 3 (8.1.7) Part Number A85397-01 |
|
SQL Statements:
ALTER CLUSTER to ALTER SYSTEM, 2 of 19
Use the ALTER CLUSTER statement to redefine storage and parallelism characteristics of a cluster.
|
See Also:
|
The cluster must be in your own schema or you must have ALTER ANY CLUSTER system privilege.
schema
Specify the schema containing the cluster. If you omit schema, Oracle assumes the cluster is in your own schema.
cluster
Specify the name of the cluster to be altered.
physical_attributes_clause
Use this clause to change the values of the PCTUSED, PCTFREE, INITRANS, and MAXTRANS parameters of the cluster.
|
|
Use the
Restriction: You cannot change the values of the storage parameters |
|
SIZE integer
Use the SIZE clause to specify the number of cluster keys that will be stored in data blocks allocated to the cluster.
Restriction: You can change the SIZE parameter only for an indexed cluster, not for a hash cluster.
allocate_extent_clause
Specify the ALLOCATE EXTENT clause to explicitly allocate a new extent for the cluster.
Restriction: You can allocate a new extent only for an indexed cluster, not for a hash cluster.
deallocate_unused_clause
Specify the DEALLOCATE UNUSED clause to explicitly deallocate unused space at the end of the cluster and makes the freed space available for other segments. Only unused space above the high water mark can be freed.
parallel_clause
Specify the parallel_clause to change the default degree of parallelism for queries and DML on the cluster.
Restriction: If the tables in cluster contain any columns of LOB or user-defined object type, this statement as well as subsequent INSERT, UPDATE, or DELETE operations on cluster are executed serially without notification.
The following statement alters the CUSTOMER cluster in the schema scott:
ALTER CLUSTER scott.customer SIZE 512 STORAGE (MAXEXTENTS 25);
Oracle allocates 512 bytes for each cluster key value. Assuming a data block size of 2 kilobytes, future data blocks within this cluster contain 4 cluster keys per data block, or 2 kilobytes divided by 512 bytes. The cluster can have a maximum of 25 extents.
The following statement deallocates unused space from the CUSTOMER cluster, keeping 30 kilobytes of unused space for future use:
ALTER CLUSTER scott.customer DEALLOCATE UNUSED KEEP 30 K;
|
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|