使用systemctl命令管理 Oracle Trace File Analyzer 和 Oracle ORAchk 守护进程




  • 在Linux服务器上以root用户身份运行systemctl命令。也可以使用tfactl shutdown和tfactl start命令来启动/停止Oracle Trace File Analyzer守护进程。

    systemctl status oracle-tfa.service

    systemctl start oracle-tfa.service

    systemctl stop oracle-tfa.service

    oracle-tfa.service默认是启动的,而oracle-orachkscheduler.service默认是未启动的。要运行status、start或stop oracle-orachkscheduler.service命令,您必须先运行tfactl stopahf和orachk -autostart命令。

    systemctl status oracle-orachkscheduler.service

    systemctl start oracle-orachkscheduler.service

    systemctl stop oracle-orachkscheduler.service

    输出如下:

    [root@rac1 data]# systemctl status oracle-tfa.service
    ● oracle-tfa.service - Oracle Trace File Analyzer
    Loaded: loaded (/etc/systemd/system/oracle-tfa.service; enabled; vendor preset: disabled)
    Active: active (running) since Wed 2023-07-26 18:59:30 CST; 2h 11min ago
    Main PID: 19360 (init.tfa)
    Tasks: 91
    CGroup: /system.slice/oracle-tfa.service
    ├─12455 /bin/sleep 30
    ├─19360 /bin/sh /etc/init.d/init.tfa run >/dev/null 2>&1 </dev/null
    ├─19621 /opt/oracle.ahf/jre/bin/java -server -Xms32m -Xmx64m -Djava.awt.headless=true -Ddisable.checkForUpdate=true -XX:Hea...
    └─19966 /opt/oracle.ahf/jre/bin/java -server -Xms64m -Xmx128m -XX:HeapDumpPath=/u01/app/grid/oracle.ahf/data/rac1/diag/tfa ...

    Jul 26 21:01:43 rac1.sandata.com.cn su[5967]: (to grid) root on none
    Jul 26 21:01:44 rac1.sandata.com.cn su[6134]: (to oracle) root on none
    Jul 26 21:01:44 rac1.sandata.com.cn su[6146]: (to oracle) root on none
    Jul 26 21:08:10 rac1.sandata.com.cn su[10005]: (to root) root on none
    Jul 26 21:08:10 rac1.sandata.com.cn su[10024]: (to grid) root on none
    Jul 26 21:08:10 rac1.sandata.com.cn su[10036]: (to grid) root on none
    Jul 26 21:08:12 rac1.sandata.com.cn su[10428]: (to oracle) root on none
    Jul 26 21:08:12 rac1.sandata.com.cn su[10444]: (to oracle) root on none
    Jul 26 21:08:12 rac1.sandata.com.cn su[10455]: (to oracle) root on none
    Jul 26 21:08:17 rac1.sandata.com.cn su[10702]: (to oracle) root on none

     

    Speak Your Mind

    *

    京ICP备14059771号-2