天天看點

Oracle 12c RAC 日志體系結構的變化

1    說明

在11g中,檢視GRID的日志,會進入$ORACLE_HOM/log。

但在12c中,還是存在上述的目錄結構,但是裡面什麼内容都沒有。 因為從12c開始,RAC 的日志結構發生了改變。

12c 中RAC 分兩種類型:

1. standard cluster

Name of alert log : alert.log

location of alert log: $ORACLE_BASE/diag/crs/host01/crs/trace

2.  flex cluster

Name of alert log : alert<hostname>.log

location of alert log: $ORACLE_HOME/log/host01

我的測試環境是standard cluster,是以在11g的RAC 架構裡,看不到任何資訊。 但如果是flex cluster,那麼日志結構,還是和12c之前的叢集一樣。

2    驗證

實際上,這種改變也是Oracle 的另一個日志管理的趨勢。 Oracle 從11g 引入了ADR (AutomaticDiagnostic Repository) ,ADR 是一個基于檔案的資料檔案庫,用于存放資料庫診斷資料(如跟蹤、意外事件轉儲和程式包、預警日志、健康狀況螢幕報告、核心轉儲等)。

從11g R1 開始,資料庫、自動存儲管理(ASM)、叢集就緒服務(CRS) 和其它Oracle 産品或元件将所有診斷資料都存儲在ADR 中。每種産品的每個執行個體都将診斷資料存儲在自己的ADR 主目錄下。

    這個12c中新的目錄結構,就是ADR的目錄結構。 根據12c中的改變,可以看出,Oracle 已經采用ADR來管理各種日志。

Starting with 12.1.0.2 Oracle Grid Infrastructure has adapted the Automatic Diagnostic Repository (ADR) based management of diagnostic information. As a result of this adaptation, all diagnostic information has been moved under the ADR folder tree. This applies to the host alert log as well as to ASM alert logs and other logs as well as traces.

 轉:http://www.cndba.cn/dave/article/160

文章可以轉載,必須以連結形式标明出處。

本文轉自 張沖andy 部落格園部落格,原文連結: http://www.cnblogs.com/andy6/p/6031102.html  ,如需轉載請自行聯系原作者