4.7 Managing Oracle Database and Oracle Grid Infrastructure Diagnostic Data
This section enables you to manage Oracle Database and Oracle Grid Infrastructure diagnostic data and disk usage snapshots.
Topics:
- Managing Automatic Diagnostic Repository Log and Trace Files
Use themanagelogs
command to manage Automatic Diagnostic Repository log and trace files. - Managing Disk Usage Snapshots
Usetfactl
commands to manage Oracle Trace File Analyzer disk usage snapshots. - Purging Oracle Trace File Analyzer Logs Automatically
Use thesetfactl
commands to manage log file purge policy for Oracle Trace Analyzer log files.
4.7.1 Managing Automatic Diagnostic Repository Log and Trace Files
Use the managelogs
command to manage Automatic Diagnostic Repository log and trace files.
The -purge
command option removes files managed by Automatic Diagnostic Repository. This command clears files from “ALERT
”, "INCIDENT
", "TRACE
", "CDUMP
", "HM
", "UTSCDMP
", "LOG
" under diagnostic destinations. The -purge
command also provides details about the change in the file system space.
If the diagnostic destinations contain large numbers of files, then the command runs for a while. Check the removal of files in progress from the corresponding directories.
To remove files, you must have operating system privileges over the corresponding diagnostic destinations.
To manage Automatic Diagnostic Repository log and trace files:
4.7.2 Managing Disk Usage Snapshots
Use tfactl
commands to manage Oracle Trace File Analyzer disk usage snapshots.
Oracle Trace File Analyzer automatically monitors disk usage, records snapshots, and stores the snapshots under tfa/repository/suptools/node/managelogs/usage_snapshot/.
By default, the time interval between snapshots is 60 minutes.
To manage disk usage snapshots:
4.7.3 Purging Oracle Trace File Analyzer Logs Automatically
Use these tfactl
commands to manage log file purge policy for Oracle Trace Analyzer log files.
Automatic purging is enabled by default on a Domain Service Cluster (DSC), and disabled by default elsewhere. When automatic purging is enabled, every 60 minutes, Oracle Trace File Analyzer automatically purges logs that are older than 30 days.
To purge Oracle Trace File Analyzer logs automatically: