Oracle7 Server Administrator's Guide

Contents Index Home Previous Next

Displaying Archiving Status Information

To list archive status information, you must be connected with administrator privileges.

To see the current archiving mode, query the V$DATABASE view :

SELECT log_mode FROM sys.v$database;
LOG_MODE
------------
NOARCHIVELOG

The V$ARCHIVE and V$LOG data dictionary views also contain archiving information of a database. For example, the following query lists all log groups for the database and indicates the ones that remain to be archived:

SELECT group#, archived
   FROM sys.v$log;
GROUP#     ARC
---------- ---
1 YES
2 NO

The command ARCHIVE LOG with the LIST parameter also shows archiving information for the connected instance:

ARCHIVE LOG LIST;
Database log mode                        ARCHIVELOG
Automatic archival                       ENABLED
Archive destination                      destination
Oldest online log sequence               30
Next log sequence to archive             32
Current log sequence number              33

This display tells you all the necessary information regarding the redo log settings for the current instance:

You must archive all redo log groups with a sequence number equal to or greater than the Next log sequence to archive, yet less than the Current log sequence number. For example, the display above indicates that the online redo log group with sequence number 32 needs to be archived.


Contents Index Home Previous Next