如何使用oracheck工具

oracheck來源於Oracle爲RAC環境準備的工具raccheck。
oracheck是須要單獨從MOS上下載的工具包。和其餘Oracle產品不一樣,oracheck更新速度很是快,官方建議是90天就須要下載最新的oracheck版本。
這樣作的目的就是讓用戶能夠得到最新的檢查項目和建議,及時下載安裝最新的安全補丁。
貼上下載地址:
https://support.oracle.com/epmos ... l-state=7zuzpudjx_4
下面簡單介紹一下,oracheck工具的使用
(1)上傳包到服務器
[root@rac1 oracheck]# ll
total 257500
-rw-r--r--. 1 root root 263673609 Jan 25 15:33 orachk.zip
(2)解壓
[root@rac1 oracheck]# unzip orachk.zip
解壓過程略
(3)將目錄受權給oracle用戶
[root@rac1 oracle]# chown -R oracle:dba oracheck/
[root@rac1 oracle]# su - oracle
cd [oracle@rac1 ~]$ cd /oracle/oracheck/
[oracle@rac1 oracheck]$ ll
total 325368
-r--r-----. 1 oracle dba 8233480 Dec 13 01:42 Apex5_CollectionManager_App.sql
drwxr-x---. 2 oracle dba 4096 Dec 13 01:41 bash
drwxr-x---. 3 oracle dba 4096 Jan 25 15:37 build
-r--r-----. 1 oracle dba 2958609 Dec 13 01:42 CollectionManager_App.sql
-r--r-----. 1 oracle dba 49352682 Dec 13 01:03 collections.dat
drwxr-xr-x. 2 oracle dba 4096 Jan 25 15:36 doc
drwxr-x---. 2 oracle dba 4096 Dec 13 05:31 exadiscover
drwxr-x---. 3 oracle dba 4096 Dec 13 05:31 lib
-rwxr-x---. 1 oracle dba 11063 Dec 13 05:31 orachk
-r-xr-x---. 1 oracle dba 5665 Dec 13 01:41 orachk.bat
-rw-r--r--. 1 oracle dba 2296616 Dec 13 05:45 ORAchk_Health_Check_Catalog.html
-r--r-----. 1 oracle dba 109317 Dec 13 01:41 orachk.pyc
-rw-r--r--. 1 oracle dba 263673609 Jan 25 15:33 orachk.zip
-rw-r--r--. 1 oracle dba 10105 Dec 13 05:45 readme.txt
-r--r-----. 1 oracle dba 6424905 Dec 13 01:03 rules.dat
-r--r-----. 1 oracle dba 40052 Dec 13 01:42 sample_user_defined_checks.xml
drwxr-x---. 2 oracle dba 4096 Dec 13 05:31 templates
-r--r-----. 1 oracle dba 2888 Dec 13 01:42 user_defined_checks.xsd
-rw-r--r--. 1 oracle dba 230 Dec 13 05:45 UserGuide.txt
orachk工具備不少參數,可經過-h選項查看
[oracle@rac1 oracheck]$ ./orachk -h
| -S
| -a
| -acchk
| -allserial
| -appjar
| -apptrc
| -asmhome
| -auto_restart
| -b
| -baseline
| -c
| -cells
| -cellserial
| -celltmpdir
.................
.................
(4)運行orachk工具對服務器進行檢查
ps:若是是rac環境,那麼在運行過程當中,也會對其餘節點進行檢查,所以只在一個節點運行便可。
[oracle@rac1 oracheck]$ ./orachk
CRS stack is running and CRS_HOME is not set. Do you want to set CRS_HOME to /oracle/app/11.2.0/grid?[y/n][y] y
Checking ssh user equivalency settings on all nodes in cluster for oracle
Node rac2 is configured for ssh user equivalency for oracle user
Searching for running databases . . . . .
. .
List of running databases registered in OCR
1. orcl
2. None of above
Select databases from list for checking best practices. For multiple databases, select 1 for All or comma separated number like 1,2 etc [1-2][1]. 1
. . . .
Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS
. . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
Oracle Stack Status
Host Name CRS Installed RDBMS Installed CRS UP ASM UP RDBMS UP DB Instance Name
rac1 Yes Yes Yes Yes Yes orcl1
rac2 Yes Yes Yes Yes No
.............
.............
.............
Clusterware patches summary report
Total patches Applied on CRS Applied on RDBMS Applied on ASM
1 0 0 0
RDBMS homes patches summary report
Total patches Applied on RDBMS Applied on ASM ORACLE_HOME
1 2 0 /oracle/app/oracle/product/11.2.0/db
CLUSTERWIDE CHECKS
Detailed report (html) - /oracle/oracheck/orachk_rac1_orcl_012518_163134/orachk_rac1_orcl_012518_163134.html
UPLOAD [if required] - /oracle/oracheck/orachk_rac1_orcl_012518_163134.zip
相關文章
相關標籤/搜索