如何使用 orachk 工具

简介:       Oracle RAC 安装完毕后的健壮性是一个令人头疼的问题。之前Oracle为之专门推出了raccheck工具,确实方便了我们这些个苦逼的DBA。

      Oracle RAC 安装完毕后的健壮性是一个令人头疼的问题。之前Oracle为之专门推出了raccheck工具,确实方便了我们这些个苦逼的DBA。现在Oracle在raccheck的基础之上又推出了orachk. orachk包含了EXAchk 的功能并替换了流行的 RACcheck 工具,扩大根据用户报告的最重要问题的优先次序的覆盖面,并且主动扫描E-Business Suite Financials Accounts Payables、Oracle Database、Sun Systems等产品的已知问题。下面将为您揭开其面纱。

 

1、orachk的功能
    将主动扫描您的整个工程系统(Engineered System)以及您系统各层级中最有影响的已知问题。
    简化和优化如何调查和分析哪些已知问题对您构成风险
    轻量级工具运行在您的环境中,没有数据被发送到 Oracle
    总览报告显示您的系统的健康风险,具有深入到具体问题,了解他们的解决方案的能力
    可配置它检测到问题时发送电子邮件通知
    收集管理器(Collection Manager),一个 Application Express Web 应用程序,提供了搜集整个企业信息的单独仪表盘视图

 

2、orachk支持的领域、平台及其数据库版本
支持的领域
Oracle Database:
      Standalone Database
      Grid Infrastructure & RAC
      Maximum Availability Architecture (MAA) Validation
      Upgrade Readiness Validation
      Golden Gate 
E-Business Suite:
      Financials Accounts Payables
Sun Systems:
      Oracle Solaris 

平台及其数据库版本
      Linux x86-64* (Enterprise Linux, RedHat and SuSE 9, SuSE 10 & SuSE 11)
      Oracle Solaris SPARC (Solaris 10 and 11)
      Oracle Solaris x86-64 (Solaris 10 and 11)
      AIX **
      HPUX**

      * 32-bit platforms not supported, no planned support for Linux Itanium
      **Requires BASH Shell 3.2 or higher to be installed

支持的数据库版本: 10gR2、11gR1、11gR2、12cR1

orachk 检查的具体内容
      OS kernel parameters
      OS packages
      Many other OS configuration settings important to RAC.
      CRS/Grid Infrastructure
      RDBMS
      ASM
      Database parameters
      Many other database configuration settings important to RAC.
      Upgrade Readiness assessment for target versions 11.2.0.3 and above 

 

3、何时需要orachk?
      After initial Oracle RAC deployment
      Before planned system maintenance
      After planned system maintenance
      At least once every three months
 

4、配置及运行orachk
      a、下载orachk工具,目前最新的版本是ORAchk 2.2.4
      b、使用oracle或者root帐户登陆到服务器,解压下载的文件到指定的安装路径
      c、教研orachk的权限为755,如果不是755,则授予其权限为755。如:$ chmod 755 orachk
      d、运行orachk工具。如:$ ./orachk  #对于非root用户运行过程中需要root用户而服务提供密码的情形一些检查会被跳过

 

5、实战orachk
#对于suse linux,应注意修改orachk文件头部"/bin/evn"为"/usr/bin/env",否则会收到/bin/evn不存在的错误提示
ordb1:oracle:orcl101 > which env #使用which env检查当前的env环境
/usr/bin/env

#获取帮助信息
ordb1:oracle:orcl101 > ./orachk -h
Usage : ./orachk [-abvhpfmsuSo:c:t:]
        -a      All (Perform best practice check and recommended patch check)
        -b      Best Practice check only. No recommended patch check
        -h      Show usage
        -v      Show version
        -p      Patch check only
        -m      exclude checks for Maximum Availability Architecture (MAA) scorecards(see user guide for more details)
        -u      Run orachk to check pre-upgrade or post-upgrade best practices for 11.2.0.3,11.2.0.4.0 and 12.1.0.1
                -o pre or -o post is mandatory with -u option like ./orachk -u -o pre
        -f      Run Offline.Checks will be performed on data already collected from the system
        -o      Argument to an option. if -o is followed by v,V,Verbose,VERBOSE or Verbose, it will print checks which passs on the screen
                if -o option is not specified,it will print only failures on screen. for eg: orachk -a -o v

        -clusternodes
                Pass comma separated node names to run orachk only on subset of nodes.
        ..........................后面省略...............

ordb1:oracle:orcl101 > ./orachk -a

Checking ssh user equivalency settings on all nodes in cluster

Node oadb2 is configured for ssh user equivalency for oracle user
# Author: Leshami    Blog : http://blog.csdn.net/leshmai 
Searching for running databases . . . . .

. .
List of running databases registered in OCR
1. orcl10
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].  
. .

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
-------------------------------------------------------------------------------------------------------
ordb1       Yes             Yes             Yes             Yes        Yes      Yes      orcl101  
ordb2       Yes             Yes             Yes             Yes        Yes      Yes      orcl102  
-------------------------------------------------------------------------------------------------------

Copying plug-ins

. . . . . . . . . . . . . 根据提示逐步往下走..............................

检查完毕之后会在当前目录生成相应的目录及报告文件,如本例,直接查看相应的html文件即可
ordb1:oracle:orcl101 > pwd
/opt/oracle/soft/orachk/orachk_ordb1_orcl10_031214_105523
ordb1:oracle:orcl101 > ls -hltr
total 774K
-rw-r--r-- 1 oracle oinstall  87K Mar 12 11:01 pxhcdr_orcl10_ordb1_10.2.0.5.0_20140312_110120.zip
drwxr-xr-x 2 oracle oinstall  320 Mar 12 11:03 upload
drwxr-xr-x 2 oracle oinstall  648 Mar 12 11:03 reports
drwxr-xr-x 2 oracle oinstall  38K Mar 12 11:03 outfiles
-rw-r--r-- 1 oracle oinstall 646K Mar 12 11:03 orachk_ordb1_orcl10_031214_105523.html
drwxr-xr-x 2 oracle oinstall  208 Mar 12 11:03 log

更多相关的功能直接参考help文件或者查看ORAchk User Guide.pdf
参考:1268927.2


Oracle 牛鹏社    

相关参考
    RMAN 配置保留策略    

    Oracle 闪回区(Oracle Flash recovery area)

    Oracle 快照控制文件(snapshot control file)

    中小型数据库 RMAN CATALOG 备份恢复方案(一)

    中小型数据库 RMAN CATALOG 备份恢复方案(二)

    中小型数据库 RMAN CATALOG 备份恢复方案(三)

    基于RMAN实现坏块介质恢复(blockrecover)

    用 DBMS_REPAIR 修复坏块

    RMAN 数据库克隆文件位置转换方法

    基于RMAN的异机数据库克隆(rman duplicate)

    基于 RMAN 的同机数据库克隆

    基于用户管理的同机数据库克隆

    基于RMAN从活动数据库异机克隆(rman duplicate from active DB)

    RMAN duplicate from active 时遭遇 ORA-17627 ORA-12154

    Oracle 冷备份

    Oracle 热备份

    Oracle 备份恢复概念

    Oracle 实例恢复

    Oracle 基于用户管理恢复的处理

    SYSTEM 表空间管理及备份恢复

    SYSAUX表空间管理及恢复

    Oracle 基于备份控制文件的恢复(unsing backup controlfile)

    RMAN 概述及其体系结构

    RMAN 配置、监控与管理

    RMAN 备份详解

    RMAN 还原与恢复

    RMAN catalog 的创建和使用

    基于catalog 创建RMAN存储脚本

    基于catalog 的RMAN 备份与恢复

    RMAN 备份路径困惑

    自定义 RMAN 显示的日期时间格式

    只读表空间的备份与恢复

    Oracle 基于用户管理的不完全恢复

    理解 using backup controlfile

    使用RMAN实现异机备份恢复(WIN平台)

    使用RMAN迁移文件系统数据库到ASM

    基于Linux下 Oracle 备份策略(RMAN)

    Linux 下RMAN备份shell脚本

    使用RMAN迁移数据库到异机

    RMAN 提示符下执行SQL语句

    Oracle 基于 RMAN 的不完全恢复(incomplete recovery by RMAN)

    rman 还原归档日志(restore archivelog)

目录
相关文章
|
4月前
|
监控 安全 数据可视化
Splunk工具学习(下载、安装、简单使用、核心概念)
Splunk工具学习(下载、安装、简单使用、核心概念)
124 0
|
8月前
|
JavaScript 前端开发
this如何使用
"this" 是 JavaScript 中的关键字,它通常用于引用当前执行上下文中的对象。
30 0
|
4月前
|
数据采集 Python
Python框架批量数据抓取的高级教程
Python框架批量数据抓取的高级教程
|
4月前
|
XML JSON 编解码
|
6月前
|
JavaScript API
domutils 工具库的使用方法介绍
domutils 工具库的使用方法介绍
33 0
|
9月前
|
IDE 开发工具 C++
如何使用VS
如何使用VS
64 0
|
10月前
代码对比工具
代码对比工具
|
11月前
|
数据可视化 编译器 开发工具
python高级开发中可视化界面开发环境搭建
python高级开发中可视化界面开发环境搭建
141 0
|
消息中间件 Java API
如何使用 ArrayPool
如果不停的 new 数组,可能会造成 GC 的压力,因此在 aspnetcore 中推荐使用 ArrayPool 来重用数组,本文将介绍如何使用 ArrayPool。
133 0
如何使用 ArrayPool