14.9 Performing Custom Collections
Use the custom collection options to change the diagnostic collections from the default.
- Adjusting the Diagnostic Data Collection Period
Oracle Trace File Analyzer trims and collects any important logs updated in the past one hour. - Collecting for Specific Events
Perform default diagnostic collection or choose an event from the list of recent incidents to collect diagnostic data for that event alone. - Excluding Large Files from Diagnostic Collection
Prevent excessively large files from delaying or stalling collections. - Collecting from Specific Nodes
- Collecting from Specific Components
- Collecting from Specific Directories
- Changing the Collection Name
- Preventing Copying Zip Files and Trimming Files
- Performing Silent Collection
- Collecting Core Files
- Collecting Incident Packaging Service (IPS) Packages
Incident Packaging Service packages details of problems stored by Oracle Database in ADR for later diagnosis.
Parent topic: Using On-Demand Diagnostic Collections
14.9.1 Adjusting the Diagnostic Data Collection Period
Oracle Trace File Analyzer trims and collects any important logs updated in the past one hour.
If you know that you only want logs for a smaller window, then you can cut this collection period. Cutting the collection period helps you make collections as small and quick as possible.
There are four different ways you can specify the period for collection:
Table 14-7 Ways to Specify the Collection Period
Command | Description |
---|---|
|
Collects since the previous n hours or days.
|
|
Collects from the date and optionally time specified. Valid date and time formats:
|
|
Collects between the date and optionally time specified. Valid date and time formats:
|
|
Collects for the specified date. Valid date formats:
|
Parent topic: Performing Custom Collections
14.9.2 Collecting for Specific Events
Perform default diagnostic collection or choose an event from the list of recent incidents to collect diagnostic data for that event alone.
Choose to run:
- A diagnostic collection for a specific recent event
- A default time range diagnostic collection
To collect for specific events:
Parent topic: Performing Custom Collections
14.9.3 Excluding Large Files from Diagnostic Collection
Prevent excessively large files from delaying or stalling collections.
Run the tfactl set maxfilecollectionsize
for the diagnostic collection command to consider only the last 200 KB for the files that are larger than the size specified.
Parent topic: Performing Custom Collections
14.9.4 Collecting from Specific Nodes
To collect from specific nodes:
Related Topics
Parent topic: Performing Custom Collections
14.9.5 Collecting from Specific Components
To collect from specific components:
Related Topics
Parent topic: Performing Custom Collections
14.9.6 Collecting from Specific Directories
Oracle Trace File Analyzer discovers all Oracle diagnostics and collects relevant files based on the type and last time updated.
If you want to collect other files, then you can specify extra directories. Oracle Trace File Analyzer collects only the files updated in the relevant time range (one hour by default).
You can configure collection of all files irrespective of the time last updated. Configure on a directory by directory basis using the -collectall
option.
To collect from specific directories:
Related Topics
Parent topic: Performing Custom Collections
14.9.7 Changing the Collection Name
Oracle Trace File Analyzer zips collections and puts the zip files in the repository directory using the following naming format:
repository/collection_date_time/node_all/node.tfa_date_time.zip
You must only change the name of the zipped files using the following options. Manually changing the file name prevents you from using collections with various Oracle Support self-service tools.
To change the collection name:
Related Topics
Parent topic: Performing Custom Collections
14.9.8 Preventing Copying Zip Files and Trimming Files
By default, Oracle Trace File Analyzer Collector:
-
Copies back all zip files from remote notes to the initiating node
-
Trims files around the relevant time
To prevent copying zip files and trimming files:
Related Topics
Parent topic: Performing Custom Collections
14.9.11 Collecting Incident Packaging Service (IPS) Packages
Incident Packaging Service packages details of problems stored by Oracle Database in ADR for later diagnosis.
Syntax
Oracle Trace File Analyzer runs IPS to query and collect these packages.
tfactl ips option
Table 14-9 tfactl ips Command Parameters
Command | Description |
---|---|
|
Runs the IPS. |
|
Shows all IPS incidents. |
|
Shows all IPS problems. |
|
Shows all IPS Packages. |
|
Shows all available |
|
Performs an IPS collection following prompts. You can use all the standard |
|
Performs an IPS collection in silent mode. |
|
Collects ADR details about a specific incident id. |
|
Collect ADR details about a specific problem id. |
You can change the contents of the IPS package. Use the following options:
-
Start the collection.
-
Suspend the collection using the
-manageips
option.For example:
$ tfactl diagcollect -ips -incident incident_id -manageips -node local
-
Find the suspended collection using the
print suspendedips
option.For example:
$ tfactl print suspendedips
-
Manipulate the package.
-
Resume the collection using the
-resumeips
option.For example:
$ tfactl diagcollect -resumeips collection_id
Related Topics
Parent topic: Performing Custom Collections