首页 > 其他分享 >AHF安装以及使用

AHF安装以及使用

时间:2023-11-12 20:23:10浏览次数:32  
标签:opt AHF data Oracle 使用 oracle ahf 安装

AHF简介

1.AHF的诞生就是为了与时俱进,让DBA们收集系统日志以及故障日志更加快捷,同时让Oracle也能够快速定位问题并提供对应的解决方案,号称是每个DBA必备工具。

2.AHF现在默认绑定在DB12+以及GRID12+的RU中,同时最新的版本也可以通过patch:30166242获取,其对应RU与AHF版本历史如下:
Release Update	AHF Version
Oct 2023	AHF 23.7.0
Jul 2023	AHF 23.4.2
Apr 2023	AHF 23.2.0
Jan 2023	AHF 22.3.1
Oct 2022	AHF 22.2.1
Jul 2022	AHF 22.1.3
Apr 2022	AHF 21.4.3
Jan 2022	AHF 21.3.0

3. AHF安装时,默认需要使用root,即具备AHF所有功能
4. AHF使用非root(必须使用 Oracle home的owner账户,如oracle或者grid等)时,以下功能不具备
Automate diagnostic collections
Collect diagnostics from remote hosts
Collect files that are not readable by the Oracle home owner, for example, /var/log/messages, or certain Oracle Grid Infrastructure logs
To install as the Oracle home owner, use the –ahf_loc option ./ahf_setup -ahf_loc install_dir


AHF下载

使用MOS账户去Oracle官方下载,目前最新版本是v23.10.0

AHF安装


-- 本篇使用root安装

yum -y install perl-Data-Dumper

mkdir {/ahf,/ahf_data}

unzip AHF-LINUX_v23.10.0.zip

./ahf_setup -ahf_loc /ahf -data_dir /ahf_data



-------------- 安装过程 -------------
[root@]# ./ahf_setup 

AHF Installer for Platform Linux Architecture x86_64

AHF Installation Log : /tmp/ahf_install_2310000_6881_2023_11_12-19_44_08.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 23.10.0 Build Date: 202310311821

Default AHF Location : /opt/oracle.ahf

Do you want to install AHF at [/opt/oracle.ahf] ? [Y]|N : y

AHF Location : /opt/oracle.ahf

AHF Data Directory stores diagnostic collections and metadata.
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.

Please Enter AHF Data Directory : /ahf

AHF Data Directory : /ahf/oracle.ahf/data

Do you want to add AHF Notification Email IDs ? [Y]|N : n

Extracting AHF to /opt/oracle.ahf

Configuring TFA Services

Discovering Nodes and Oracle Resources

Successfully generated certificates.

Starting TFA Services
Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.

.------------------------------------------------------------------------------------.
| Host          | Status of TFA | PID  | Port  | Version     | Build ID              |
+---------------+---------------+------+-------+-------------+-----------------------+
| oracle-19c-si | RUNNING       | 8732 | 28739 | 23.10.0.0.0 | 231000020231031182123 |
'---------------+---------------+------+-------+-------------+-----------------------'
Invalid option specified : cookie

Running TFA Inventory...

Adding default users to TFA Access list...

.-----------------------------------------------------------.
|                Summary of AHF Configuration               |
+-----------------+-----------------------------------------+
| Parameter       | Value                                   |
+-----------------+-----------------------------------------+
| AHF Location    | /opt/oracle.ahf                         |
| TFA Location    | /opt/oracle.ahf/tfa                     |
| Orachk Location | /opt/oracle.ahf/orachk                  |
| Data Directory  | /ahf/oracle.ahf/data                    |
| Repository      | /ahf/oracle.ahf/data/repository         |
| Diag Directory  | /ahf/oracle.ahf/data/oracle-19c-si/diag |
'-----------------+-----------------------------------------'

Starting ORAchk Scheduler from AHF

Setting up AHF CLI and SDK

AHF binaries are available in /opt/oracle.ahf/bin

AHF is successfully Installed

Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] : n

Moving /tmp/ahf_install_2310000_6881_2023_11_12-19_44_08.log to /ahf/oracle.ahf/data/oracle-19c-si/diag/ahf/



AHF使用


The new ahf command combines functionality from pre-existing as well as new AHF component CLIs into a single easy to understand command.

Previously, AHF included many components, each with their own command line. This has made it difficult for user to use different features of AHF.

This release begins the unification of all AHF components under a single command line

ahf <category> <action> [<options>]

Where categories are:

