9.5.2 ahf analysis
Use the ahf analysis
command to generate AHF Insights and
AHF Balance reports.
AHF 24.11
AHF Balance now allows limiting the number of databases included in performance tuning recommendations. This makes it easier to implement gradual configuration changes to enhance performance without overwhelming change management processes.
AI-Driven Tuning with AHF Balance
AHF Balance uses AI to provide tuning recommendations for database CPU_COUNT
. Database Administrators (DBAs), Cluster Administrators, and Fleet Administrators can leverage these recommendations to optimize database performance while maximizing hardware utilization.
Enhanced Flexibility for Tuning Recommendations
Previously, AHF Balance considered all databases within a cluster as candidates for CPU_COUNT
adjustments. This often led to recommendations for modifying CPU_COUNT
on 50 or more databases, posing challenges for implementing such extensive changes simultaneously.
With the new --limit-db-changes
option, AHF Balance enables incremental performance improvement by capping the number of databases included in tuning recommendations. This allows administrators to make changes in manageable stages through successive iterations of tuning.
Note:
Before running theahf analysis
command with the --type impact
option, ensure that you first run the configuration command: ahf configuration set --type impact --user-name USER_NAME --connect-string CONNECT-STRING
This step is necessary to set up the required connection details before performing the analysis.
- Fleet Analysis:
To perform an analysis for a fleet and limit the number of database changes across clusters, use:
ahf analysis create --type impact --scope fleet --name <fleet-name> --limit-db-changes <positive-integer-number-of-databases>
- Cluster Analysis:
To perform an analysis for a specific cluster and limit the number of database changes, use:
ahf analysis create --type impact --scope cluster --name <cluster-name> --limit-db-changes <positive-integer-number-of-databases>
- Database Analysis within a Cluster:
To perform an analysis for a specific database within a cluster, use:
ahf analysis create --type impact --scope database --name <db-name> --cluster <cluster-name> --limit-db-changes <positive-integer-number-of-databases>
By limiting database changes, AHF Balance provides a more controlled and efficient approach to performance tuning, ensuring smoother implementation and improved results.
AHF 23.8
Starting in AHF 23.8, you will be able to upload AHF Insights report automatically if Object Store is configured as part of AHF. Uploading AHF Insights reports helps Oracle Cloud Operations to identify, investigate, track, and resolve system health issues and divergences in best practice configurations quickly and effectively.
Oracle Autonomous Database on Dedicated Exadata Infrastructure and Oracle SaaS
ahfctl setupload -name oss -type https -user <user> -url <object_store> -password
ahf analysis create --type insights
.ahf analysis create
ahf analysis create [-h] [--type {insights|impact}] [[--last n{m|h} [--refresh] | --for DATETIME | --from DATETIME --to DATETIME] [--tag TAGNAME] | [--scope SCOPE --name NAME --cluster CLUSTER --clusters CLUSTER_LIST]][--output-file PATH] [--to-json]
Syntax: AHF Balance
ahf analysis create [-h] --type impact --scope [fleet|cluster|database] [--cluster CLUSTER_NAME] [--clusters space-delimited list of clusters
] [--em-group] --name NAME
Parameters
Table 9-127 ahf analysis create --type impact Command Parameters
Parameter | Description |
---|---|
|
Show this help and exit. |
|
Specify the type of report to generate. |
|
Specify to generate AHF Balance reports - Fleet Report, Cluster Report, and Database Report Specify the The |
|
Specify to create output file in the specified location. |
|
Specify a space-delimited list of clusters to include in the fleet scope. |
|
Specify the name of the fleet, EM Group, cluster, or database to report on. Note: The name of the fleet can be anything of your choosing, such as 'MyFleet'. It is only used to label the report. |
|
Specify the EM group name. Note: This option is mutually exclusive with the--clusters option and must be used with the --scope fleet option.
For example:
|
|
Specify the Oracle Enterprise Manager Repository user name. Note: Not required if AHF Balance has been configured. For more information, see ahf configuration. |
|
Specify the connect string for the Oracle Enterprise Manager Repository. Note: Not required if AHF Balance has been configured. For more information, see ahf configuration. |
|
Limits the number of database changes recommended. |
Syntax: AHF Insights
ahf analysis create [-h] --type insights [--last n{m|h} | --for DATETIME | --from DATETIME --to DATETIME] [--refresh] [--tag TAGNAME
]
Parameters
Table 9-128 ahf analysis create --type insights Command Parameters
Parameter | Description |
---|---|
|
Show this help and exit. |
|
Specify the type of report to generate. |
|
Specify the
|
|
Specify the Supported time
formats:
|
|
Specify the Supported time
formats:
Time difference between from and to time should not be more than 4 hours. |
|
Provides fresh data from AHF Insights sources. Specify |
|
Specify to include data from cell into AHF Insights sources. |
|
Specify to collect the files into the TAGNAME directory inside the repository. |
Syntax: ahf analysis explore
ahf analysis explore [-h] [--with scope] [--from-file FILE]
Note:
Starting with Oracle Database 23ai, the ahfanalysis explore --with scope
command is desupported. For more information on GIMR, refer to Analyze Issue Root Cause.
Parameters
Table 9-129 ahf analysis explore Command Parameters
Parameter | Description |
---|---|
|
Show this help and exit. |
|
Specify to read from a file. If you do not specify the file extension, then AHF
Scope assumes |
Example 9-125 AHF Insights Analysis Usage Examples
Specify [--last | --for | --from --to]
to create an analysis for a
given period of time. Maximum time interval allowed is 4 hrs.
Specify [--refresh]
alone or together with [--last]
to provide fresh data from AHF Insights sources.
- Create analysis report from the data collected in the last 3
hours:
ahf analysis create --type insights --last 3h
- Create analysis for a 2-hour period centered at the specified
timestamp:
ahf analysis create --type insights --for 2022-10-10T14:00:00
- Create analysis for a given time
range:
ahf analysis create --type insights --from 2022-10-10T14:00:00 --to 2022-10-10T15:30:00
- Create analysis specifying a
timezone:
ahf analysis create --type insights --from 2022-10-10T14:00:00 --to 2022-10-11T13:30:00
- Create analysis with most recent
data:
ahf analysis create --type insights --refresh
- Create analysis with a tag:
ahf analysis create --type insights --tag my_tag
Example 9-126 AHF Balance Usage Examples
Specify [--scope]
and [--name]
options to create an
impact analysis.
The [--cluster]
option is required for database impact analysis.
- Create analysis for a fleet (all
clusters):
ahf analysis create --type impact --scope fleet --name fleet1
- Create analysis for a fleet (cluster
list):
ahf analysis create --type impact --scope fleet --name fleet1 --clusters clu1 clu2 clu3
- Create analysis for a
cluster:
ahf analysis create --type impact --scope cluster --name cluster1
- Create analysis for a
database:
ahf analysis create --type impact --scope database --cluster cluster1 --name database1
- Create analysis specifying the output directory:
ahf analysis create --type impact --scope fleet --name fleet1 --output-file /custom_path/custom_name.html
- Create analysis specifying EM repository user name and password:
ahf analysis create --type impact --scope fleet --name fleet1 --user-name oracle --connect-string <cs>
Parent topic: Running Unified AHF CLI Administration Commands