1.12 Manage Oracle Trace File Analyzer and Oracle ORAchk Daemons Using systemctl Commands
Run the systemctl
commands as root
user on
an Oracle Linux server. You can also start/stop Oracle Trace File
Analyzer daemon using the tfactl shutdown
and
tfactl start
commands.
systemctl status oracle-tfa.service
systemctl start oracle-tfa.service
systemctl stop oracle-tfa.service
systemctl status oracle-orachkscheduler.service
systemctl start oracle-orachkscheduler.service
systemctl stop oracle-orachkscheduler.service
oracle-tfa.service
is started by default and
oracle-orachkscheduler.service
is
not started by default. To run the
status
, start
,
or stop
oracle-orachkscheduler.service
commands, you must run the tfactl
stopahf
and orachk
-autostart
commands first.
# 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: inactive (dead) since Fri 2021-01-29 18:50:51 PST; 24s ago
Process: 79935 ExecStart=/etc/init.d/init.tfa run >/dev/null 2>&1 </dev/null (code=killed, signal=TERM)
Main PID: 79935 (code=killed, signal=TERM)
Jan 29 15:47:46 den02mwa systemd[1]: Started Oracle Trace File Analyzer.
Jan 29 15:47:47 den02mwa init.tfa[79935]: Starting TFA..
Jan 29 15:47:48 den02mwa init.tfa[79935]: Starting TFA out of init, Should be running in 10 seconds
Jan 29 15:47:48 den02mwa init.tfa[79935]: Successfully updated jvmXmx to 128 in TFA...
Jan 29 15:47:56 den02mwa init.tfa[79935]: OSWatcher is already deployed at /opt/oracle.ahf/tfa/ext/oswbb
Jan 29 15:47:56 den02mwa init.tfa[79935]: Cannot find valid Non root user to run OSWatcher
Jan 29 18:50:41 den02mwa systemd[1]: Stopping Oracle Trace File Analyzer...
Jan 29 18:50:41 den02mwa init.tfa[79935]: Telemetry not enabled - Not Starting Adapter
Jan 29 18:50:51 den02mwa systemd[1]: Stopped Oracle Trace File Analyzer.
# systemctl status oracle-orachkscheduler.service
oracle-orachkscheduler.service - Oracle orachk scheduler initsetup
Loaded: loaded (/etc/systemd/system/oracle-orachkscheduler.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-01-29 18:53:17 PST; 21s ago
Main PID: 31331 (init.orachksche)
CGroup: /system.slice/oracle-orachkscheduler.service
├─31331 /bin/sh /etc/init.d/init.orachkscheduler run >/dev/null 2>&1 </dev/null
└─31799 /bin/sleep 30
Jan 29 18:53:17 den02mwa systemd[1]: Started Oracle orachk scheduler initsetup.
Jan 29 18:53:18 den02mwa su[31369]: (to root) root on none