ahf 再出发,单机安装-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 3502611
  • 博文数量: 718
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7790
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(718)

文章存档

2024年(4)

2023年(74)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客
相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: oracle

2021-04-09 16:08:56


又宕机了,19.3单机库,想用一下tfa功能。

本机自带一个tfa,但是超过180天不能使用了。

下载一个新的ahf,解压后,需要root执行安装

  1. [root@host tmp]# ./ahf_setup


  2. ahf installer for platform linux architecture x86_64


  3. ahf installation log : /tmp/ahf_install_204000_19740_2021_04_09-14_12_52.log


  4. starting autonomous health framework (ahf) installation


  5. ahf version: 20.4.0 build date: 202012141017


  6. perl : /bin/perl


  7. [error] : ahf-00074: perl modules not found : data::dumper



居然报错了,提示dumper模块不存在,安装一下相关模块。

[root@host tmp]#  yum install perl-data-dumper

  1. loaded plugins: fastestmirror
  2. determining fastest mirrors
  3. centos7 | 3.6 kb 00:00:00
  4. resolving dependencies
  5. --> running transaction check
  6. ---> package perl-data-dumper.x86_64 0:2.145-3.el7 will be installed
  7. --> finished dependency resolution


  8. dependencies resolved


  9. ============================
  10.  package arch version repository size
  11. ============================
  12. installing:
  13.  perl-data-dumper x86_64 2.145-3.el7 centos7 47 k


  14. transaction summary
  15. =======================
  16. install 1 package


  17. total download size: 47 k
  18. installed size: 97 k
  19. is this ok [y/d/n]: y
  20. downloading packages:
  21. perl-data-dumper-2.145-3.el7.x86_64.rpm | 47 kb 00:00:00
  22. running transaction check
  23. running transaction test
  24. transaction test succeeded
  25. running transaction
  26.   installing : perl-data-dumper-2.145-3.el7.x86_64 1/1
  27.   verifying : perl-data-dumper-2.145-3.el7.x86_64 1/1

  28. installed:
  29.   perl-data-dumper.x86_64 0:2.145-3.el7


模块安装完毕,继续安装ahf

[root@host tmp]# ./ahf_setup 

  1. ahf installer for platform linux architecture x86_64


  2. ahf installation log : /tmp/ahf_install_204000_21467_2021_04_09-14_16_57.log


  3. starting autonomous health framework (ahf) installation


  4. ahf version: 20.4.0 build date: 202012141017


  5. default ahf location : /opt/oracle.ahf


  6. do you want to install ahf at [/opt/oracle.ahf] ? [y]|n : ##默认回车 /opt目录空间要充足


  7. ahf location : /opt/oracle.ahf


  8. ahf data directory stores diagnostic collections and metadata.
  9. ahf data directory requires at least 5gb (recommended 10gb) of free space.


  10. please enter ahf data directory : /opt/oracle.ahf ##数据就放在这个目录下吧


  11. ahf data directory : /opt/oracle.ahf/data


  12. do you want to add ahf notification email ids ? [y]|n : n ##不接收通知


  13. extracting ahf to /opt/oracle.ahf


  14. configuring tfa services


  15. discovering nodes and oracle resources


  16. successfully generated certificates.


  17. starting tfa services
  18. created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
  19. created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.


  20. .---------------------------------------------------------------------------------------------.
  21. | host | status of tfa | pid | port | version | build id |
  22. ----------------------------------------------------------------------------------------
  23. | host | running | 22954 | 13546 | 20.4.0.0.0 | 20400020201214101756 |
  24. '------------------------- --------------- ------- ------- ------------ ----------------------'


  25. running tfa inventory...


  26. adding default users to tfa access list...


  27. .---------------------------------------------------------------------.
  28. | summary of ahf configuration |
  29. --------------------------------------------------------------------
  30. | parameter | value |
  31. --------------------------------------------------------------------
  32. | ahf location | /opt/oracle.ahf |
  33. | tfa location | /opt/oracle.ahf/tfa |
  34. | orachk location | /opt/oracle.ahf/orachk |
  35. | data directory | /opt/oracle.ahf/data |
  36. | repository | /opt/oracle.ahf/data/repository |
  37. | diag directory | /opt/oracle.ahf/data/host/diag |
  38. '----------------- ---------------------------------------------------'


  39. starting orachk scheduler from ahf ...


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


  41. ahf is successfully installed ## 安装成功啦


  42. moving /tmp/ahf_install_204000_21467_2021_04_09-14_16_57.log to /opt/oracle.ahf/data/host/diag/ahf/

