Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3567192
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

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,方便许多。
阅读(1314) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~