V$LOGFILE.STATUS 和V$LOG.STATUS欄位值的含義

來源:互聯網
上載者:User

1.V$LOGFILE.STATUS
   (http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1152.htm#sthref3730)
  類型:VARCHAR2(7)
  Status of the log member:
  1.INVALID - File is inaccessible(檔案不可訪問)
  2.STALE - File's contents are incomplete(表明該檔案內容不完全,例如正在添加一個記錄檔成員)
   If the redo log file group member has never been used,
   either due to a new redo log file group or a repaired member,
   the value of STATUS is STALE until the log file member is used
   to record redo information.
  3.DELETED - File is no longer used(該檔案已不再使用)
  4.null - File is in use(檔案正在使用中)
 
1.V$LOG.STATUS
  (http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1150.htm#sthref3726)
  類型:VARCHAR2(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 a RESETLOGS, when it is not the
                   current redo log.
                   (表明從未對聯機重做日誌組進行寫入,這種狀態的記錄檔要麼而是剛增加的,
                   要麼是當日誌不是current redo log時RESETLOGS操作後的狀態)
  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 an ALTER DATABASE
                     CLEAR LOGFILE statement. After the log is cleared, the status changes
                     to UNUSED.
                     (表明在ALTER DATABASE CLEAR LOGFILE 命令後正在將該日誌重建為一個
                     空日誌,日誌清除後其狀態更改為UNUSED。)

  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.
                      (表明正在清除當前記錄檔中的已關閉線程,如果切換時發生某些故障,
                         如寫入新日誌標題時的I/O錯誤,則該日誌可以停留在該狀態。)

  INACTIVE - Log is no longer needed for instance recovery. It may be in use for
                    media recovery. It might or might not be archived.
                    (表明常式恢複不再需要聯機重做日誌組,它可能已經歸檔也可能未歸檔。)

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.