The document outlines restrictions on truncating tables, including the inability to roll back the operation, flash back to a previous state, or truncate certain types of tables without additional steps. It also discusses the MATERIALIZED VIEW LOG clause, which allows specification of whether a materialized view log should be preserved or purged during truncation. The default setting is to preserve the materialized view log when the master table is truncated.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views1 page
Restrictions
The document outlines restrictions on truncating tables, including the inability to roll back the operation, flash back to a previous state, or truncate certain types of tables without additional steps. It also discusses the MATERIALIZED VIEW LOG clause, which allows specification of whether a materialized view log should be preserved or purged during truncation. The default setting is to preserve the materialized view log when the master table is truncated.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Restrictions on Truncating Tables
This statement is subject to the following restrictions:
• You cannot roll back a TRUNCATE TABLE statement. • You cannot flash back to the state of the table before the truncate operation. • You cannot individually truncate a table that is part of a cluster. You must either truncate the cluster, delete all rows from the table, or drop and re-create the table. • You cannot truncate the parent table of an enabled foreign key constraint. You must disable the constraint before truncating the table. An exception is that you can truncate the table if the integrity constraint is self-referential. • If a domain index is defined on table, then neither the index nor any index partitions can be marked IN_PROGRESS. • You cannot truncate the parent table of a reference-partitioned table. You must first drop the reference-partitioned child table. • You cannot truncate a duplicated table. MATERIALIZED VIEW LOG Clause The MATERIALIZED VIEW LOG clause lets you specify whether a materialized view log defined on the table is to be preserved or purged when the table is truncated. This clause permits materialized view master tables to be reorganized through export or import without affecting the ability of primary key materialized views defined on the master to be fast refreshed. To support continued fast refresh of primary key materialized views, the materialized view log must record primary key information. Note: The keyword SNAPSHOT is supported in place of MATERIALIZED VIEW for backward compatibility. PRESERVE Specify PRESERVE if any materialized view log should be preserved when the master table is truncated. This is the default. PURGE Chapter 19 TRUNCATE TABLE 19