iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >Oracle 11g Health Monitor Checks
  • 535
分享到

Oracle 11g Health Monitor Checks

2024-04-02 19:04:59 535人浏览 薄情痞子
摘要

说明:Health Monitor是11g引入的用于检查数据库的各个组件(包括文件、内存、事务处理完整性、元数据和进程使用情况)。这些检查器将生成检查结果报表以及解决问题的建议。可在数据库脱机(nomoun

说明:
Health Monitor是11g引入的用于检查数据库的各个组件(包括文件、内存、事务处理完整性、
元数据和进程使用情况)。这些检查器将生成检查结果报表以及解决问题的建议。
可在数据库脱机(nomount)和联机(open或mount)的情况下执行,运行状况检查都可以在DB-online模式下运行。只有redo完整性检查和db结构完整性检查需要在数据库脱机模式下进行。


支持的检查条目:

sql> select name,offline_capable,description,internal_check from v$hm_check;

NAME                                O DESCRIPTION                                                       I
----------------------------------- - ----------------------------------------------------------------- -
HM Test Check                       Y Check for health monitor functionality                            Y
DB Structure Integrity Check        Y Checks integrity of all database files                            N
CF Block Integrity Check            Y Checks integrity of a control file block                          N
Data Block Integrity Check          Y Checks integrity of a data file block                             N
Redo Integrity Check                Y Checks integrity of redo log content                              N
Logical Block Check                 N Checks logical content of a block                                 Y
Transaction Integrity Check         N Checks a transaction for corruptions                              N
Undo Segment Integrity Check        N Checks integrity of an undo segment                               N
No Mount CF Check                   Y Checks control file in NOMOUNT mode                               Y
Mount CF Check                      Y Checks control file in mount mode                                 Y
CF Member Check                     Y Checks a multiplexed copy of the control file                     Y
All Datafiles Check                 Y Checks all datafiles in the database                              Y
Single Datafile Check               Y Checks a data file                                                Y
Tablespace Check Check              Y Checks a tablespace                                               Y
Log Group Check                     Y Checks all members of a log group                                 Y
Log Group Member Check              Y Checks a particular member of a log group                         Y
ArcHived Log Check                  Y Checks an archived log                                            Y
Redo Revalidation Check             Y Checks redo log content                                           Y
IO Revalidation Check               Y Checks file accessibility                                         Y
Block IO Revalidation Check         Y Checks file accessibility                                         Y
Txn Revalidation Check              N Revalidate corrupted transaction                                  Y
Failure Simulation Check            Y Creates dummy failures                                            Y
Dictionary Integrity Check          N Checks dictionary integrity                                       N
ASM Mount Check                     Y Diagnose mount failure                                            Y
ASM Allocation Check                Y Diagnose allocation failure                                       N
ASM Disk Visibility Check           Y Diagnose add disk failure                                         Y
ASM File Busy Check                 Y Diagnose file drop failure                                        Y
ASM Toomanyoff Check                Y Diagnose mount failed because there were too many offline disks   Y
ASM Insufficient Disks Check        Y Diagnose mount failed because there were insufficient disks       Y
ASM Insufficient Mem Check          Y Check to adjust memory on allocation failure                      Y
30 rows selected.



健康检查的类型:

1.DB Structure Integrity Check—This check verifies the integrity of database files and reports failures if these files are inaccessible, corrupt or inconsistent. If the database is in mount or open mode, this check examines the log files and data files listed in the control file. If the database is in NOMOUNT mode, only the control file is checked.

--mount\open
模式检查控制文件中列出的日志文件和数据文件。NOMOUNT模式,则仅检查控制文件。

2.Data Block Integrity Check—This check detects disk image block corruptions such as checksum failures, head/tail mismatch, and logical inconsistencies within the block. Most corruptions can be repaired using Block Media Recovery. Corrupted block infORMation is also captured in the V$DATABASE_BLOCK_CORRUPTION view. This check does not detect inter-block or inter-segment corruption.

--会捕获损坏的块信息记录在V$DATABASE_BLOCK_CORRUPTION视图中,不会检测块间或段间损坏。

3.Redo Integrity Check—This check scans the contents of the redo log for accessibility and corruption, as well as the archive logs, if available. The Redo Integrity Check reports failures such as archive log or redo corruption.

--在线日志及归档都会进行检查

4.Undo Segment Integrity Check—This check finds logical undo corruptions. After locating an undo corruption, this check uses PMON and SMON to try to recover the corrupted transaction. If this recovery fails, then Health Monitor stores information about the corruption in V$CORRUPT_XID_LIST. Most undo corruptions can be resolved by forcing a commit.

--PMON和SMON尝试恢复损坏的事务,当损坏的事务不能恢复时记录在V$CORRUPT_XID_LIST视图中。

5.Transaction Integrity Check—This check is identical to the Undo Segment Integrity Check except that it checks only one specific transaction.

--与4相同

6.Dictionary Integrity Check—This check examines the integrity of core dictionary objects, such as tab$ and col$. It performs the following operations:
1)Verifies the contents of dictionary entries for each dictionary object.
--验证每个字典对象的字典条目的内容。
2)Performs a cross-row level check, which verifies that logical constraints on rows in the dictionary are enforced.
--执行跨行级别检查,强制执行验证字典中行的逻辑约束。
3)Performs an object relationship check, which verifies that parent-child relationships between dictionary objects are enforced.
--执行对象关系检查,强制执行验证字典对象之间的父子关系。

