@Generated(value="OracleSDKGenerator", comments="API Version: 20201101") public class DbManagementAsyncClient extends Object implements DbManagementAsync
Async client implementation for DbManagement service.
There are two ways to use async client:
InputStream
, like
getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else,
because the stream will be closed right after the AsyncHandler is invoked. Modifier and Type | Class and Description |
---|---|
static class |
DbManagementAsyncClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for DbManagement.
|
Constructor and Description |
---|
DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration.
|
DbManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
DbManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
DbManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
public static final Service SERVICE
Service instance for DbManagement.
public DbManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider
- The authentication details provider, required.public DbManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.public DbManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.public DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.additionalClientConfigurators
- Additional client configurators to be run after the primary configurator.public DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.additionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)public DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories
- The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)public DbManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories
- The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)restClientFactoryBuilder
- the builder for the RestClientFactory
public static DbManagementAsyncClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
DbManagementAsync
Sets the endpoint to call (ex, https://www.example.com).
setEndpoint
in interface DbManagementAsync
endpoint
- The endpoint of the serice.public String getEndpoint()
DbManagementAsync
Gets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint
in interface DbManagementAsync
public void setRegion(Region region)
DbManagementAsync
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.
setRegion
in interface DbManagementAsync
region
- The region of the service.public void setRegion(String regionId)
DbManagementAsync
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
.
setRegion
in interface DbManagementAsync
regionId
- The public region ID.public void close()
close
in interface AutoCloseable
public Future<AddDataFilesResponse> addDataFiles(AddDataFilesRequest request, AsyncHandler<AddDataFilesRequest,AddDataFilesResponse> handler)
DbManagementAsync
Adds data files or temp files to the tablespace.
addDataFiles
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddManagedDatabaseToManagedDatabaseGroupResponse> addManagedDatabaseToManagedDatabaseGroup(AddManagedDatabaseToManagedDatabaseGroupRequest request, AsyncHandler<AddManagedDatabaseToManagedDatabaseGroupRequest,AddManagedDatabaseToManagedDatabaseGroupResponse> handler)
DbManagementAsync
Adds a Managed Database to a specific Managed Database Group. After the database is added, it will be included in the management activities performed on the Managed Database Group.
addManagedDatabaseToManagedDatabaseGroup
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<AddmTasksResponse> addmTasks(AddmTasksRequest request, AsyncHandler<AddmTasksRequest,AddmTasksResponse> handler)
DbManagementAsync
Lists the metadata for each ADDM task who’s end snapshot time falls within the provided start and end time. Details include the name of the ADDM task, description, user, status and creation date time.
addmTasks
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeDatabaseParametersResponse> changeDatabaseParameters(ChangeDatabaseParametersRequest request, AsyncHandler<ChangeDatabaseParametersRequest,ChangeDatabaseParametersResponse> handler)
DbManagementAsync
Changes database parameter values. There are two kinds of database parameters:
- Dynamic parameters: They can be changed for the current Oracle Database instance. The changes take effect immediately. - Static parameters: They cannot be changed for the current instance. You must change these parameters and then restart the database before changes take effect.
Note:** If the instance is started using a text initialization parameter file, the parameter changes are applicable only for the current instance. You must update them manually to be passed to a future instance.
changeDatabaseParameters
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeDbManagementPrivateEndpointCompartmentResponse> changeDbManagementPrivateEndpointCompartment(ChangeDbManagementPrivateEndpointCompartmentRequest request, AsyncHandler<ChangeDbManagementPrivateEndpointCompartmentRequest,ChangeDbManagementPrivateEndpointCompartmentResponse> handler)
DbManagementAsync
Moves the Database Management private endpoint and its dependent resources to the specified compartment.
changeDbManagementPrivateEndpointCompartment
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeJobCompartmentResponse> changeJobCompartment(ChangeJobCompartmentRequest request, AsyncHandler<ChangeJobCompartmentRequest,ChangeJobCompartmentResponse> handler)
DbManagementAsync
Moves a job.
changeJobCompartment
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeManagedDatabaseGroupCompartmentResponse> changeManagedDatabaseGroupCompartment(ChangeManagedDatabaseGroupCompartmentRequest request, AsyncHandler<ChangeManagedDatabaseGroupCompartmentRequest,ChangeManagedDatabaseGroupCompartmentResponse> handler)
DbManagementAsync
Moves a Managed Database Group to a different compartment. The destination compartment must not have a Managed Database Group with the same name.
changeManagedDatabaseGroupCompartment
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDbManagementPrivateEndpointResponse> createDbManagementPrivateEndpoint(CreateDbManagementPrivateEndpointRequest request, AsyncHandler<CreateDbManagementPrivateEndpointRequest,CreateDbManagementPrivateEndpointResponse> handler)
DbManagementAsync
Creates a new Database Management private endpoint.
createDbManagementPrivateEndpoint
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateJobResponse> createJob(CreateJobRequest request, AsyncHandler<CreateJobRequest,CreateJobResponse> handler)
DbManagementAsync
Creates a job to be executed on a Managed Database or Managed Database Group. Only one of the parameters, managedDatabaseId or managedDatabaseGroupId should be provided as input in CreateJobDetails resource in request body.
createJob
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateManagedDatabaseGroupResponse> createManagedDatabaseGroup(CreateManagedDatabaseGroupRequest request, AsyncHandler<CreateManagedDatabaseGroupRequest,CreateManagedDatabaseGroupResponse> handler)
DbManagementAsync
Creates a Managed Database Group. The group does not contain any Managed Databases when it is created, and they must be added later.
createManagedDatabaseGroup
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateTablespaceResponse> createTablespace(CreateTablespaceRequest request, AsyncHandler<CreateTablespaceRequest,CreateTablespaceResponse> handler)
DbManagementAsync
Creates a tablespace within the Managed Database specified by managedDatabaseId.
createTablespace
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteDbManagementPrivateEndpointResponse> deleteDbManagementPrivateEndpoint(DeleteDbManagementPrivateEndpointRequest request, AsyncHandler<DeleteDbManagementPrivateEndpointRequest,DeleteDbManagementPrivateEndpointResponse> handler)
DbManagementAsync
Deletes a specific Database Management private endpoint.
deleteDbManagementPrivateEndpoint
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteJobResponse> deleteJob(DeleteJobRequest request, AsyncHandler<DeleteJobRequest,DeleteJobResponse> handler)
DbManagementAsync
Deletes the job specified by jobId.
deleteJob
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteManagedDatabaseGroupResponse> deleteManagedDatabaseGroup(DeleteManagedDatabaseGroupRequest request, AsyncHandler<DeleteManagedDatabaseGroupRequest,DeleteManagedDatabaseGroupResponse> handler)
DbManagementAsync
Deletes the Managed Database Group specified by managedDatabaseGroupId. If the group contains Managed Databases, then it cannot be deleted.
deleteManagedDatabaseGroup
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DropTablespaceResponse> dropTablespace(DropTablespaceRequest request, AsyncHandler<DropTablespaceRequest,DropTablespaceResponse> handler)
DbManagementAsync
Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
dropTablespace
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GenerateAwrSnapshotResponse> generateAwrSnapshot(GenerateAwrSnapshotRequest request, AsyncHandler<GenerateAwrSnapshotRequest,GenerateAwrSnapshotResponse> handler)
DbManagementAsync
Creates an AWR snapshot for the target database.
generateAwrSnapshot
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetAwrDbReportResponse> getAwrDbReport(GetAwrDbReportRequest request, AsyncHandler<GetAwrDbReportRequest,GetAwrDbReportResponse> handler)
DbManagementAsync
Gets the AWR report for the specific database.
getAwrDbReport
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetAwrDbSqlReportResponse> getAwrDbSqlReport(GetAwrDbSqlReportRequest request, AsyncHandler<GetAwrDbSqlReportRequest,GetAwrDbSqlReportResponse> handler)
DbManagementAsync
Gets the SQL health check report for one SQL of the specific database.
getAwrDbSqlReport
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetClusterCacheMetricResponse> getClusterCacheMetric(GetClusterCacheMetricRequest request, AsyncHandler<GetClusterCacheMetricRequest,GetClusterCacheMetricResponse> handler)
DbManagementAsync
Gets the metrics related to cluster cache for the Oracle Real Application Clusters (Oracle RAC) database specified by managedDatabaseId.
getClusterCacheMetric
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDatabaseFleetHealthMetricsResponse> getDatabaseFleetHealthMetrics(GetDatabaseFleetHealthMetricsRequest request, AsyncHandler<GetDatabaseFleetHealthMetricsRequest,GetDatabaseFleetHealthMetricsResponse> handler)
DbManagementAsync
Gets the health metrics for a fleet of databases in a compartment or in a Managed Database Group. Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be provided to retrieve the health metrics.
getDatabaseFleetHealthMetrics
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDatabaseHomeMetricsResponse> getDatabaseHomeMetrics(GetDatabaseHomeMetricsRequest request, AsyncHandler<GetDatabaseHomeMetricsRequest,GetDatabaseHomeMetricsResponse> handler)
DbManagementAsync
Gets a summary of the activity and resource usage metrics like DB Time, CPU, User I/O, Wait, Storage, and Memory for a Managed Database.
getDatabaseHomeMetrics
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDbManagementPrivateEndpointResponse> getDbManagementPrivateEndpoint(GetDbManagementPrivateEndpointRequest request, AsyncHandler<GetDbManagementPrivateEndpointRequest,GetDbManagementPrivateEndpointResponse> handler)
DbManagementAsync
Gets the details of a specific Database Management private endpoint.
getDbManagementPrivateEndpoint
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetJobResponse> getJob(GetJobRequest request, AsyncHandler<GetJobRequest,GetJobResponse> handler)
DbManagementAsync
Gets the details for the job specified by jobId.
getJob
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetJobExecutionResponse> getJobExecution(GetJobExecutionRequest request, AsyncHandler<GetJobExecutionRequest,GetJobExecutionResponse> handler)
DbManagementAsync
Gets the details for the job execution specified by jobExecutionId.
getJobExecution
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetJobRunResponse> getJobRun(GetJobRunRequest request, AsyncHandler<GetJobRunRequest,GetJobRunResponse> handler)
DbManagementAsync
Gets the details for the job run specified by jobRunId.
getJobRun
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetManagedDatabaseResponse> getManagedDatabase(GetManagedDatabaseRequest request, AsyncHandler<GetManagedDatabaseRequest,GetManagedDatabaseResponse> handler)
DbManagementAsync
Gets the details for the Managed Database specified by managedDatabaseId.
getManagedDatabase
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetManagedDatabaseGroupResponse> getManagedDatabaseGroup(GetManagedDatabaseGroupRequest request, AsyncHandler<GetManagedDatabaseGroupRequest,GetManagedDatabaseGroupResponse> handler)
DbManagementAsync
Gets the details for the Managed Database Group specified by managedDatabaseGroupId.
getManagedDatabaseGroup
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPdbMetricsResponse> getPdbMetrics(GetPdbMetricsRequest request, AsyncHandler<GetPdbMetricsRequest,GetPdbMetricsResponse> handler)
DbManagementAsync
Gets a summary of the resource usage metrics such as CPU, User I/O, and Storage for each PDB within a specific CDB. If comparmentId is specified, then the metrics for each PDB (within the CDB) in the specified compartment are retrieved. If compartmentId is not specified, then the metrics for all the PDBs within the CDB are retrieved.
getPdbMetrics
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetTablespaceResponse> getTablespace(GetTablespaceRequest request, AsyncHandler<GetTablespaceRequest,GetTablespaceResponse> handler)
DbManagementAsync
Gets the details of the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
getTablespace
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetUserResponse> getUser(GetUserRequest request, AsyncHandler<GetUserRequest,GetUserResponse> handler)
DbManagementAsync
Gets the details of the user specified by managedDatabaseId and userName.
getUser
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
DbManagementAsync
Gets the status of the work request with the given Work Request ID
getWorkRequest
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListAsmPropertiesResponse> listAsmProperties(ListAsmPropertiesRequest request, AsyncHandler<ListAsmPropertiesRequest,ListAsmPropertiesResponse> handler)
DbManagementAsync
Gets the list of ASM properties for the specified managedDatabaseId.
listAsmProperties
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListAssociatedDatabasesResponse> listAssociatedDatabases(ListAssociatedDatabasesRequest request, AsyncHandler<ListAssociatedDatabasesRequest,ListAssociatedDatabasesResponse> handler)
DbManagementAsync
Gets the list of databases using a specific Database Management private endpoint.
listAssociatedDatabases
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListAwrDbSnapshotsResponse> listAwrDbSnapshots(ListAwrDbSnapshotsRequest request, AsyncHandler<ListAwrDbSnapshotsRequest,ListAwrDbSnapshotsResponse> handler)
DbManagementAsync
Lists AWR snapshots for the specified database in the AWR.
listAwrDbSnapshots
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListAwrDbsResponse> listAwrDbs(ListAwrDbsRequest request, AsyncHandler<ListAwrDbsRequest,ListAwrDbsResponse> handler)
DbManagementAsync
Gets the list of databases and their snapshot summary details available in the AWR of the specified Managed Database.
listAwrDbs
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListConsumerGroupPrivilegesResponse> listConsumerGroupPrivileges(ListConsumerGroupPrivilegesRequest request, AsyncHandler<ListConsumerGroupPrivilegesRequest,ListConsumerGroupPrivilegesResponse> handler)
DbManagementAsync
Gets the list of consumer group privileges granted to a specific user.
listConsumerGroupPrivileges
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDataAccessContainersResponse> listDataAccessContainers(ListDataAccessContainersRequest request, AsyncHandler<ListDataAccessContainersRequest,ListDataAccessContainersResponse> handler)
DbManagementAsync
Gets the list of containers for a specific user. This is only applicable if ALL_CONTAINERS !=‘Y’.
listDataAccessContainers
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDatabaseParametersResponse> listDatabaseParameters(ListDatabaseParametersRequest request, AsyncHandler<ListDatabaseParametersRequest,ListDatabaseParametersResponse> handler)
DbManagementAsync
Gets the list of database parameters for the specified Managed Database. The parameters are listed in alphabetical order, along with their current values.
listDatabaseParameters
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDbManagementPrivateEndpointsResponse> listDbManagementPrivateEndpoints(ListDbManagementPrivateEndpointsRequest request, AsyncHandler<ListDbManagementPrivateEndpointsRequest,ListDbManagementPrivateEndpointsResponse> handler)
DbManagementAsync
Gets a list of Database Management private endpoints.
listDbManagementPrivateEndpoints
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListJobExecutionsResponse> listJobExecutions(ListJobExecutionsRequest request, AsyncHandler<ListJobExecutionsRequest,ListJobExecutionsResponse> handler)
DbManagementAsync
Gets the job execution for a specific ID or the list of job executions for a job, job run, Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, jobId, jobRunId, managedDatabaseId or managedDatabaseGroupId should be provided. If none of these parameters is provided, all the job executions in the compartment are listed. Job executions can also be filtered based on the name and status parameters.
listJobExecutions
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListJobRunsResponse> listJobRuns(ListJobRunsRequest request, AsyncHandler<ListJobRunsRequest,ListJobRunsResponse> handler)
DbManagementAsync
Gets the job run for a specific ID or the list of job runs for a job, Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId, or managedDatabaseGroupId should be provided. If none of these parameters is provided, all the job runs in the compartment are listed. Job runs can also be filtered based on name and runStatus parameters.
listJobRuns
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListJobsResponse> listJobs(ListJobsRequest request, AsyncHandler<ListJobsRequest,ListJobsResponse> handler)
DbManagementAsync
Gets the job for a specific ID or the list of jobs for a Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, managedDatabaseId or managedDatabaseGroupId, should be provided. If none of these parameters is provided, all the jobs in the compartment are listed. Jobs can also be filtered based on the name and lifecycleState parameters.
listJobs
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListManagedDatabaseGroupsResponse> listManagedDatabaseGroups(ListManagedDatabaseGroupsRequest request, AsyncHandler<ListManagedDatabaseGroupsRequest,ListManagedDatabaseGroupsResponse> handler)
DbManagementAsync
Gets the Managed Database Group for a specific ID or the list of Managed Database Groups in a specific compartment. Managed Database Groups can also be filtered based on the name parameter. Only one of the parameters, ID or name should be provided. If none of these parameters is provided, all the Managed Database Groups in the compartment are listed.
listManagedDatabaseGroups
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListManagedDatabasesResponse> listManagedDatabases(ListManagedDatabasesRequest request, AsyncHandler<ListManagedDatabasesRequest,ListManagedDatabasesResponse> handler)
DbManagementAsync
Gets the Managed Database for a specific ID or the list of Managed Databases in a specific compartment.
Managed Databases can be filtered based on the name parameter. Only one of the parameters, ID or name
should be provided. If neither of these parameters is provided, all the Managed Databases in the compartment
are listed. Managed Databases can also be filtered based on the deployment type and management option.
If the deployment type is not specified or if it is ONPREMISE
, then the management option is not
considered and Managed Databases with ADVANCED
management option are listed.
listManagedDatabases
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListObjectPrivilegesResponse> listObjectPrivileges(ListObjectPrivilegesRequest request, AsyncHandler<ListObjectPrivilegesRequest,ListObjectPrivilegesResponse> handler)
DbManagementAsync
Gets the list of object privileges granted to a specific user.
listObjectPrivileges
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListProxiedForUsersResponse> listProxiedForUsers(ListProxiedForUsersRequest request, AsyncHandler<ListProxiedForUsersRequest,ListProxiedForUsersResponse> handler)
DbManagementAsync
Gets the list of users on whose behalf the current user acts as proxy.
listProxiedForUsers
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListProxyUsersResponse> listProxyUsers(ListProxyUsersRequest request, AsyncHandler<ListProxyUsersRequest,ListProxyUsersResponse> handler)
DbManagementAsync
Gets the list of proxy users for the current user.
listProxyUsers
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListRolesResponse> listRoles(ListRolesRequest request, AsyncHandler<ListRolesRequest,ListRolesResponse> handler)
DbManagementAsync
Gets the list of roles granted to a specific user.
listRoles
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListSystemPrivilegesResponse> listSystemPrivileges(ListSystemPrivilegesRequest request, AsyncHandler<ListSystemPrivilegesRequest,ListSystemPrivilegesResponse> handler)
DbManagementAsync
Gets the list of system privileges granted to a specific user.
listSystemPrivileges
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListTablespacesResponse> listTablespaces(ListTablespacesRequest request, AsyncHandler<ListTablespacesRequest,ListTablespacesResponse> handler)
DbManagementAsync
Gets the list of tablespaces for the specified managedDatabaseId.
listTablespaces
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListUsersResponse> listUsers(ListUsersRequest request, AsyncHandler<ListUsersRequest,ListUsersResponse> handler)
DbManagementAsync
Gets the list of users for the specified managedDatabaseId.
listUsers
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
DbManagementAsync
Returns a paginated list of errors for a given work request.
listWorkRequestErrors
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
DbManagementAsync
Returns a paginated list of logs for a given work request.
listWorkRequestLogs
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
DbManagementAsync
The list of work requests in a specific compartment was retrieved successfully.
listWorkRequests
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveDataFileResponse> removeDataFile(RemoveDataFileRequest request, AsyncHandler<RemoveDataFileRequest,RemoveDataFileResponse> handler)
DbManagementAsync
Removes a data file or temp file from the tablespace.
removeDataFile
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RemoveManagedDatabaseFromManagedDatabaseGroupResponse> removeManagedDatabaseFromManagedDatabaseGroup(RemoveManagedDatabaseFromManagedDatabaseGroupRequest request, AsyncHandler<RemoveManagedDatabaseFromManagedDatabaseGroupRequest,RemoveManagedDatabaseFromManagedDatabaseGroupResponse> handler)
DbManagementAsync
Removes a Managed Database from a Managed Database Group. Any management activities that are currently running on this database will continue to run to completion. However, any activities scheduled to run in the future will not be performed on this database.
removeManagedDatabaseFromManagedDatabaseGroup
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ResetDatabaseParametersResponse> resetDatabaseParameters(ResetDatabaseParametersRequest request, AsyncHandler<ResetDatabaseParametersRequest,ResetDatabaseParametersResponse> handler)
DbManagementAsync
Resets database parameter values to their default or startup values.
resetDatabaseParameters
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ResizeDataFileResponse> resizeDataFile(ResizeDataFileRequest request, AsyncHandler<ResizeDataFileRequest,ResizeDataFileResponse> handler)
DbManagementAsync
Resizes a data file or temp file within the tablespace.
resizeDataFile
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<RunHistoricAddmResponse> runHistoricAddm(RunHistoricAddmRequest request, AsyncHandler<RunHistoricAddmRequest,RunHistoricAddmResponse> handler)
DbManagementAsync
Creates and executes a historic ADDM task using the specified AWR snapshot IDs. If an existing ADDM task uses the provided awr snapshot IDs, the existing task will be returned.
runHistoricAddm
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbCpuUsagesResponse> summarizeAwrDbCpuUsages(SummarizeAwrDbCpuUsagesRequest request, AsyncHandler<SummarizeAwrDbCpuUsagesRequest,SummarizeAwrDbCpuUsagesResponse> handler)
DbManagementAsync
Summarizes the AWR CPU resource limits and metrics for the specified database in AWR.
summarizeAwrDbCpuUsages
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbMetricsResponse> summarizeAwrDbMetrics(SummarizeAwrDbMetricsRequest request, AsyncHandler<SummarizeAwrDbMetricsRequest,SummarizeAwrDbMetricsResponse> handler)
DbManagementAsync
Summarizes the metric samples for the specified database in the AWR. The metric samples are summarized based on the Time dimension for each metric.
summarizeAwrDbMetrics
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbParameterChangesResponse> summarizeAwrDbParameterChanges(SummarizeAwrDbParameterChangesRequest request, AsyncHandler<SummarizeAwrDbParameterChangesRequest,SummarizeAwrDbParameterChangesResponse> handler)
DbManagementAsync
Summarizes the database parameter change history for one database parameter of the specified database in AWR. One change history record contains the previous value, the changed value, and the corresponding time range. If the database parameter value was changed multiple times within the time range, then multiple change history records are created for the same parameter. Note that this API only returns information on change history details for one database parameter. To get a list of all the database parameters whose values were changed during a specified time range, use the following API endpoint: /managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbParameters
summarizeAwrDbParameterChanges
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbParametersResponse> summarizeAwrDbParameters(SummarizeAwrDbParametersRequest request, AsyncHandler<SummarizeAwrDbParametersRequest,SummarizeAwrDbParametersResponse> handler)
DbManagementAsync
Summarizes the database parameter history for the specified database in AWR. This includes the list of database parameters, with information on whether the parameter values were modified within the query time range. Note that each database parameter is only listed once. Depending on the optional query parameters, the returned summary gets all the database parameters, which include:
- Each parameter whose value was changed during the time range: (valueChanged =\"Y\") - Each parameter whose value was unchanged during the time range: (valueChanged =\"N\") - Each parameter whose value was changed at the system level during the time range: (valueChanged =\"Y\" and valueModified = \"SYSTEM_MOD\") - Each parameter whose value was unchanged during the time range, however, the value is not the default value: (valueChanged =\"N\" and valueDefault = \"FALSE\")
Note that this API does not return information on the number of times each database parameter has been changed within the time range. To get the database parameter value change history for a specific parameter, use the following API endpoint: /managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbParameterChanges
summarizeAwrDbParameters
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbSnapshotRangesResponse> summarizeAwrDbSnapshotRanges(SummarizeAwrDbSnapshotRangesRequest request, AsyncHandler<SummarizeAwrDbSnapshotRangesRequest,SummarizeAwrDbSnapshotRangesResponse> handler)
DbManagementAsync
Summarizes the AWR snapshot ranges that contain continuous snapshots, for the specified Managed Database.
summarizeAwrDbSnapshotRanges
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbSysstatsResponse> summarizeAwrDbSysstats(SummarizeAwrDbSysstatsRequest request, AsyncHandler<SummarizeAwrDbSysstatsRequest,SummarizeAwrDbSysstatsResponse> handler)
DbManagementAsync
Summarizes the AWR SYSSTAT sample data for the specified database in AWR. The statistical data is summarized based on the Time dimension for each statistic.
summarizeAwrDbSysstats
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbTopWaitEventsResponse> summarizeAwrDbTopWaitEvents(SummarizeAwrDbTopWaitEventsRequest request, AsyncHandler<SummarizeAwrDbTopWaitEventsRequest,SummarizeAwrDbTopWaitEventsResponse> handler)
DbManagementAsync
Summarizes the AWR top wait events.
summarizeAwrDbTopWaitEvents
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbWaitEventBucketsResponse> summarizeAwrDbWaitEventBuckets(SummarizeAwrDbWaitEventBucketsRequest request, AsyncHandler<SummarizeAwrDbWaitEventBucketsRequest,SummarizeAwrDbWaitEventBucketsResponse> handler)
DbManagementAsync
Summarizes AWR wait event data into value buckets and frequency, for the specified database in the AWR.
summarizeAwrDbWaitEventBuckets
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeAwrDbWaitEventsResponse> summarizeAwrDbWaitEvents(SummarizeAwrDbWaitEventsRequest request, AsyncHandler<SummarizeAwrDbWaitEventsRequest,SummarizeAwrDbWaitEventsResponse> handler)
DbManagementAsync
Summarizes the AWR wait event sample data for the specified database in the AWR. The event data is summarized based on the Time dimension for each event.
summarizeAwrDbWaitEvents
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeJobExecutionsStatusesResponse> summarizeJobExecutionsStatuses(SummarizeJobExecutionsStatusesRequest request, AsyncHandler<SummarizeJobExecutionsStatusesRequest,SummarizeJobExecutionsStatusesResponse> handler)
DbManagementAsync
Gets the number of job executions grouped by status for a job, Managed Database, or Database Group in a specific compartment. Only one of the parameters, jobId, managedDatabaseId, or managedDatabaseGroupId should be provided.
summarizeJobExecutionsStatuses
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDbManagementPrivateEndpointResponse> updateDbManagementPrivateEndpoint(UpdateDbManagementPrivateEndpointRequest request, AsyncHandler<UpdateDbManagementPrivateEndpointRequest,UpdateDbManagementPrivateEndpointResponse> handler)
DbManagementAsync
Updates one or more attributes of a specific Database Management private endpoint.
updateDbManagementPrivateEndpoint
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateJobResponse> updateJob(UpdateJobRequest request, AsyncHandler<UpdateJobRequest,UpdateJobResponse> handler)
DbManagementAsync
Updates the details for the recurring scheduled job specified by jobId. Note that non-recurring (one time) jobs cannot be updated.
updateJob
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateManagedDatabaseGroupResponse> updateManagedDatabaseGroup(UpdateManagedDatabaseGroupRequest request, AsyncHandler<UpdateManagedDatabaseGroupRequest,UpdateManagedDatabaseGroupResponse> handler)
DbManagementAsync
Updates the Managed Database Group specified by managedDatabaseGroupId.
updateManagedDatabaseGroup
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateTablespaceResponse> updateTablespace(UpdateTablespaceRequest request, AsyncHandler<UpdateTablespaceRequest,UpdateTablespaceResponse> handler)
DbManagementAsync
Updates the attributes of the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
updateTablespace
in interface DbManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2022. All rights reserved.