Oracle8i SQL Reference Release 3 (8.1.7) Part Number A85397-01 |
|
SQL Statements:
CREATE SYNONYM to DROP ROLLBACK SEGMENT, 23 of 31
Use the DROP
MATERIALIZED
VIEW
statement to remove an existing materialized view from the database.
The terms "snapshot" and "materialized view" are synonymous.
See Also:
|
The materialized view must be in your own schema or you must have the DROP
ANY
MATERIALIZED
VIEW
(or DROP
ANY
SNAPSHOT
) system privilege. You must also have the privileges to drop the internal table, views, and index that Oracle uses to maintain the materialized view's data.
See Also: DROP TABLE, DROP VIEW, and DROP INDEX for information on privileges required to drop objects that Oracle uses to maintain the materialized view |
schema
Specify the schema containing the materialized view. If you omit schema
, Oracle assumes the materialized view is in your own schema.
materialized_view
Specify the name of the existing materialized view to be dropped.
DROP
MATERIALIZED
VIEW
Examples
The following statement drops the materialized view parts
owned by the user hq
:
DROP SNAPSHOT hq.parts;
The following statement drops the sales_by_month
materialized view and the underlying table of the materialized view (unless the underlying table was registered in the CREATE
MATERIALIZED
VIEW
statement with the ON
PREBUILT
TABLE
clause):
DROP MATERIALIZED VIEW sales_by_month;
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|