[root@host tmp]# cd /opt/oracle.ahf/tfa  
[root@host tfa]# ls
bin  disclaimer.txt  ext  input  install  internal  public.jks  readme.txt  resources  tfa.install.properties  tfa.jks  transfers
[root@host tfa]# cd bin
[root@host bin]# ./tfactl diagcollect -srdc dbshutdown

开始用用



  1. [oracle@shdb01 ~]$ tfactl diagcollect –srdc -help

  2. invalid option for diagcollect: –srdc

  3. collect logs from across nodes in cluster

  4. usage : /opt/oracle.ahf/tfa/bin/tfactl diagcollect [ [component_name1] [component_name2] ... [component_namen] | [-srdc <srdc_profile>] | [-defips]] [-sr <sr#>] [-node <all|local|n1,n2,..>] [-tag <tagname>] [-z <filename>] [-last <n><m|h|d>| -from <time> -to <time> | -for <time>] [-nocopy] [-notrim] [-silent] [-cores][-collectalldirs][-collectdir <dir1,dir2..>][-examples]
  5.     components:-ips|-database|-asm|-crsclient|-dbclient|-dbwlm|-tns|-rhp|-procinfo|-cvu|-afd|-crs|-cha|-wls|-emagenti|-emagent|-oms|-omsi|-ocm|-emplugins|-em|-acfs|-install|-cfgtools|-os|-ashhtml|-ashtext|-awrhtml|-awrtext|-sosreport|-qos|-rdbms|-asm|-crsclient|-dbclient|-dbwlm|-tns|-rhp|-procinfo|-cvu|-afd|-crs|-cha|-wls|-emagenti|-emagent|-oms|-omsi|-ocm|-emplugins|-em|-acfs|-install|-cfgtools|-os|-ips|-ashhtml|-ashtext|-awrhtml|-awrtext|-sosreport|-qos
  6.     -srdc service request data collection (srdc).
  7.     -defips include in the default collection the ips packages for:
  8.                     asm, crs and databases
  9.     -sr enter sr number to which the collection will be uploaded
  10.     -node specify comma separated list of host names for collection
  11.     -tag <tagname> the files will be collected into tagname directory inside
  12.                     repository
  13.     -z <zipname> the collection zip file will be given this name within the
  14.                     tfa collection repository
  15.     -last <n><m|h|d> files from last 'n' [m]inutes, 'n' [d]ays or 'n' [h]ours
  16.     -since same as -last. kept for backward compatibility.
  17.     -from "mon/dd/yyyy hh:mm:ss" from <time>
  18.                     or "yyyy-mm-dd hh:mm:ss"
  19.                     or "yyyy-mm-ddthh:mm:ss"
  20.                     or "yyyy-mm-dd"
  21.     -to "mon/dd/yyyy hh:mm:ss" to <time>
  22.                     or "yyyy-mm-dd hh:mm:ss"
  23.                     or "yyyy-mm-ddthh:mm:ss"
  24.                     or "yyyy-mm-dd"
  25.     -for "mon/dd/yyyy" for <date>.
  26.                     or "yyyy-mm-dd"
  27.     -nocopy does not copy back the zip files to initiating node from all nodes
  28.     -notrim does not trim the files collected
  29.     -silent this option is used to submit the diagcollection as a background
  30.                     process
  31.     -cores collect core files when it would normally not have been
  32.                     collected
  33.     -collectalldirs collect all files from a directory marked "collect all"
  34.                     flag to true
  35.     -collectdir specify comma separated list of directories and collection will
  36.                     include all files from these irrespective of type and time constraints
  37.                     in addition to components specified
  38.     -examples show diagcollect usage examples
  39. for detailed help on each component use:
  40.   /opt/oracle.ahf/tfa/bin/tfactl diagcollect [component_name1] [component_name2] ... [component_namen] -help


参考:

  1. https://docs.oracle.com/en/engineered-systems/health-diagnostics/autonomous-health-framework/ahfug/collecting-diagnostics-and-using-one-command-srdc.html#guid-f8381a7a-e2f7-442c-aed0-3feef4129125

阅读(1794) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图