@Generated(value="OracleSDKGenerator", comments="API Version: 20201101") public interface SqlTuningAsync extends AutoCloseable
Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL Databases, and External Database Systems. For more information, see Database Management.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<CloneSqlTuningTaskResponse> cloneSqlTuningTask(CloneSqlTuningTaskRequest request, AsyncHandler<CloneSqlTuningTaskRequest,CloneSqlTuningTaskResponse> handler)
Clones and runs a SQL tuning task in the database.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateSqlTuningSetResponse> createSqlTuningSet(CreateSqlTuningSetRequest request, AsyncHandler<CreateSqlTuningSetRequest,CreateSqlTuningSetResponse> handler)
Creates an empty Sql tuning set within the Managed Database specified by managedDatabaseId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DropSqlTuningSetResponse> dropSqlTuningSet(DropSqlTuningSetRequest request, AsyncHandler<DropSqlTuningSetRequest,DropSqlTuningSetResponse> handler)
Drops the Sql tuning set specified by sqlTuningSet within the Managed Database specified by managedDatabaseId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DropSqlTuningTaskResponse> dropSqlTuningTask(DropSqlTuningTaskRequest request, AsyncHandler<DropSqlTuningTaskRequest,DropSqlTuningTaskResponse> handler)
Drops a SQL tuning task and its related results from the database.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DropSqlsInSqlTuningSetResponse> dropSqlsInSqlTuningSet(DropSqlsInSqlTuningSetRequest request, AsyncHandler<DropSqlsInSqlTuningSetRequest,DropSqlsInSqlTuningSetResponse> handler)
Deletes the Sqls in the specified Sql tuning set that matches the filter criteria provided in the basicFilter. If basicFilter criteria is not provided, then entire Sqls in the Sql tuning set is deleted.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<FetchSqlTuningSetResponse> fetchSqlTuningSet(FetchSqlTuningSetRequest request, AsyncHandler<FetchSqlTuningSetRequest,FetchSqlTuningSetResponse> handler)
Fetch the details of Sql statements in the Sql tuning set specified by name, owner and optional filter parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetExecutionPlanStatsComparisionResponse> getExecutionPlanStatsComparision(GetExecutionPlanStatsComparisionRequest request, AsyncHandler<GetExecutionPlanStatsComparisionRequest,GetExecutionPlanStatsComparisionResponse> handler)
Retrieves a comparison of the existing SQL execution plan and a new plan. A SQL tuning task may suggest a new execution plan for a SQL, and this API retrieves the comparison report of the statistics of the two plans.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetSqlExecutionPlanResponse> getSqlExecutionPlan(GetSqlExecutionPlanRequest request, AsyncHandler<GetSqlExecutionPlanRequest,GetSqlExecutionPlanResponse> handler)
Retrieves a SQL execution plan for the SQL being tuned.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetSqlTuningAdvisorTaskSummaryReportResponse> getSqlTuningAdvisorTaskSummaryReport(GetSqlTuningAdvisorTaskSummaryReportRequest request, AsyncHandler<GetSqlTuningAdvisorTaskSummaryReportRequest,GetSqlTuningAdvisorTaskSummaryReportResponse> handler)
Gets the summary report for the specified SQL Tuning Advisor task.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListSqlTuningAdvisorTaskFindingsResponse> listSqlTuningAdvisorTaskFindings(ListSqlTuningAdvisorTaskFindingsRequest request, AsyncHandler<ListSqlTuningAdvisorTaskFindingsRequest,ListSqlTuningAdvisorTaskFindingsResponse> handler)
Gets an array of the details of the findings that match specific filters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListSqlTuningAdvisorTaskRecommendationsResponse> listSqlTuningAdvisorTaskRecommendations(ListSqlTuningAdvisorTaskRecommendationsRequest request, AsyncHandler<ListSqlTuningAdvisorTaskRecommendationsRequest,ListSqlTuningAdvisorTaskRecommendationsResponse> handler)
Gets the findings and possible actions for a given object in a SQL tuning task. The task ID and object ID are used to retrieve the findings and recommendations.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListSqlTuningAdvisorTasksResponse> listSqlTuningAdvisorTasks(ListSqlTuningAdvisorTasksRequest request, AsyncHandler<ListSqlTuningAdvisorTasksRequest,ListSqlTuningAdvisorTasksResponse> handler)
Lists the SQL Tuning Advisor tasks for the specified Managed Database.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListSqlTuningSetsResponse> listSqlTuningSets(ListSqlTuningSetsRequest request, AsyncHandler<ListSqlTuningSetsRequest,ListSqlTuningSetsResponse> handler)
Lists the SQL tuning sets for the specified Managed Database.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<LoadSqlTuningSetResponse> loadSqlTuningSet(LoadSqlTuningSetRequest request, AsyncHandler<LoadSqlTuningSetRequest,LoadSqlTuningSetResponse> handler)
Load Sql statements into the Sql tuning set specified by name and optional filter parameters within the Managed Database specified by managedDatabaseId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SaveSqlTuningSetAsResponse> saveSqlTuningSetAs(SaveSqlTuningSetAsRequest request, AsyncHandler<SaveSqlTuningSetAsRequest,SaveSqlTuningSetAsResponse> handler)
Saves the specified list of Sqls statements into another new Sql tuning set or loads into an existing Sql tuning set’.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<StartSqlTuningTaskResponse> startSqlTuningTask(StartSqlTuningTaskRequest request, AsyncHandler<StartSqlTuningTaskRequest,StartSqlTuningTaskResponse> handler)
Starts a SQL tuning task for a given set of SQL statements from the active session history top SQL statements.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ValidateBasicFilterResponse> validateBasicFilter(ValidateBasicFilterRequest request, AsyncHandler<ValidateBasicFilterRequest,ValidateBasicFilterResponse> handler)
Executes a SQL query to check whether user entered basic filter criteria is valid or not.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.