This section enables you to manage Oracle Database and Oracle Grid Infrastructure diagnostic data and disk usage snapshots.
managelogs command to manage Automatic Diagnostic Repository log and trace files.
-purge command removes files managed by Automatic Diagnostic Repository (Files are cleared from “
LOG" under diagnostic destinations) and provides details about the change in the file system space.
For diagnostic destinations where there are large numbers of files the command might take a while. Check the removal in progress from corresponding directories.
You must have operating system privilege over corresponding diagnostic destinations to remove the files.
To manage Automatic Diagnostic Repository log and trace files:
$ tfactl managelogs -older nm|h|d Files from past 'n' [d]ays or 'n' [h]ours or 'n' [m]inutes
$ tfactl managelogs -purge -older 30d -dryrun $ tfactl managelogs -purge -older 30d
purgecommand with the
$ tfactl managelogs -purge -older 30d -dryrun
$ tfactl managelogs -purge -older 30d $ tfactl managelogs -purge -older 30d –gi $ tfactl managelogs -purge -older 30d -database
$ tfactl managelogs -show usage $ tfactl managelogs -show usage –gi $ tfactl managelogs -show usage -database
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
By default, the time interval between snapshots is 60 minutes.
To manage disk usage snapshots:
$ tfactl set diskUsageMonInterval=minutes
minutes is the number of minutes between snapshots.
$ tfactl set diskUsageMon=ON|OFF
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, Oracle Trace File Analyzer runs an automatic purge every 60 minutes of logs that are older than 30 days.
To purge Oracle Trace File Analyzer logs automatically:
$ tfactl set manageLogsAutoPurge=ON|OFF
$ tfactl set manageLogsAutoPurgePolicyAge=nd|h
$ tfactl set manageLogsAutoPurgeInterval=minutes