中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle rac 問題解決

發布時間:2020-08-09 20:21:05 來源:ITPUB博客 閱讀:143 作者:波仔strong 欄目:關系型數據庫

oracle rac 問題解決

oracle rac 問題解決
















1查看相關日志

[root@rac1 rac1]# pwd

/u01/app/grid/11.2.0/log/rac1

[root@rac1 rac1]# ls

acfs acfsrepl acfssec agent clientcrfmond cssdcvu evmd gnsd mdnsd racg

acfslog acfsreplroot admin alertrac1.log crflogd crsd ctssd diskmon gipcd gpnpd ohasd srvm


admin => 記錄一些概要信息 

alertgnd-rac01.log =>記錄節點crs狀態變化時候的一些概要信息,詳細還是要看css log 

client =>記錄crs初始化,ocr application including: CLSCFG, CSS, OCRCHECK, OCRCONFIG, OCRDUMP and OIFCFG 

crsd =>記錄crsd的相關日志,crs等待css進入fatal模式后,啟動crsd然后啟動相關的resource 

cssd =>記錄cssd的相關日志,節點停止,啟動,reconfig等,所有問題都會記錄,最重要的日志 

evmd =>記錄evmd的日志 

racg =>記錄ons,vip的相關日志 


2. 在Oracle集群環境的"$ORA_CRS_HOME/bin"目錄下提供了diagcollection.pl腳本,以root用戶身份執行該腳本便可以完成搜集必要的診斷信息的目的。


執行采集腳本diagcollection.pl


[root@rac1 ~]# cd $ORA_CRS_HOME/bin

[root@rac1 bin]# ./diagcollection.pl --help

Production Copyright 2004, 2010, Oracle. All rights reserved

Cluster Ready Services (CRS) diagnostic collection tool

diagcollection

--collect

[--crs] For collecting crs diagnostic information

[--adr] For collecting diagnostic information for ADR; specify ADR location

[--chmos] For collecting Cluster Health Monitor (OS) data

[--acfs] Unix only. For collecting ACFS diagnostic information

[--all] Default.For collecting all diagnostic information.

[--core] UNIX only. Package core files with CRS data

[--afterdate] UNIX only. Collects archives from the specified date. Specify in mm/dd/yyyy format

[--aftertime] Supported with -adr option. Collects archives after the specified time. Specify in YYYYMMDDHHMISS24 format

[--beforetime] Supported with -adr option. Collects archives before the specified date. Specify in YYYYMMDDHHMISS24 format

[--crshome] Argument that specifies the CRS Home location

[--incidenttime] Collects Cluster Health Monitor (OS) data from the specified time. Specify in MM/DD/YYYYHH24:MM:SS format

If not specified, Cluster Health Monitor (OS) data generated in the past 24 hours are collected

[--incidentduration] Collects Cluster Health Monitor (OS) data for the duration after the specified time. Specify in HH:MM format.

If not specified, all Cluster Health Monitor (OS) data after incidenttime are collected

NOTE:

1. You can also do the following

./diagcollection.pl --collect --crs --crshome


--clean cleans up the diagnosability

information gathered by this script


--coreanalyze UNIX only. Extracts information from core files

and stores it in a text file


[root@rac1 bin]# ./diagcollection.pl --collect --all --crshome $ORA_CRS_HOME

Production Copyright 2004, 2005, Oracle. All rights reserved

Cluster Ready Services (CRS) diagnostic collection tool

The following CRS diagnostic archives will be created in the local directory.

crsData_rac1.tar.gz -> logs,traces and cores from CRS home. Note: core files will be packaged only with the -core option.

ocrData_rac1.tar.gz -> ocrdump, ocrcheck etc

coreData_rac1.tar.gz -> contents of CRS core files in text format


Collecting crs data

/bin/tar: Removing leading `/' from member names

Collecting OCR data

Collecting information from core files

No corefiles found

The following Oracle Home diagnostic archives will be created in the local directory.

oraData_rac1.tar.gz -> logs, traces and cores from Oracle Home

Collecting oracle home data

/bin/tar: Removing leading `/' from member names



本次生成的打包文件如下:

[root@rac1 bin]# ls -l *tar.gz

-rw-r--r-- 1 root root 138 Nov 18 22:38 coreData_rac1.tar.gz

-rw-r--r-- 1 root root 234507 Nov 18 22:38 crsData_rac1.tar.gz

-rw-r--r-- 1 root root 8000 Nov 18 22:38 ocrData_rac1.tar.gz

-rw-r--r-- 1 root root 81851 Nov 18 22:38 oraData_rac1.tar.gz


使用Oracle提供的diagcollection.pl腳本可以很方便的對診斷信息進行批量打包。簡化了采集故障信息的繁瑣流程。

如需要將診斷信息提交給Oracle技術支持人員,使用該方法效率會比較高效。


3.使用cluvfy工具


[grid@rac1 ~]$ cluvfy -help

USAGE:

cluvfy [-help|-version]

cluvfy stage {-list|-help}

cluvfy stage {-pre|-post} [-verbose]

cluvfy comp {-list|-help}

cluvfy comp [-verbose]


例如

[grid@rac1 ~]$ cluvfy comp crs -n all -verbose


Verifying CRS integrity

Checking CRS integrity...

Clusterware version consistency passed

The Oracle Clusterware is healthy on node "rac2"

The Oracle Clusterware is healthy on node "rac1"


CRS integrity check passed


Verification of CRS integrity was successful.



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

当涂县| 蕲春县| 韩城市| 社会| 宁乡县| 沁阳市| 三门县| 滁州市| 库尔勒市| 江油市| 平和县| 岗巴县| 拜泉县| 富宁县| 河北区| 阆中市| 北川| 涿鹿县| 卢氏县| 京山县| 治多县| 泽州县| 准格尔旗| 抚松县| 桐城市| 通山县| 康平县| 绍兴县| 闻喜县| 景洪市| 海盐县| 玉龙| 揭西县| 威海市| 襄城县| 土默特右旗| 云南省| 闸北区| 洱源县| 缙云县| 渝北区|