Oracle RAC環境的日誌體系

來源:互聯網
上載者:User

標籤:

轉摘:http://blog.itpub.net/22664653/viewspace-722463/在Oracle RAC環境中比單個系統的日誌體系要複雜:見:簡單介紹一下有關Oracle叢集環境中日誌體繫結構,在遇到問題時,可以快速尋找所需的記錄檔,及時的定位問題~1.Oracle叢集日誌的檔案路徑Oracle叢集涉及的日誌主要位於“$GRID_HOME/log”和“$ORACLE_HOME/log”目錄中。2.日誌目錄結構clusterware 層的日誌結構:[email protected]:/home/grid>tree -d $ORACLE_HOME/log/opt/rac/11.2.0/grid/log|-- crs|-- diag|   `-- clients|       `-- user_root|           `-- host_1874443374_76|               |-- alert|               |-- cdump|               |-- incident|               |-- incpkg|               |-- lck|               |-- metadata|               |-- stage|               |-- sweep|               `-- trace`-- rac1    |-- admin    |-- agent    |   |-- crsd    |   |   |-- oraagent_grid    |   |   |-- oraagent_oracle    |   |   `-- orarootagent_root    |   `-- ohasd    |       |-- oraagent_grid    |       |-- oracssdagent_root    |       |-- oracssdmonitor_root    |       `-- orarootagent_root    |-- client    |-- crsd    |-- cssd    |-- ctssd    |-- diskmon    |-- evmd    |-- gipcd    |-- gnsd    |-- gpnpd    |-- mdnsd    |-- ohasd    |-- racg    |   |-- racgeut    |   |-- racgevtf    |   `-- racgmain    `-- srvm 42 directoriesRMDBS 層的日誌結構:[email protected]:/opt/rac/oracle/diag/rdbms/rac>tree -d rac1rac1|-- alert|-- cdump|-- hm|-- incident|-- incpkg|-- ir|-- lck|-- metadata|-- stage|-- sweep`-- trace11 directories 其中“rac1”是主機名稱。 3.日誌目錄功能說明1)CRS日誌存放在“$GRID_HOME/log/<hostname>/crsd”目錄,系統會對該日誌每10M進行歸檔一次;2)CSS日誌存放在“$GRID_HOME/log/<hostname>/cssd”目錄,系統會對該日誌每20M進行歸檔一次;3)EVM日誌存放在“$GRID_HOME/log/<hostname>/evmd”目錄;4)“$GRID_HOME/log/<hostname>”和“$ORACLE_HOME/log/<hostname>”目錄中的racg目錄中記錄了RACG可執行檔對應的日誌;5)“$GRID_HOME/log/<hostname>/client”和“$ORACLE_HOME/log/<hostname>/client”目錄記錄了與srvctl、ocrdump、ocrconfig以及ocrcheck命令對應的日誌資訊。 4.Oracle叢集的alert日誌Oracle RAC環境中的alert記錄檔與Oracle單一實例的alert日誌一樣。該檔案位於“在 $ORACLE_BASE/rdbms/<hostname>/trace”目錄下,命名規則為“alert_<nodename>.log”該警告日誌記錄了有關Oracle叢集rdbms 層面的重要警告資訊。[email protected]:/opt/rac/oracle/diag/rdbms/rac/rac1/trace>more alert_rac1.log Starting up:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing options.Using parameter settings in client-side pfile /opt/rac/oracle/admin/rac/pfile/init.ora on machine rac1System parameters with non-default values:  processes                = 150  nls_language             = "SIMPLIFIED CHINESE"  nls_territory            = "CHINA"  memory_target            = 1584M  control_files            = "+DATA2/rac/controlfile/current.260.781821965"  db_block_size            = 8192  compatible               = "11.2.0.0.0"  log_archive_dest_1       = "LOCATION=+DATA2"  log_archive_format       = "yangdb_%t_%s_%r.dbf"  db_create_file_dest      = "+DATA2"  undo_tablespace          = "UNDOTBS1"  instance_number          = 1  remote_login_passwordfile= "EXCLUSIVE"  db_domain                = ""  dispatchers              = "(PROTOCOL=TCP) (SERVICE=racXDB)"  remote_listener          = "scan:1521"  audit_file_dest          = "/opt/rac/oracle/admin/rac/adump"  audit_trail              = "DB"  db_name                  = "rac"  open_cursors             = 300  diagnostic_dest          = "/opt/rac/oracle"Cluster communication is configured to use the following interface(s) for this instance  10.10.10.10cluster interconnect IPC version:Oracle UDP/IP (generic)IPC Vendor 1 proto 2Sat Apr 28 20:50:38 2012PMON started with pid=2, OS id=16042 Sat Apr 28 20:50:38 2012VKTM started with pid=3, OS id=16044 at elevated priorityVKTM running at (10)millisec precision with DBRM quantum (100)msSat Apr 28 20:50:39 2012GEN0 started with pid=4, OS id=16048 Sat Apr 28 20:50:39 2012DIAG started with pid=5, OS id=16050 Sat Apr 28 20:50:39 2012DBRM started with pid=6, OS id=16052 5.小結熟悉Oracle叢集環境下記錄檔的位置和功能有助於快速定位故障的位置,善用之。  ORA-29780: unable to connect GPnP daemon [CLSGPNP_ERR] 安裝完成 11GR2 Grid 之後,使用asmca建立磁碟組的時候遇到如下報錯:Started getting following error ORA-29780: unable to connect to GPnP daemon [CLSGPNP_ERR]google 一把 和環境變數有關:(CRS/GRID 是運行正常的).  [email protected] /oragrid/dbs> env | grep ORAGRID_HOME=/opt/11.2.0/grid <====== 從老的bash_profle 中繼承的!ORACLE_SID=+ASM1ORACLE_BASE=/opt/rac/gridORACLE_HOME=/opt/rac/11.2.0/grid$GRID_HOME變數必須和$ORACLE_HOME 保持一致,否則在使用asmca建立磁碟的時候 會認不到asm 磁碟!

Oracle RAC環境的日誌體系

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.