日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

用ORACHK自己主动化检查数据库系统的健壮性

發布時間:2024/9/20 windows 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 用ORACHK自己主动化检查数据库系统的健壮性 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、orachk工具主要用途

(1)主動檢查您的整個軟件在操作系統、CRS、數據庫、高可用等層面中的嚴重問題,以便于IT部門整改,提升系統的穩定性

(2)對于您系統中存在的風險提供簡單化和合理化的診斷和分析建議。

(3)對系統中存在的健康風險提供匯總信息,而且可以向下鉆取到特定的問題和相應的解決方式

(4)對檢查結果進行量化評分(100分制),內容很的全面,通過得分直觀推斷健康程度

2、執行注意要點

(1)orachk不支持在root用戶下執行,須要在oracle或grid用戶下執行

(2)假設檢查RAC環境的健康,須要輸入其他節點的rootpassword,假設各節點rootpassword同樣,則僅僅需輸入一次就可以

3、檢查輸出信息分級

序號

分級

意義

1

FAIL

嚴重的不合格的問題

2

WARNING

警告問題

3

ERROR

錯誤問題

4

INFO

參考信息

4、orachk下載

? ??????metalink文章 1268927.2 中提供下載,當前最新版本號為ORA CHK2.2.5,不分平臺,在linux、AIX等平臺通用

5、orachk安裝

5.1 創建一個orachk專用文件夾

????? 創建一個orachk解壓出來的眾多文件,以及執行orachk產生的分析報告材料

[root@INFA oracle]# mkdir -p /home/oracle/orachk

5.2、安裝orachk

??? 安裝orachk非常easy,僅僅須要將orachk-2.2.5.zip解壓縮出來就可以

[root@INFA oracle]# cp orachk-2.2.5.zip /home/oracle/orachk/

[root@INFA oracle]# cd /home/oracle/orachk

[root@INFA orachk]# unzip orachk-2.2.5.zip

5.3、配置orachk文件夾權限

[root@INFA orachk]# chown -R oracle:oinstall /home/oracle/orachk

[root@INFA orachk]# chmod -R 777 /home/oracle/orachk

6、單實例環境執行orachk開展健康檢查實例

(1)啟動orachk檢查:

[oracle@INFA orachk]$ ./orachk

List of running databases

1. infadb

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].

?

(2)輸出過程記錄(部分內容):

Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS

?

. . . . . . . . . . . . . . .

-------------------------------------------------------------------------------------------------------

???????????????????????????????????????????????? Oracle Stack Status???????????????????????????

-------------------------------------------------------------------------------------------------------

Host Name? CRS Installed? ASM HOME?????? RDBMS Installed? CRS UP??? ASM UP??? RDBMS UP? DB Instance Name

-------------------------------------------------------------------------------------------------------

infa????? ??No????????????? No????????????? Yes???????????? No???????? No?????? Yes????? infadb???

-------------------------------------------------------------------------------------------------------

?

Copying plug-ins

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

?

*** Checking Best Practice Recommendations (PASS/WARNING/FAIL) ***

?

Collections and audit checks log file is

/home/oracle/orachk/orachk_infa_infadb_080214_023723/log/orachk.log

?

Checking for prompts in /home/oracle/.bash_profile on infa for oracle user...

=============================================================

??????????????????? Node name - infa???????????????????????????????

=============================================================

?

Collecting - Active sessions load balance for infadb database

Collecting - Archived Destination Status for infadb database

......

Collecting - Memory Information

Collecting - OS Packages

Collecting - Operating system release information and kernel version

Collecting - Patches for RDBMS Home

Collecting - number of semaphore operations per semop system call

?

Data collections completed. Checking best practices on infa.

--------------------------------------------------------------------------------------

?

?INFO =>??? user_dump_dest has trace files older than 30 days for infadb

?INFO =>??? At some times checkpoints are not being completed for infadb

?WARNING => One or more redo log groups are NOT multiplexed for infadb

?WARNING => Shell limit soft nproc for DB is NOT configured according to recommendation

?......

?INFO =>??? Consider investigating changes to the schema objects such as DDLs or new object creation for infadb

?INFO =>??? Information about 11.2.0.3 support

?

