rac 中我的 ahf 安装过程-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 3502679
  • 博文数量: 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-14 14:15:06


因为超过180天就oracle就认为需要更新了,所以不允许执行tfactl,需要安装最新的ahf,对于 rac 我的简便的方法是  ./ahf_setup -local -silent 安静独立安装。


  1. [root@host2:/home/oracle/a]# ./ahf_setup -local -silent
  2. ahf installer for platform linux architecture x86_64
  3. ahf installation log : /tmp/ahf_install_204400_387451_2021_04_14-10_45_03.log
  4. starting autonomous health framework (ahf) installation
  5. ahf version: 20.4.4 build date: 202103031027
  6. tfa is already installed at : /oracle/app/19.3.0/grid/tfa/host2/tfa_home
  7. installed tfa version : 192000 build id : 20190426041420
  8. ahf location : /opt/oracle.ahf
  9. ahf data directory : /oracle/app/grid/oracle.ahf/data
  10. shutting down tfa : /oracle/app/19.3.0/grid/tfa/host2/tfa_home
  11. copying tfa data files from /oracle/app/19.3.0/grid/tfa/host2/tfa_home
  12. uninstalling tfa : /oracle/app/19.3.0/grid/tfa/host2/tfa_home
  13. extracting ahf to /opt/oracle.ahf
  14. configuring tfa services
  15. copying tfa data files to ahf
  16. discovering nodes and oracle resources
  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. | host2 | running | 393923 | 5000 | 20.4.4.0.0 | 20440020210303102731 |
  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 | /oracle/app/grid/oracle.ahf/data |
  36. | repository | /oracle/app/grid/oracle.ahf/data/repository |
  37. | diag directory | /oracle/app/grid/oracle.ahf/data/host2/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_204400_387451_2021_04_14-10_45_03.log to /oracle/app/grid/oracle.ahf/data/host2/diag/ahf/
  43. [root@host2:/home/oracle/a]#
  44. [oracle@host2-[orcl2]-/home/oracle]$ tfactl version
  45. ahf version: 20.4.4
  46. [root@host2:/home/oracle/a]# tfactl
  47. tfactl> help
  48. usage : /opt/oracle.ahf/tfa/bin/tfactl [options]
  49. commands:diagcollect|collection|analyze|ips|run|start|stop|enable|disable|status|print|access|purge|directory|host|receiver|set|toolstatus|uninstall|diagnosetfa|syncnodes|setupmos|upload|availability|rest|events|search|changes|isa|blackout|rediscover|modifyprofile|refreshconfig|generatecerts|get|version|floodcontrol
  50. for detailed help on each command use:
  51. /opt/oracle.ahf/tfa/bin/tfactl -help
  52. tfactl> status
  53. .--------------------------------------------------------------------------------------------------.
  54. | host | status of tfa | pid | port | version | build id | inventory status |
  55. ----------- --------------- -------- ------ ------------ ---------------------- ------------------
  56. | host2 | running | 393923 | 5000 | 20.4.4.0.0 | 20440020210303102731 | complete |
  57. '----------- --------------- -------- ------ ------------ ---------------------- ------------------'
  58. tfactl> toolstatus
  59. .-------------------------------------------------------------------------.
  60. | tools status - host : host2 |
  61. ---------------------- -------------- -------------- --------------------
  62. | tool type | tool | version | status |
  63. ---------------------- -------------- -------------- --------------------
  64. | development tools | orachk | 20.2.2.0.0 | deployed |
  65. | | oratop | 14.1.2 | deployed |
  66. ---------------------- -------------- -------------- --------------------
  67. | support tools bundle | darda | 2.10.0.r6036 | deployed |
  68. | | oswbb | 8.3.2 | not managed by tfa |
  69. | | prw | 12.1.13.11.4 | not running |
  70. ---------------------- -------------- -------------- --------------------
  71. | tfa utilities | alertsummary | 20.2.2.0.0 | deployed |
  72. | | calog | 20.2.2.0.0 | deployed |
  73. | | dbcheck | 18.3.0.0.0 | deployed |
  74. | | dbglevel | 20.2.2.0.0 | deployed |
  75. | | grep | 20.2.2.0.0 | deployed |
  76. | | history | 20.2.2.0.0 | deployed |
  77. | | ls | 20.2.2.0.0 | deployed |
  78. | | managelogs | 20.2.2.0.0 | deployed |
  79. | | menu | 20.2.2.0.0 | deployed |
  80. | | param | 20.2.2.0.0 | deployed |
  81. | | ps | 20.2.2.0.0 | deployed |
  82. | | pstack | 20.2.2.0.0 | deployed |
  83. | | summary | 20.2.2.0.0 | deployed |
  84. | | tail | 20.2.2.0.0 | deployed |
  85. | | triage | 20.2.2.0.0 | deployed |
  86. | | vi | 20.2.2.0.0 | deployed |
  87. '---------------------- -------------- -------------- --------------------'
  88. note :-
  89. deployed : installed and available - to be configured or run interactively.
  90. not running : configured and available - currently turned off interactively.
  91. running : configured and available.
  92. tfactl>
  93. [oracle@host2-[orcl2]-/home/oracle]$ tfactl diagcollect -srdc dbemon
  94. enter the database name [required for this srdc] : orcl
  95. scripts to be run by this srdc: srdc_aqhc12r1.sql srdc_aqhc11r2.sql srdc_aqhc11r1.sql extract_stack
  96. components included in this srdc: os crs database nochmos
  97. collecting data for local node(s).
  98. collection id : 20210414110837host2
  99. detailed logging at : /oracle/app/grid/oracle.ahf/data/repository/srdc_dbemon_collection_wed_apr_14_11_08_38_cst_2021_node_local/diagcollect_20210414110837_host2.log
  100. 2021/04/14 11:08:41 cst : note : any file or directory name containing the string .com will be renamed to replace .com with dotcom
  101. 2021/04/14 11:08:41 cst : collection name : tfa_srdc_dbemon_wed_apr_14_11_08_38_cst_2021.zip
  102. 2021/04/14 11:08:44 cst : getting list of files satisfying time range [04/13/2021 23:08:41 cst, 04/14/2021 11:08:44 cst]
  103. 2021/04/14 11:08:44 cst : collecting additional diagnostic information...
  104. 2021/04/14 11:08:58 cst : collecting adr incident files...
  105. 2021/04/14 11:10:13 cst : completed collection of additional diagnostic information...
  106. 2021/04/14 11:10:14 cst : completed local collection
  107. .-------------------------------------.
  108. | collection summary |
  109. ----------- ----------- ------ ------
  110. | host | status | size | time |
  111. ----------- ----------- ------ ------
  112. | host2 | completed | 69mb | 93s |
  113. '----------- ----------- ------ ------'
  114. logs are being collected to: /oracle/app/grid/oracle.ahf/data/repository/srdc_dbemon_collection_wed_apr_14_11_08_38_cst_2021_node_local
  115. /oracle/app/grid/oracle.ahf/data/repository/srdc_dbemon_collection_wed_apr_14_11_08_38_cst_2021_node_local/host2.tfa_srdc_dbemon_wed_apr_14_11_08_38_cst_2021.zip
  116. [oracle@host2-[orcl2]-/home/oracle]$
节点1执行安装时会显示节点2已经安装部署了ahf。

收集emon进程信息 ,要用oracle用户执行:
[oracle@host2-[orcl2]-/home/oracle]$ tfactl diagcollect -srdc dbemon
输入数据库名(参数 -database 可以直接出结果)
等了一分半,得到一个69m的zip,上传mos,方便许多。
阅读(1201) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图