Oracle8i SQL Reference Release 3 (8.1.7) Part Number A85397-01 |
|
SQL Statements:
ALTER CLUSTER to ALTER SYSTEM, 9 of 19
Use the ALTER
MATERIALIZED
VIEW
LOG
statement to alter the storage characteristics, refresh mode or time, or type of an existing materialized view log. A materialized view log is a table associated with the master table of a materialized view.
See Also:
|
Only the owner of the master table or a user with the SELECT
privilege for the master table can alter a materialized view log.
See Also: Oracle8i Replication for detailed information about the prerequisites for |
storage_clause
: See storage_clause.
partitioning_clauses: See ALTER TABLE.
schema
Specify the schema containing the master table. If you omit schema
, Oracle assumes the materialized view log is in your own schema.
table
Specify the name of the master table associated with the materialized view log to be altered.
physical_attributes_clause
The physical_attributes_clause
lets you change the value of PCTFREE
, PCTUSED
, INITRANS
, and MAXTRANS
parameters for the table, the partition, the overflow data segment, or the default characteristics of a partitioned table.
See Also: CREATE TABLE and the "Materialized View Storage Example" for a description of these parameters |
partitioning_clauses
The syntax and general functioning of the partitioning clauses is the same as for the ALTER
TABLE
statement
Restrictions:
LOB_storage_clause
or modify_LOB_storage_clause
when modifying a materialized view log.
parallel_clause
The parallel_clause
lets you specify whether parallel operations will be supported for the materialized view log.
LOGGING | NOLOGGING
Specify the logging attribute of the materialized view log.
allocate_extent_clause
The allocate_extent_clause
lets you explicitly allocate a new extent for the materialized view log.
CACHE | NOCACHE
For data that will be accessed frequently, CACHE
specifies that the blocks retrieved for this log are placed at the most recently used end of the LRU list in the buffer cache when a full table scan is performed. This attribute is useful for small lookup tables. NOCACHE
specifies that the blocks are placed at the least recently used end of the LRU list.
ADD
The ADD
clause lets you augment the materialized view log so that it records the primary key values or rowid values when rows in the materialized view master table are updated. This clause can also be used to record additional filter columns.
To stop recording any of this information, you must first drop the materialized view log and then re-create it. Dropping the materialized view log and then re-creating it forces each of the existing materialized views that depend on the master table to complete refresh on its next refresh.
Restriction: You can specify only one PRIMARY
KEY
, one ROWID
, and one filter column list per materialized view log. Therefore, if any of these three values were specified at create time (either implicitly or explicitly), you cannot specify those values in this ALTER
statement.
See Also:
|
NEW VALUES
The NEW
VALUES
clause lets you specify whether Oracle saves both old and new values in the materialized view log. The value you set in this clause applies to all columns in the log, not only to primary key, rowid, or filter columns you may have added in this statement.
The following statement changes the MAXEXTENTS
value of a materialized view log:
ALTER MATERIALIZED VIEW LOG ON dept STORAGE MAXEXTENTS 50;
PRIMARY
KEY
Example
The following statement alters an existing rowid materialized view log to also record primary key information:
ALTER MATERIALIZED VIEW LOG ON sales ADD PRIMARY KEY;
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|