Best Practice checking completed.Checking recommended patches on infa.

---------------------------------------------------------------------------------

Collecting patch inventory on ORACLE_HOME /dba/oracle/product/11.2.0/db_1

---------------------------------------------------------------------------------

1 Recommended RDBMS patches for 112030 from /dba/oracle/product/11.2.0/db_1 on infa

---------------------------------------------------------------------------------

Patch#?? RDBMS??? ASM???? type??????????????? Patch-Description??????????????????????

---------------------------------------------------------------------------------

18031683? no???????????? merge?????????????? DATABASE PATCH SET UPDATE 11.2.0.3.10 (INCLUDES CPUAPR2014)

---------------------------------------------------------------------------------

?RDBMS homes patches summary report

---------------------------------------------------------------------------------

Total patches? Applied on RDBMS Applied on ASM ORACLE_HOME???

---------------------------------------------------------------------------------

?1????????????? 0????????????? 0??????????????? /dba/oracle/product/11.2.0/db_1

---------------------------------------------------------------------------------

?

Detailed report (html) - /home/oracle/orachk/orachk_infa_infadb_080214_023723/orachk_infa_infadb_080214_023723.html

?

UPLOAD(if required) - /home/oracle/orachk/orachk_infa_infadb_080214_023723.zip

具體輸出結果已經打包成zip文件

7、RAC環境執行orachk開展健康檢查

??? 方法與單實例全然一樣,不同的一點在于,須要在執行節點,輸入遠端節點的root密

8、輸出結果演示樣例(摘取部分內容)

(1)頭部概述信息

Oracle RAC Assessment Report

System Health Score is 85 out of 100?(detail)

Cluster Summary

Cluster Name

XXdb-cluster

OS/Kernel Version

AIX6 (64-BIT) 61 1

CRS Home - Version

/u01/app/11.2.0.3/grid - 11.2.0.3.0

DB Home - Version - Names

/u01/app/oracle/11.2.0.3/db - 11.2.0.3.0 -?2

Number of nodes

2

???Database Servers

2

orachk Version

2.2.5_20140530

Collection

orachk_XXdb1_ebizsj_072514_164205.zip

Duration

33 mins, 54 seconds

Collection Date

25-Jul-2014 16:49:00


Note!?This version of orachk is considered valid for 64 days from today or until a new version is available

?

(2)database server檢查輸出部分

Database Server

Status

Type

Message

Status On

Details

FAIL

Database Check

There should be no duplicate parameter entries in the database init.ora(spfile) file

XXdb1:ebiz

View

FAIL

SQL Check

Table AUD$[FGA_LOG$] should use Automatic Segment Space Management for ebizsj

All Databases

View

FAIL

SQL Check

Some bigfile tablespaces do not have non-default maxbytes values set

ebiz

View

......

......

.......

......

......

WARNING

SQL Check

Consider increasing the value of the session_cached_cursors database parameter

ebiz

View

WARNING

OS Check

maximum number of processes user limit (ulimit -u) for current user is NOT set to recommended value 16384 or greater

All Database Servers

View

......

......

......

......

......

?

(3)GRIDAND RDBMS Patch部分

GRID and RDBMS patch recommendation Detailed report

Detailed report for "XXdb1"




1 Recommended CRS patches for112030 from /u01/app/11.2.0.3/grid

Patch#

CRS

ASM

RDBMS

RDBMS_HOME

Patch-Description

18139678

not-applied

n/a

not-applied

merge

GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.3.10 (INCLUDES DB PSU 11.2.0.3.10)

Top?

1 Recommended RDBMS patchesfor 112030 from /u01/app/oracle/11.2.0.3/db

Patch#

RDBMS

ASM

Type

Patch-Description

18139678

not-applied

n/a

merge

GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.3.10 (INCLUDES DB PSU 11.2.0.3.10)

?

......

?

本文作者:黎俊杰(網名:踩點),從事”系統架構、操作系統、存儲設備、數據庫、中間件、應用程序“六個層面系統性的性能優化工作

歡迎增加 系統性能優化專業群,共同探討性能優化技術。群號:258187244

總結

以上是生活随笔為你收集整理的用ORACHK自己主动化检查数据库系统的健壮性的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。