ITPub博客

首页 > Linux操作系统 > Linux操作系统 > V$LOG.status与V$LOGFILE.status详解

V$LOG.status与V$LOGFILE.status详解

原创 Linux操作系统 作者:jiuniang012 时间:2009-11-27 23:34:31 0 删除 编辑

引自:http://space.itpub.net/10714335/viewspace-374820

V$LOG

V$LOGdisplays log file information from the control file.

ColumnDatatypeDescription
GROUP#NUMBERLog group number
THREAD#NUMBERLog thread number
SEQUENCE#NUMBERLog sequence number
BYTESNUMBERSize of the log (in bytes)
MEMBERSNUMBERNumber of members in the log group
ARCHIVEDVARCHAR2(3)Archive status (YESorNO)
STATUSVARCHAR2(16)Log status:
  • UNUSED- Online redo log has never been written to. This is the state of a redo log that was just added, or just after aRESETLOGS, when it is not the current redo log.

  • CURRENT- Current redo log. This implies that the redo log is active. The redo log could be open or closed.

  • ACTIVE- Log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It may or may not be archived.

  • CLEARING- Log is being re-created as an empty log after anALTER DATABASE CLEAR LOGFILEstatement. After the log is cleared, the status changes toUNUSED.

  • CLEARING_CURRENT- Current log is being cleared of a closed thread. The log can stay in this status if there is some failure in the switch such as an I/O error writing the new log header.

  • INACTIVE- Log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived.

FIRST_CHANGE#NUMBERLowest system change number (SCN) in the log
FIRST_TIMEDATETime of the first SCN in the log

V$LOGFILE

This view contains information about redo log files.

ColumnDatatypeDescription
GROUP#NUMBERRedo log group identifier number
STATUSVARCHAR2(7)Status of the log member:
  • INVALID- File is inaccessible

  • STALE- File's contents are incomplete

  • DELETED- File is no longer used

  • null- File is in use

TYPEVARCHAR2(7)Type of the logfile:
  • ONLINE

  • STANDBY

MEMBERVARCHAR2(513)Redo log member name
IS_RECOVERY_DEST_FILEVARCHAR2(3)Indicates whether the file was created in the flash recovery area (YES) or not (NO)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9466564/viewspace-620881/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-07-02

  • 博文量
    126
  • 访问量
    245634