涉及到的字典:

The Dictionary Integrity Check operates on the following dictionary objects:
tab$, clu$, fet$, uet$, seg$, undo$, ts$, file$, obj$, ind$, icol$, col$, user$, con$, cdef$, ccol$, bootstrap$, objauth$, ugroup$, tsq$, syn$, view$, typed_view$, superobj$, seq$, lob$, coltype$, subcoltype$, ntab$, refcon$, opQtype$, dependency$, access$, viewcon$, icoldep$, dual$, sysauth$, objpriv$, defrole$, and ecol$.

手动运行健康检查

需要用到DBMS_HM.RUN_CHECK包:

https://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_hm.htm#ARPLS144

DBMS_HM.RUN_CHECK (
   check_name     IN  VARCHAR2, 
                  -->  要调用的检查的名称,从V$HM_CHECK和V$HM_CHECK_PARAM视图查看,SELECT name FROM V$HM_CHECK WHERE INTERNAL_CHECK = 'N'检索可由用户手动运行的检查列表  ;   
   run_name       IN  VARCHAR2 := NULL,
                  -->运行检查的名称,可不指定。
   timeout        IN  NUMBER := NULL, 
                  -->运行的最长时间(以秒为单位),可不指定。
   input_params   IN  VARCHAR2 := NULL); 
                  -->由名称,值对组成,由特殊字符';'分割。具体值通过v$hm_check_param ,v$hm_check视图确定。

1)运行DBMS_HM.RUN_CHECK

BEGIN
   DBMS_HM.RUN_CHECK('Dictionary Integrity Check', 'Dict_Check');
 END;
 /

用法参考:Https://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_hm.htm#ARPLS66419

2)SQLPLUS中查看报告

SQL> SET LONG 100000
SQL> SET LONGCHUNKSIZE 1000
SQL> SET PAGESIZE 1000
SQL> SET LINESIZE 512
SQL> SELECT DBMS_HM.GET_RUN_REPORT('Dict_Check') FROM DUAL;

DBMS_HM.GET_RUN_REPORT('DICTCHECK')
---------------------------------------------------------
Basic Run Information
 Run Name                     : Dict Check
 Run Id                       : 55001
 Check Name                   : Dictionary Integrity Check
 Mode                         : MANUAL
 Status                       : COMPLETED
 Start Time                   : 2019-07-03 09:49:44.365864 +08:00
 End Time                     : 2019-07-03 09:50:04.668621 +08:00
 Error Encountered            : 0
 Source Incident Id           : 0
 Number of Incidents Created  : 0

Input Paramters for the Run
 TABLE_NAME=ALL_CORE_TABLES
 CHECK_MASK=ALL
