O'Reilly logo

Oracle Database Administration: The Essential Refe by Brian Laskey, David C. Kreines

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required