configuration - for changing AHF configuration
security - for security related configuration
collection - for capturing diagnostic data
analysis - for analyzing an environment for problems and providing recommendations for corrective action
software - for modifying the install software patching, upgrading or uninstalling
schedule - for scheduling automated tasks
observer - for viewing potential problems captured by AHF
Unification of commands will continue in future releases. Pre-existing commands continue to be supported.

For more information, see the AHF User's Guide section on Unified Command-Line Interface for the Entire AHF Stack .



AHF usecases

标签:opt,AHF,data,Oracle,使用,oracle,ahf,安装
From: https://www.cnblogs.com/Jeona/p/17827715.html

相关文章

  • python3使用pymsql操作mysql数据库
    操作系统:Windows10_x64python版本:3.9.2pymysql版本:1.0.2MySQL版本:5.7.38 之前写过一篇关于python操作mysql数据库的文章:https://www.cnblogs.com/MikeZhang/p/pythonOptMysql20170703.html当时是基于python2.7和mysql5.5来整理的,但目前python2.7已经不再维护,主......
  • Vue使用vuex刷新页面后state数据丢失
    使用 createPersistedState做持久化安装:npminstallvuex-persistedstate--save使用:importVuefrom'vue';importVuexfrom'vuex';importcreatePersistedStatefrom'vuex-persistedstate'importnavCollapsefrom'./modules/navCol......
  • Ubuntu22.04 安装nvm
    介绍本文记录了Ubuntu22.04上安装nvm的步骤,一并记录下过程中遇到的问题。操作步骤1、在github找到nvm的master分支,复制install.sh脚本的内容,粘贴至本地。打开以下链接,把install.sh的脚本搬运到Ubuntu上。https://github.com/nvm-sh/nvm/blob/master/install.sh在ubuntu上执行......
  • Fedora 安装 build-essential
    .....在Ubuntu系统中安装build-essential包就可以一键安装常用的编译工具链,但是在Fedora系统中没有这个包。在Fedora系统里面,这个包变成了一个名字为“DevelopmentTools”的组,所以安装命令如下:>$sudodnfgroupinstall"DevelopmentTools" ......
  • openGauss学习笔记-121 openGauss 数据库管理-设置密态等值查询-使用JDBC操作密态数据
    openGauss学习笔记-121openGauss数据库管理-设置密态等值查询-使用JDBC操作密态数据库121.1连接密态数据库连接密态数据库需要使用驱动包gsjdbc4.jar,具体JDBC连接参数参考基于JDBC开发章节介绍。JDBC支持密态数据库相关操作,需要设置enable_ce=1,示例如下。publicstaticConne......
  • 如何在“radio”输入字段中使用“required”属性
    内容来自DOChttps://q.houxu6.top/?s=如何在“radio”输入字段中使用“required”属性我只是想知道如何正确使用HTML5中的新输入属性"required"来处理单选按钮。每个单选按钮字段是否都需要像下面这样的属性,或者只有一个字段有该属性就足够了?<inputtype="radio"name="colo......
  • 在除法运算中,使用'/'和'//'有什么区别?
    内容来自DOChttps://q.houxu6.top/?s=在除法运算中,使用'/'和'//'有什么区别?使用其中一种比另一种有什么好处吗?在Python2中,它们似乎返回相同的结果:>>>6/32>>>6//32在Python3.x中,5/2会返回2.5,而5//2会返回2。前者是浮点除法,后者是取整除法,有时也称为整数除法。......
  • debian12 安装ch343驱动
    前言最近心血来潮,装了一台debian12玩,安装完毕arduino后发现没有ch343驱动,倒是在ls/lib/modules/6.1.0-13-amd64/kernel/drivers/usb/serial/找到了ch341.ko,现在尝试自己安装ch343驱动正文安装过程主要参考了这篇博客:CH342/CH343/CH344/CH347/CH9101/CH9102/CH9103/CH910......
  • Sonarqube 二进制的安装与简单使用
    Sonarqube二进制的安装与简单使用背景使用容器安装sonarqube发现无法使用PG数据库尝试了很长时间没搞定想了想还是使用二进制的方式进行部署吧.下载https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-10.2.1.78527.zip这个应该是2023.11的最......
  • IDEA中使用Tomcat的两种方式:集成本地Tomcat&使用Tomcat Maven插件
    一、前言在IDEA中创建完一个MavenWeb项目,并补齐了目录以后,准备使用Tomcat时,就需要在自己创建的项目中去部署Tomcat,前文已经介绍了如何创建MavenWeb,所以这里就不多加赘述,直接讲述部署Tomcat的方法二、集成本地Tomcat1.将本地Tomcat集成到Idea这种方法比较复杂,但是非常适用于tomca......