跳转至

002.如何禁用TFA?

1.以下是11g禁用tfa的过程

[root@lsq-db-01 ~]#  /oracle/app/11.2.0/grid/bin/tfactl status

.------------------------------------------------------------------------------------------------.
| Host      | Status of TFA | PID  | Port | Version    | Build ID             | Inventory Status |
+-----------+---------------+------+------+------------+----------------------+------------------+
| lsq-db-01 | RUNNING       | 1235 | 5000 | 12.1.2.8.4 | 12128420170203230512 | COMPLETE         |
'-----------+---------------+------+------+------------+----------------------+------------------'
[root@lsq-db-01 ~]#
[root@lsq-db-01 ~]#  /oracle/app/11.2.0/grid/bin/tfactl stop
Stopping TFA from the Command Line
Stopped OSWatcher
TFA is running  - Will wait 5 seconds (up to 3 times)
TFA-00002 : Oracle Trace File Analyzer (TFA) is not running
TFA Stopped Successfully
. . .
Successfully stopped TFA..
[root@lsq-db-01 ~]#
[root@lsq-db-01 ~]#  /oracle/app/11.2.0/grid/bin/tfactl disable
TFA autostart has been disabled ..
[root@lsq-db-01 ~]#

2.以下是19c禁用tfa的过程

环境:

OS:Centos 7
db:19.3.0.0

--检查状态,在两个节点上执行

[root@rac01 rules.d]# /u01/grid/grid_home/19.3.0.0/bin/tfactl status
[root@rac02 rules.d]# /u01/grid/grid_home/19.3.0.0/bin/tfactl status

--关闭tfa

[root@rac01 rules.d]# /u01/grid/grid_home/19.3.0.0/bin/tfactl stop
[root@rac02 rules.d]# /u01/grid/grid_home/19.3.0.0/bin/tfactl stop

--自启动关闭 节点1和节点2上都执行

[root@rac01 rules.d]# /u01/grid/grid_home/19.3.0.0/bin/tfactl disable
[root@rac02 rules.d]# /u01/grid/grid_home/19.3.0.0/bin/tfactl disable