v
Run Findings And Recommendations
 Finding
 Finding Name  : Dictionary Inconsistency
 Finding ID    : 55002
 Type          : FAILURE
 Status        : OPEN
 Priority      : CRITICAL
 Message       : SQL dictionary health check: analyzetime for object new than
               sysdate 12 on object TAB$ failed
 Message       : Damaged rowid is AAAAACAABAAAACRAAC - description: Object
               SYS.UNDO$ is referenced
 Finding
 Finding Name  : Dictionary Inconsistency
 Finding ID    : 55005
 Type          : FAILURE
 Status        : OPEN
 Priority      : CRITICAL
 Message       : SQL dictionary health check: analyzetime for object new than
               sysdate 12 on object TAB$ failed
 Message       : Damaged rowid is AAAAACAABAAAACVAAA - description: Object
               SYS.SEQ$ is referenced

3)adrci中查看报告

ADRCI: Release 11.2.0.4.0 - Production on Wed Jul 3 09:52:43 2019

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/u01/app/oracle"
adrci> show hm_run

ADR Home = /u01/app/oracle/diag/tnslsnr/prodb/listener:
*************************************************************************
...
**********************************************************
HM RUN RECORD 130
**********************************************************
   RUN_ID                        56581
   RUN_NAME                      Dict_Check
   CHECK_NAME                    Dictionary Integrity Check
   NAME_ID                       24
   MODE                          0
   START_TIME                    2019-07-03 09:58:40.350313 +08:00
   RESUME_TIME                   <NULL>
   END_TIME                      2019-07-03 09:58:56.425829 +08:00
   MODIFIED_TIME                 2019-07-03 09:58:56.425829 +08:00
   TIMEOUT                       0
   FLAGS                         0
   STATUS                        5
   SRC_INCIDENT_ID               0
   NUM_INCIDENTS                 0
   ERR_NUMBER                    0
   REPORT_FILE                   <NULL>

adrci> create report hm_run Dict_Check
adrci> show report hm_run Dict_Check
...
adrci> show hm_run
**********************************************************
HM RUN RECORD 130
**********************************************************
   RUN_ID                        56581
   RUN_NAME                      Dict_Check
   CHECK_NAME                    Dictionary Integrity Check
   NAME_ID                       24
   MODE                          0
   START_TIME                    2019-07-03 09:58:40.350313 +08:00
   RESUME_TIME                   <NULL>
   END_TIME                      2019-07-03 09:58:56.425829 +08:00
   MODIFIED_TIME                 2019-07-03 09:59:40.845354 +08:00
   TIMEOUT                       0
   FLAGS                         0
   STATUS                        5
   SRC_INCIDENT_ID               0
   NUM_INCIDENTS                 0
   ERR_NUMBER                    0
   REPORT_FILE                   /u01/app/oracle/diag/rdbms/PROD/PROD/hm/HMREPORT_Dict_Check.hm

   已生成REPORT_FILE,xml格式。

其他:

每个类型的检查参数可能会不一样,如数据块完整性检查:

begin
  DBMS_HM.RUN_CHECK('Data Block Integrity Check',
                    'f7_block_check',
                    input_params => 'BLC_DF_NUM=7;BLC_BL_NUM=100');
end;
/

具体参数:

SELECT a.*
  FROM v$hm_check_param a, v$hm_check b
 WHERE a.check_id = b.id
   AND b.name = 'Data Block Integrity Check';
您可能感兴趣的文档:

--结束END--

本文标题: Oracle 11g Health Monitor Checks

