Name

CREATE SNAPSHOT

Synopsis

CREATE SNAPSHOT
[schema.]snapshot_name
   [PCTFREE integer]
   [PCTUSED integer]
   [INITRANS integer]
   [MAXTRANS integer]
   [LOGGING | NOLOGGING]
   [CACHE | NOCACHE]
[CLUSTER cluster_name
(clustercolumnlist) ]
   [TABLESPACE tablespace_name]
   [STORAGE (
      [INITIAL integer[K | M] ]
      [NEXT integer[K | M] ]
      [MINEXTENTS integer[K | M] ]
      [MAXEXTENTS {integer | UNLIMITED} ]
      [PCTINCREASE integer]
      [FREELISTS integer]
      [FREELIST GROUPS integer]
      ) ]
   [NOPARALLEL]
[PARALLEL ( {DEGREE {integer | DEFAULT} |
INSTANCES {integer | DEFAULT} } ) ]
   [USING INDEX
      [TABLESPACE tablespace_name]
      [PCTFREE integer]
      [INITRANS integer]
      [MAXTRANS integer]
      [STORAGE (
          [INITIAL integer[K | M] ]
          [NEXT integer[K | M] ]
          [MINEXTENTS integer]
[MAXEXTENTS {integer | UNLIMITED} ]
          [PCTINCREASE integer]
          [FREELISTS integer]
          [FREELIST GROUPS integer]
        ) ]
    ]
   [REFRESH
      [FAST | COMPLETE | FORCE]
      [START WITH date]
      [NEXT date]
      [WITH PRIMARY KEY]
      [WITH ROWID]
      [USING DEFAULT [MASTER | LOCAL ] ROLLBACK SEGMENT]
[USING [MASTER | LOCAL] ROLLBACK SEGMENT
rollback_segment]
 ]
[FOR UPDATE ] AS snapshot_query

Creates a snapshot (snapshot_name), which is the result of a query run against one or more tables or views.

Keywords

PCTFREE

Specifies the percentage of space to be reserved in each data block for future updates to rows contained in that block. Valid values are - 99, and the default value is 10.

PCTUSED

Specifies the minimum percentage of space that will be maintained as used in each data block. The value may be in the range 1- 99, ...

Get Oracle Database Administration: The Essential Refe now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.