| Oracle9i SQL Reference Release 2 (9.2) Part Number A96540-02 |
|
|
View PDF |
Use the DROP CLUSTER clause to remove a cluster from the database.
You cannot uncluster an individual table. Instead you must perform these steps:
CLUSTER clause.RENAME statement to give the new table the name of the old one.| See Also:
CREATE TABLE, DROP TABLE, RENAME, GRANT for information on these steps |
The cluster must be in your own schema or you must have the DROP ANY CLUSTER system privilege.
drop_cluster::=
Specify the schema containing the cluster. If you omit schema, Oracle assumes the cluster is in your own schema.
Specify the name of the cluster to be dropped. Dropping a cluster also drops the cluster index and returns all cluster space, including data blocks for the index, to the appropriate tablespace(s).
Specify INCLUDING TABLES to drop all tables that belong to the cluster.
Specify CASCADE CONSTRAINTS to drop all referential integrity constraints from tables outside the cluster that refer to primary and unique keys in tables of the cluster. If you omit this clause and such referential integrity constraints exist, Oracle returns an error and does not drop the cluster.
The following examples drop the clusters created in the "Examples" section of CREATE CLUSTER on .
The following statements drops the language cluster:
DROP CLUSTER language;
This statement drops the personnel cluster as well as tables dept_10 and dept_20 and any referential integrity constraints that refer to primary or unique keys in those tables:
DROP CLUSTER personnel INCLUDING TABLES CASCADE CONSTRAINTS;