本文链接: https://www.lsjlt.com/news/35821.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • 【SQL】Oracle SQL monitor
    据说,在Oracle企业版数据库中有一个免费的工具,乃SQL优化之利器,那就是Oracle SQL monitor。下面,由DBA+社群原创专家周俊,给大家科普一下这一被埋没的神器。专家简介周俊DBA+社群原创专家具有14年以上Oracle...
    99+
    2024-04-02
  • solaris 11 下安装oracle 11g 与 11g RAC
    1、To Find Swap, RAM, and OS Version 对于 Solaris 操作系统,查看 Swap, RAM, and OS Version 的方法: ...
    99+
    2024-04-02
  • oracle 11g install o
    oracle 11.2.0.4的官方文档认证了suse 12 sp1,但sp3并未做认证如要在sp3上安装,除了常规的linux上安装外,其他不同点参考如下步骤:1 服务管理/usr/sbin/rc*systemctl list-unit-...
    99+
    2023-01-31
    oracle install
  • Oracle 11g R2 索引
    索引是oracle提供的一个对象,提供了一种快速访问数据的途径,提高了数据库的检索性能。索引使数据库程序无需对整个表进行全表扫描,就可以在其中找到所需要的数据,就想书的目录,可以通过他快速查找所需信息,无需...
    99+
    2024-04-02
  • Oracle 11g R2 Snapshot Standby
    Oracle 11g引入Snapshot Standby,允许standby database以read-write模式打开。当切换回standby模式,所有在read-write模式的修改都丢失。它是通过...
    99+
    2024-04-02
  • oracle 11g中的 oracle restart特性
    oracle restart性特 在oracle 11g r2 以前对于单实例一般都是写脚本为自动启动oracle,在oracle 11g r2中使用oracle restart功能来配置在硬件或软件出现故...
    99+
    2024-04-02
  • Centos 6.5安装oracle 11g
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttp://download.oracl...
    99+
    2024-04-02
  • 分析Oracle中11g DataGuard
    这篇文章主要讲解了“分析Oracle中11g DataGuard”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“分析Oracle中11g DataGuard”...
    99+
    2024-04-02
  • Oracle 11g buffer cache的设置
    查看buffer cache的大小: SQL> SELECT component,current_size,min_size FROM v$sga_dynamic_components; ...
    99+
    2024-04-02
  • Linux 下 Oracle 11g DG搭建
    环境:模拟主库的创建 使用DBCA 启动图形界面 选项中的install option  --->选中create and configure a d...
    99+
    2024-04-02
  • Oracle 11g 上安装ASM(RHEL5)
    1、Oracle 11g安装略详细过程请参考:http://blog.sina.com.cn/s/blog_7c5a82970101excf.html2、安装Oracleasm软件包rpm -ivh ora...
    99+
    2024-04-02
  • oracle 11G RAC如何改IP
    这篇文章将为大家详细讲解有关oracle 11G RAC如何改IP,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 #host IP10.16...
    99+
    2024-04-02
  • 如何理解oracle 11g DRM
    这期内容当中小编将会给大家带来有关如何理解oracle 11g DRM,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。 DRM 简介 首先,我们对和DRM 相关的一些...
    99+
    2024-04-02
  • Oracle 11G RAC 增加节点
    集群中增加节点大致分为 4 个步骤:前期准备阶段、新节点加入集群(安装 GI 软件)、新节点安装 DB 软件、给新节点分配实例。 一 . ...
    99+
    2024-04-02
  • oracle 12c如何导入11g
    这篇文章给大家分享的是有关oracle 12c如何导入11g的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 迁移前字符集查看sqlplus &quo...
    99+
    2024-04-02
  • Oracle 11g修改RAC SCAN IP
    Oracle 11g修改RAC SCAN IP   在11gR2中,引入了SCAN(Single Client Access Name)的特性,该特性的好处在于,在数据库与客户端之间,添加了一层虚...
    99+
    2024-04-02
  • oracle 11g RAC 命令整理
    使用 SRVCTL 启动/停止所有实例:  ...
    99+
    2024-04-02
  • Linux怎么安装Oracle 11g
    这篇文章主要讲解了“Linux怎么安装Oracle 11g”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Linux怎么安装Oracle 11g”吧!安装前环...
    99+
    2024-04-02
  • oracle 11g常用隐含参数
    ORACLE 11GR2常用参数(含隐含参数)设置如下: alter system set "_PX_use_large_pool" = true scope=spfile; alter system se...
    99+
    2024-04-02
  • oracle 11g如何创建基线
    这篇文章将为大家详细讲解有关oracle 11g如何创建基线,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 性能优化时大体有如下两种评估方式...
    99+
    2024-04-02
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作