Skip to Main Content
Oracle SQL*Plus Pocket Reference
book

Oracle SQL*Plus Pocket Reference

by Jonathan Gennick
April 2000
Intermediate to advanced content levelIntermediate to advanced
94 pages
1h 52m
English
O'Reilly Media, Inc.
Content preview from Oracle SQL*Plus Pocket Reference

Name

ARCHIVE LOG

Synopsis

ARCHIVE LOG {LIST |
             STOP |
             START [TO destination] |
             NEXT [TO destination] |
             ALL [TO destination] |
             log_sequence_number [TO
                destination]}

The ARCHIVE LOG command is used to control—or display information about—archive logging. You must be connected as SYSDBA, SYSOPER, or INTERNAL in order to use this command. For example:

ARCHIVE LOG LIST
ARCHIVE LOG START
ARCHIVE LOG ALL TO /m01/oradata

Parameters

LIST

Causes SQL*Plus to display information about the current state of archiving.

STOP

Stops log files from being automatically archived.

START

Turns on automatic archiving of redo log files.

NEXT

Manually archives the next log file group in the sequence, provided that it is filled. Use ARCHIVE LOG LIST to see the sequence number of this file.

ALL

Manually archives all log file groups that have been filled but not previously archived.

log _sequence_number

Manually archives a specific log file group, provided that the group is still online.

destination

Specifies a destination for archived log files. If used with ARCHIVE LOG START, this becomes the destination for all log files as they are archived. If used with NEXT, ALL, or a specific sequence number, this becomes the destination for files archived by that one command. If you do not specify a destination when using ARCHIVE LOG START, the value from the LOG_ARCHIVE_ DEST initialization parameter is used.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle SQL*Plus Pocket Reference, 3rd Edition

Oracle SQL*Plus Pocket Reference, 3rd Edition

Jonathan Gennick
Expert Oracle Exadata

Expert Oracle Exadata

Kerry Osborne, Randy Johnson, Tanel Pöder

Publisher Resources

ISBN: 1565929411Catalog PageErrata