Oracle9i SQL Reference
Release 1 (9.0.1)

Part Number A90125-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

SQL Statements:
CREATE TYPE to
DROP ROLLBACK SEGMENT, 18 of 26


DROP MATERIALIZED VIEW

Purpose

Use the DROP MATERIALIZED VIEW statement to remove an existing materialized view from the database.


Note:

The keyword SNAPSHOT is supported in place of MATERIALIZED VIEW for backward compatibility.  


See Also:

 

Prerequisites

The materialized view must be in your own schema or you must have the DROP ANY MATERIALIZED VIEW 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 

Syntax

drop_materialized_view::=


Text description of statements_850.gif follows
Text description of drop_materialized_view

Keywords and Parameters

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.

Examples

DROP MATERIALIZED VIEW Examples

The following statement drops the materialized view mv1 in the sample schema sh:

DROP MATERIALIZED VIEW mv1; 

The following statement drops the sales_by_month_by_state 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_by_state;

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback