Class: OCI::DatabaseManagement::DbManagementClient
- Inherits:
-
Object
- Object
- OCI::DatabaseManagement::DbManagementClient
- Defined in:
- lib/oci/database_management/db_management_client.rb
Overview
Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and running a SQL job on a Managed Database or Managed Database Group.
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#add_data_files(managed_database_id, tablespace_name, add_data_files_details, opts = {}) ⇒ Response
Adds data files or temp files to the tablespace.
-
#add_managed_database_to_managed_database_group(managed_database_group_id, add_managed_database_to_managed_database_group_details, opts = {}) ⇒ Response
Adds a Managed Database to a specific Managed Database Group.
-
#addm_tasks(managed_database_id, time_start, time_end, opts = {}) ⇒ Response
Lists the metadata for each ADDM task who's end snapshot time falls within the provided start and end time.
-
#change_database_parameters(managed_database_id, change_database_parameters_details, opts = {}) ⇒ Response
Changes database parameter values.
-
#change_db_management_private_endpoint_compartment(db_management_private_endpoint_id, change_db_management_private_endpoint_compartment_details, opts = {}) ⇒ Response
Moves the Database Management private endpoint and its dependent resources to the specified compartment.
-
#change_external_db_system_compartment(external_db_system_id, change_external_db_system_compartment_details, opts = {}) ⇒ Response
Moves the external DB system and its related resources (excluding databases) to the specified compartment.
-
#change_external_exadata_infrastructure_compartment(external_exadata_infrastructure_id, change_external_exadata_infrastructure_compartment_details, opts = {}) ⇒ Response
Moves the Exadata infrastructure and its related resources (Exadata storage server, Exadata storage server connectors and Exadata storage server grid) to the specified compartment.
-
#change_job_compartment(job_id, change_job_compartment_details, opts = {}) ⇒ Response
Moves a job.
-
#change_managed_database_group_compartment(managed_database_group_id, change_managed_database_group_compartment_details, opts = {}) ⇒ Response
Moves a Managed Database Group to a different compartment.
-
#change_plan_retention(managed_database_id, change_plan_retention_details, opts = {}) ⇒ Response
Changes the retention period of unused plans.
-
#change_space_budget(managed_database_id, change_space_budget_details, opts = {}) ⇒ Response
Changes the disk space limit for the SQL Management Base.
-
#change_sql_plan_baselines_attributes(managed_database_id, change_sql_plan_baselines_attributes_details, opts = {}) ⇒ Response
Changes one or more attributes of a single plan or all plans associated with a SQL statement.
-
#check_external_db_system_connector_connection_status(external_db_system_connector_id, opts = {}) ⇒ Response
Checks the status of the external DB system component connection specified in this connector.
-
#check_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) ⇒ Response
Checks the status of the Exadata storage server connection specified by exadataStorageConnectorId.
-
#configure_automatic_capture_filters(managed_database_id, configure_automatic_capture_filters_details, opts = {}) ⇒ Response
Configures automatic capture filters to capture only those statements that match the filter criteria.
-
#configure_automatic_spm_evolve_advisor_task(managed_database_id, configure_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Configures the Automatic SPM Evolve Advisor task
SYS_AUTO_SPM_EVOLVE_TASK
by specifying task parameters. -
#create_db_management_private_endpoint(create_db_management_private_endpoint_details, opts = {}) ⇒ Response
Creates a new Database Management private endpoint.
-
#create_external_db_system(create_external_db_system_details, opts = {}) ⇒ Response
Creates an external DB system and its related resources.
-
#create_external_db_system_connector(create_external_db_system_connector_details, opts = {}) ⇒ Response
Creates a new external connector.
-
#create_external_db_system_discovery(create_external_db_system_discovery_details, opts = {}) ⇒ Response
Creates an external DB system discovery resource and initiates the discovery process.
-
#create_external_exadata_infrastructure(create_external_exadata_infrastructure_details, opts = {}) ⇒ Response
Creates an OCI resource for the Exadata infrastructure and enables the Monitoring service for the Exadata infrastructure.
-
#create_external_exadata_storage_connector(create_external_exadata_storage_connector_details, opts = {}) ⇒ Response
Creates the Exadata storage server connector after validating the connection information.
-
#create_job(create_job_details, opts = {}) ⇒ Response
Creates a job to be executed on a Managed Database or Managed Database Group.
-
#create_managed_database_group(create_managed_database_group_details, opts = {}) ⇒ Response
Creates a Managed Database Group.
-
#create_tablespace(managed_database_id, create_tablespace_details, opts = {}) ⇒ Response
Creates a tablespace within the Managed Database specified by managedDatabaseId.
-
#delete_db_management_private_endpoint(db_management_private_endpoint_id, opts = {}) ⇒ Response
Deletes a specific Database Management private endpoint.
-
#delete_external_db_system(external_db_system_id, opts = {}) ⇒ Response
Deletes the external DB system specified by
externalDbSystemId
. -
#delete_external_db_system_connector(external_db_system_connector_id, opts = {}) ⇒ Response
Deletes the external connector specified by
externalDbSystemConnectorId
. -
#delete_external_db_system_discovery(external_db_system_discovery_id, opts = {}) ⇒ Response
Deletes the external DB system discovery resource specified by
externalDbSystemDiscoveryId
. -
#delete_external_exadata_infrastructure(external_exadata_infrastructure_id, opts = {}) ⇒ Response
Deletes the Exadata infrastructure specified by externalExadataInfrastructureId.
-
#delete_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) ⇒ Response
Deletes the Exadata storage server connector specified by exadataStorageConnectorId.
-
#delete_job(job_id, opts = {}) ⇒ Response
Deletes the job specified by jobId.
-
#delete_managed_database_group(managed_database_group_id, opts = {}) ⇒ Response
Deletes the Managed Database Group specified by managedDatabaseGroupId.
-
#delete_preferred_credential(managed_database_id, credential_name, opts = {}) ⇒ Response
Deletes the preferred credential based on the credentialName.
-
#disable_automatic_initial_plan_capture(managed_database_id, disable_automatic_initial_plan_capture_details, opts = {}) ⇒ Response
Disables automatic initial plan capture.
-
#disable_automatic_spm_evolve_advisor_task(managed_database_id, disable_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Disables the Automatic SPM Evolve Advisor task.
-
#disable_external_db_system_database_management(external_db_system_id, opts = {}) ⇒ Response
Disables Database Management service for all the components of the specified external DB system (except databases).
-
#disable_external_db_system_stack_monitoring(external_db_system_id, opts = {}) ⇒ Response
Disables Stack Monitoring for all the components of the specified external DB system (except databases).
-
#disable_external_exadata_infrastructure_management(external_exadata_infrastructure_id, opts = {}) ⇒ Response
Disables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId.
-
#disable_high_frequency_automatic_spm_evolve_advisor_task(managed_database_id, disable_high_frequency_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Disables the high-frequency Automatic SPM Evolve Advisor task.
-
#disable_sql_plan_baselines_usage(managed_database_id, disable_sql_plan_baselines_usage_details, opts = {}) ⇒ Response
Disables the use of SQL plan baselines stored in SQL Management Base.
-
#discover_external_exadata_infrastructure(discover_external_exadata_infrastructure_details, opts = {}) ⇒ Response
Completes the Exadata system prechecking on the following:.
-
#drop_sql_plan_baselines(managed_database_id, drop_sql_plan_baselines_details, opts = {}) ⇒ Response
Drops a single plan or all plans associated with a SQL statement.
-
#drop_tablespace(managed_database_id, tablespace_name, drop_tablespace_details, opts = {}) ⇒ Response
Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
-
#enable_automatic_initial_plan_capture(managed_database_id, enable_automatic_initial_plan_capture_details, opts = {}) ⇒ Response
Enables automatic initial plan capture.
-
#enable_automatic_spm_evolve_advisor_task(managed_database_id, enable_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Enables the Automatic SPM Evolve Advisor task.
-
#enable_external_db_system_database_management(external_db_system_id, enable_external_db_system_database_management_details, opts = {}) ⇒ Response
Enables Database Management service for all the components of the specified external DB system (except databases).
-
#enable_external_db_system_stack_monitoring(external_db_system_id, enable_external_db_system_stack_monitoring_details, opts = {}) ⇒ Response
Enables Stack Monitoring for all the components of the specified external DB system (except databases).
-
#enable_external_exadata_infrastructure_management(external_exadata_infrastructure_id, enable_external_exadata_infrastructure_management_details, opts = {}) ⇒ Response
Enables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId.
-
#enable_high_frequency_automatic_spm_evolve_advisor_task(managed_database_id, enable_high_frequency_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Enables the high-frequency Automatic SPM Evolve Advisor task.
-
#enable_sql_plan_baselines_usage(managed_database_id, enable_sql_plan_baselines_usage_details, opts = {}) ⇒ Response
Enables the use of SQL plan baselines stored in SQL Management Base.
-
#generate_awr_snapshot(managed_database_id, opts = {}) ⇒ Response
Creates an AWR snapshot for the target database.
-
#get_awr_db_report(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Gets the AWR report for the specific database.
-
#get_awr_db_sql_report(managed_database_id, awr_db_id, sql_id, opts = {}) ⇒ Response
Gets the SQL health check report for one SQL of the specific database.
-
#get_cluster_cache_metric(managed_database_id, start_time, end_time, opts = {}) ⇒ Response
Gets the metrics related to cluster cache for the Oracle Real Application Clusters (Oracle RAC) database specified by managedDatabaseId.
-
#get_database_fleet_health_metrics(compare_baseline_time, compare_target_time, opts = {}) ⇒ Response
Gets the health metrics for a fleet of databases in a compartment or in a Managed Database Group.
-
#get_database_home_metrics(managed_database_id, start_time, end_time, opts = {}) ⇒ Response
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.
-
#get_db_management_private_endpoint(db_management_private_endpoint_id, opts = {}) ⇒ Response
Gets the details of a specific Database Management private endpoint.
-
#get_external_asm(external_asm_id, opts = {}) ⇒ Response
Gets the details for the external ASM specified by
externalAsmId
. -
#get_external_asm_configuration(external_asm_id, opts = {}) ⇒ Response
Gets configuration details including disk groups for the external ASM specified by
externalAsmId
. -
#get_external_asm_instance(external_asm_instance_id, opts = {}) ⇒ Response
Gets the details for the external ASM instance specified by
externalAsmInstanceId
. -
#get_external_cluster(external_cluster_id, opts = {}) ⇒ Response
Gets the details for the external cluster specified by
externalClusterId
. -
#get_external_cluster_instance(external_cluster_instance_id, opts = {}) ⇒ Response
Gets the details for the external cluster instance specified by
externalClusterInstanceId
. -
#get_external_db_home(external_db_home_id, opts = {}) ⇒ Response
Gets the details for the external DB home specified by
externalDbHomeId
. -
#get_external_db_node(external_db_node_id, opts = {}) ⇒ Response
Gets the details for the external DB node specified by
externalDbNodeId
. -
#get_external_db_system(external_db_system_id, opts = {}) ⇒ Response
Gets the details for the external DB system specified by
externalDbSystemId
. -
#get_external_db_system_connector(external_db_system_connector_id, opts = {}) ⇒ Response
Gets the details for the external connector specified by
externalDbSystemConnectorId
. -
#get_external_db_system_discovery(external_db_system_discovery_id, opts = {}) ⇒ Response
Gets the details for the external DB system discovery resource specified by
externalDbSystemDiscoveryId
. -
#get_external_exadata_infrastructure(external_exadata_infrastructure_id, opts = {}) ⇒ Response
Gets the details for the Exadata infrastructure specified by externalExadataInfrastructureId.
-
#get_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) ⇒ Response
Gets the details for the Exadata storage server connector specified by exadataStorageConnectorId.
-
#get_external_exadata_storage_grid(external_exadata_storage_grid_id, opts = {}) ⇒ Response
Gets the details for the Exadata storage server grid specified by exadataStorageGridId.
-
#get_external_exadata_storage_server(external_exadata_storage_server_id, opts = {}) ⇒ Response
Gets the summary for the Exadata storage server specified by exadataStorageServerId.
-
#get_external_listener(external_listener_id, opts = {}) ⇒ Response
Gets the details for the external listener specified by
externalListenerId
. -
#get_iorm_plan(external_exadata_storage_server_id, opts = {}) ⇒ Response
Get the IORM plan from the specific Exadata storage server.
-
#get_job(job_id, opts = {}) ⇒ Response
Gets the details for the job specified by jobId.
-
#get_job_execution(job_execution_id, opts = {}) ⇒ Response
Gets the details for the job execution specified by jobExecutionId.
-
#get_job_run(job_run_id, opts = {}) ⇒ Response
Gets the details for the job run specified by jobRunId.
-
#get_managed_database(managed_database_id, opts = {}) ⇒ Response
Gets the details for the Managed Database specified by managedDatabaseId.
-
#get_managed_database_group(managed_database_group_id, opts = {}) ⇒ Response
Gets the details for the Managed Database Group specified by managedDatabaseGroupId.
-
#get_open_alert_history(external_exadata_storage_server_id, opts = {}) ⇒ Response
Gets the open alerts from the specified Exadata storage server.
-
#get_optimizer_statistics_advisor_execution(managed_database_id, execution_name, task_name, opts = {}) ⇒ Response
Gets a comprehensive report of the Optimizer Statistics Advisor execution, which includes details of the Managed Database, findings, recommendations, rationale, and examples.
-
#get_optimizer_statistics_advisor_execution_script(managed_database_id, execution_name, task_name, opts = {}) ⇒ Response
Gets the Oracle system-generated script for the specified Optimizer Statistics Advisor execution.
-
#get_optimizer_statistics_collection_operation(managed_database_id, optimizer_statistics_collection_operation_id, opts = {}) ⇒ Response
Gets a detailed report of the Optimizer Statistics Collection operation for the specified Managed Database.
-
#get_pdb_metrics(managed_database_id, start_time, end_time, opts = {}) ⇒ Response
Gets a summary of the resource usage metrics such as CPU, User I/O, and Storage for each PDB within a specific CDB.
-
#get_preferred_credential(managed_database_id, credential_name, opts = {}) ⇒ Response
Gets the preferred credential details for a Managed Database based on credentialName.
-
#get_sql_plan_baseline(managed_database_id, plan_name, opts = {}) ⇒ Response
Gets the SQL plan baseline details for the specified planName.
-
#get_sql_plan_baseline_configuration(managed_database_id, opts = {}) ⇒ Response
Gets the configuration details of SQL plan baselines for the specified Managed Database.
-
#get_tablespace(managed_database_id, tablespace_name, opts = {}) ⇒ Response
Gets the details of the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
-
#get_top_sql_cpu_activity(external_exadata_storage_server_id, opts = {}) ⇒ Response
Gets the SQL IDs with the top CPU activity from the Exadata storage server.
-
#get_user(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the details of the user specified by managedDatabaseId and userName.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the status of the work request with the given Work Request ID.
-
#implement_optimizer_statistics_advisor_recommendations(managed_database_id, execution_name, implement_optimizer_statistics_advisor_recommendations_details, opts = {}) ⇒ Response
Asynchronously implements the findings and recommendations of the Optimizer Statistics Advisor execution.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DbManagementClient
constructor
Creates a new DbManagementClient.
-
#list_asm_properties(managed_database_id, opts = {}) ⇒ Response
Gets the list of ASM properties for the specified managedDatabaseId.
-
#list_associated_databases(db_management_private_endpoint_id, compartment_id, opts = {}) ⇒ Response
Gets the list of databases using a specific Database Management private endpoint.
-
#list_awr_db_snapshots(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Lists AWR snapshots for the specified database in the AWR.
-
#list_awr_dbs(managed_database_id, opts = {}) ⇒ Response
Gets the list of databases and their snapshot summary details available in the AWR of the specified Managed Database.
-
#list_consumer_group_privileges(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of consumer group privileges granted to a specific user.
-
#list_cursor_cache_statements(managed_database_id, opts = {}) ⇒ Response
Lists the SQL statements from shared SQL area, also called the cursor cache.
-
#list_data_access_containers(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of containers for a specific user.
-
#list_database_parameters(managed_database_id, opts = {}) ⇒ Response
Gets the list of database parameters for the specified Managed Database.
-
#list_db_management_private_endpoints(compartment_id, opts = {}) ⇒ Response
Gets a list of Database Management private endpoints.
-
#list_external_asm_disk_groups(external_asm_id, opts = {}) ⇒ Response
Lists ASM disk groups for the external ASM specified by
externalAsmId
. -
#list_external_asm_instances(opts = {}) ⇒ Response
Lists the ASM instances in the specified external ASM.
-
#list_external_asm_users(external_asm_id, opts = {}) ⇒ Response
Lists ASM users for the external ASM specified by
externalAsmId
. -
#list_external_asms(opts = {}) ⇒ Response
Lists the ASMs in the specified external DB system.
-
#list_external_cluster_instances(opts = {}) ⇒ Response
Lists the cluster instances in the specified external cluster.
-
#list_external_clusters(opts = {}) ⇒ Response
Lists the clusters in the specified external DB system.
-
#list_external_databases(opts = {}) ⇒ Response
Lists the external databases in the specified compartment or in the specified DB system.
-
#list_external_db_homes(opts = {}) ⇒ Response
Lists the DB homes in the specified external DB system.
-
#list_external_db_nodes(opts = {}) ⇒ Response
Lists the external DB nodes in the specified external DB system.
-
#list_external_db_system_connectors(opts = {}) ⇒ Response
Lists the external connectors in the specified external DB system.
-
#list_external_db_system_discoveries(compartment_id, opts = {}) ⇒ Response
Lists the external DB system discovery resources in the specified compartment.
-
#list_external_db_systems(compartment_id, opts = {}) ⇒ Response
Lists the external DB systems in the specified compartment.
-
#list_external_exadata_infrastructures(compartment_id, opts = {}) ⇒ Response
Lists the Exadata infrastructure resources in the specified compartment.
-
#list_external_exadata_storage_connectors(compartment_id, external_exadata_infrastructure_id, opts = {}) ⇒ Response
Lists the Exadata storage server connectors for the specified Exadata infrastructure.
-
#list_external_exadata_storage_servers(compartment_id, external_exadata_infrastructure_id, opts = {}) ⇒ Response
Lists the Exadata storage servers for the specified Exadata infrastructure.
-
#list_external_listener_services(external_listener_id, managed_database_id, opts = {}) ⇒ Response
Lists the database services registered with the specified external listener for the specified Managed Database.
-
#list_external_listeners(opts = {}) ⇒ Response
Lists the listeners in the specified external DB system.
-
#list_job_executions(compartment_id, opts = {}) ⇒ Response
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.
-
#list_job_runs(compartment_id, opts = {}) ⇒ Response
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.
-
#list_jobs(compartment_id, opts = {}) ⇒ Response
Gets the job for a specific ID or the list of jobs for a Managed Database or Managed Database Group in a specific compartment.
-
#list_managed_database_groups(compartment_id, opts = {}) ⇒ Response
Gets the Managed Database Group for a specific ID or the list of Managed Database Groups in a specific compartment.
-
#list_managed_databases(compartment_id, opts = {}) ⇒ Response
Gets the Managed Database for a specific ID or the list of Managed Databases in a specific compartment.
-
#list_object_privileges(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of object privileges granted to a specific user.
-
#list_optimizer_statistics_advisor_executions(managed_database_id, opts = {}) ⇒ Response
Lists the details of the Optimizer Statistics Advisor task executions, such as their duration, and the number of findings, if any.
-
#list_optimizer_statistics_collection_aggregations(managed_database_id, group_type, opts = {}) ⇒ Response
Gets a list of the optimizer statistics collection operations per hour, grouped by task or object status for the specified Managed Database.
-
#list_optimizer_statistics_collection_operations(managed_database_id, opts = {}) ⇒ Response
Lists the Optimizer Statistics Collection (Auto and Manual) task operation summary for the specified Managed Database.
-
#list_preferred_credentials(managed_database_id, opts = {}) ⇒ Response
Gets the list of preferred credentials for a given Managed Database.
-
#list_proxied_for_users(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of users on whose behalf the current user acts as proxy.
-
#list_proxy_users(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of proxy users for the current user.
-
#list_roles(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of roles granted to a specific user.
-
#list_sql_plan_baseline_jobs(managed_database_id, opts = {}) ⇒ Response
Lists the database jobs used for loading SQL plan baselines in the specified Managed Database.
-
#list_sql_plan_baselines(managed_database_id, opts = {}) ⇒ Response
Lists the SQL plan baselines for the specified Managed Database.
-
#list_system_privileges(managed_database_id, user_name, opts = {}) ⇒ Response
Gets the list of system privileges granted to a specific user.
-
#list_table_statistics(managed_database_id, opts = {}) ⇒ Response
Lists the database table statistics grouped by different statuses such as Not Stale Stats, Stale Stats, and No Stats.
-
#list_tablespaces(managed_database_id, opts = {}) ⇒ Response
Gets the list of tablespaces for the specified managedDatabaseId.
-
#list_users(managed_database_id, opts = {}) ⇒ Response
Gets the list of users for the specified managedDatabaseId.
-
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Returns a paginated list of errors for a given work request.
-
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Returns a paginated list of logs for a given work request.
-
#list_work_requests(compartment_id, opts = {}) ⇒ Response
The list of work requests in a specific compartment was retrieved successfully.
-
#load_sql_plan_baselines_from_awr(managed_database_id, load_sql_plan_baselines_from_awr_details, opts = {}) ⇒ Response
Loads plans from Automatic Workload Repository (AWR) snapshots.
-
#load_sql_plan_baselines_from_cursor_cache(managed_database_id, load_sql_plan_baselines_from_cursor_cache_details, opts = {}) ⇒ Response
Loads plans for statements directly from the shared SQL area, also called the cursor cache.
-
#logger ⇒ Logger
The logger for this client.
-
#patch_external_db_system_discovery(external_db_system_discovery_id, patch_external_db_system_discovery_details, opts = {}) ⇒ Response
Patches the external DB system discovery specified by
externalDbSystemDiscoveryId
. -
#remove_data_file(managed_database_id, tablespace_name, remove_data_file_details, opts = {}) ⇒ Response
Removes a data file or temp file from the tablespace.
-
#remove_managed_database_from_managed_database_group(managed_database_group_id, remove_managed_database_from_managed_database_group_details, opts = {}) ⇒ Response
Removes a Managed Database from a Managed Database Group.
-
#reset_database_parameters(managed_database_id, reset_database_parameters_details, opts = {}) ⇒ Response
Resets database parameter values to their default or startup values.
-
#resize_data_file(managed_database_id, tablespace_name, resize_data_file_details, opts = {}) ⇒ Response
Resizes a data file or temp file within the tablespace.
-
#run_historic_addm(managed_database_id, run_historic_addm_details, opts = {}) ⇒ Response
Creates and executes a historic ADDM task using the specified AWR snapshot IDs.
-
#summarize_awr_db_cpu_usages(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Summarizes the AWR CPU resource limits and metrics for the specified database in AWR.
-
#summarize_awr_db_metrics(managed_database_id, awr_db_id, name, opts = {}) ⇒ Response
Summarizes the metric samples for the specified database in the AWR.
-
#summarize_awr_db_parameter_changes(managed_database_id, awr_db_id, name, opts = {}) ⇒ Response
Summarizes the database parameter change history for one database parameter of the specified database in AWR.
-
#summarize_awr_db_parameters(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Summarizes the database parameter history for the specified database in AWR.
-
#summarize_awr_db_snapshot_ranges(managed_database_id, opts = {}) ⇒ Response
Summarizes the AWR snapshot ranges that contain continuous snapshots, for the specified Managed Database.
-
#summarize_awr_db_sysstats(managed_database_id, awr_db_id, name, opts = {}) ⇒ Response
Summarizes the AWR SYSSTAT sample data for the specified database in AWR.
-
#summarize_awr_db_top_wait_events(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Summarizes the AWR top wait events.
-
#summarize_awr_db_wait_event_buckets(managed_database_id, awr_db_id, name, opts = {}) ⇒ Response
Summarizes AWR wait event data into value buckets and frequency, for the specified database in the AWR.
-
#summarize_awr_db_wait_events(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Summarizes the AWR wait event sample data for the specified database in the AWR.
-
#summarize_external_asm_metrics(external_asm_id, start_time, end_time, opts = {}) ⇒ Response
Gets metrics for the external ASM specified by
externalAsmId
. -
#summarize_external_cluster_metrics(external_cluster_id, start_time, end_time, opts = {}) ⇒ Response
Gets metrics for the external cluster specified by
externalClusterId
. -
#summarize_external_db_node_metrics(external_db_node_id, start_time, end_time, opts = {}) ⇒ Response
Gets metrics for the external DB node specified by
externalDbNodeId
. -
#summarize_external_db_system_availability_metrics(external_db_system_id, start_time, end_time, opts = {}) ⇒ Response
Gets availability metrics for the components present in the external DB system specified by
externalDbSystemId
. -
#summarize_external_listener_metrics(external_listener_id, start_time, end_time, opts = {}) ⇒ Response
Gets metrics for the external listener specified by
externalListenerId
. -
#summarize_job_executions_statuses(compartment_id, start_time, end_time, opts = {}) ⇒ Response
Gets the number of job executions grouped by status for a job, Managed Database, or Database Group in a specific compartment.
-
#summarize_managed_database_availability_metrics(managed_database_id, start_time, end_time, opts = {}) ⇒ Response
Gets the availability metrics related to managed database for the Oracle database specified by managedDatabaseId.
-
#summarize_sql_plan_baselines(managed_database_id, opts = {}) ⇒ Response
Gets the number of SQL plan baselines aggregated by their attributes.
-
#summarize_sql_plan_baselines_by_last_execution(managed_database_id, opts = {}) ⇒ Response
Gets the number of SQL plan baselines aggregated by the age of their last execution in weeks.
-
#test_preferred_credential(managed_database_id, credential_name, opts = {}) ⇒ Response
Tests the preferred credential.
-
#update_db_management_private_endpoint(db_management_private_endpoint_id, update_db_management_private_endpoint_details, opts = {}) ⇒ Response
Updates one or more attributes of a specific Database Management private endpoint.
-
#update_external_asm(external_asm_id, update_external_asm_details, opts = {}) ⇒ Response
Updates the external ASM specified by
externalAsmId
. -
#update_external_cluster(external_cluster_id, update_external_cluster_details, opts = {}) ⇒ Response
Updates the external cluster specified by
externalClusterId
. -
#update_external_cluster_instance(external_cluster_instance_id, update_external_cluster_instance_details, opts = {}) ⇒ Response
Updates the external cluster instance specified by
externalClusterInstanceId
. -
#update_external_db_node(external_db_node_id, update_external_db_node_details, opts = {}) ⇒ Response
Updates the external DB node specified by
externalDbNodeId
. -
#update_external_db_system(external_db_system_id, update_external_db_system_details, opts = {}) ⇒ Response
Updates the external DB system specified by
externalDbSystemId
. -
#update_external_db_system_connector(external_db_system_connector_id, update_external_db_system_connector_details, opts = {}) ⇒ Response
Updates the external connector specified by
externalDbSystemConnectorId
. -
#update_external_db_system_discovery(external_db_system_discovery_id, update_external_db_system_discovery_details, opts = {}) ⇒ Response
Updates the external DB system discovery specified by
externalDbSystemDiscoveryId
. -
#update_external_exadata_infrastructure(external_exadata_infrastructure_id, update_external_exadata_infrastructure_details, opts = {}) ⇒ Response
Updates the details for the Exadata infrastructure specified by externalExadataInfrastructureId.
-
#update_external_exadata_storage_connector(external_exadata_storage_connector_id, update_external_exadata_storage_connector_details, opts = {}) ⇒ Response
Updates the Exadata storage server connector specified by exadataStorageConnectorId.
-
#update_external_listener(external_listener_id, update_external_listener_details, opts = {}) ⇒ Response
Updates the external listener specified by
externalListenerId
. -
#update_job(job_id, update_job_details, opts = {}) ⇒ Response
Updates the details for the recurring scheduled job specified by jobId.
-
#update_managed_database_group(managed_database_group_id, update_managed_database_group_details, opts = {}) ⇒ Response
Updates the Managed Database Group specified by managedDatabaseGroupId.
-
#update_preferred_credential(managed_database_id, credential_name, update_preferred_credential_details, opts = {}) ⇒ Response
Updates the preferred credential based on the credentialName.
-
#update_tablespace(managed_database_id, tablespace_name, update_tablespace_details, opts = {}) ⇒ Response
Updates the attributes of the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DbManagementClient
Creates a new DbManagementClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/oci/database_management/db_management_client.rb', line 57 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20201101' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "DbManagementClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
17 18 19 |
# File 'lib/oci/database_management/db_management_client.rb', line 17 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
21 22 23 |
# File 'lib/oci/database_management/db_management_client.rb', line 21 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
31 32 33 |
# File 'lib/oci/database_management/db_management_client.rb', line 31 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil
, which means that an operation will not perform any retries
27 28 29 |
# File 'lib/oci/database_management/db_management_client.rb', line 27 def retry_config @retry_config end |
Instance Method Details
#add_data_files(managed_database_id, tablespace_name, add_data_files_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_data_files API.
Adds data files or temp files to the tablespace.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/oci/database_management/db_management_client.rb', line 123 def add_data_files(managed_database_id, tablespace_name, add_data_files_details, opts = {}) logger.debug 'Calling operation DbManagementClient#add_data_files.' if logger raise "Missing the required parameter 'managed_database_id' when calling add_data_files." if managed_database_id.nil? raise "Missing the required parameter 'tablespace_name' when calling add_data_files." if tablespace_name.nil? raise "Missing the required parameter 'add_data_files_details' when calling add_data_files." if add_data_files_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) raise "Parameter value for 'tablespace_name' must not be blank" if OCI::Internal::Util.blank_string?(tablespace_name) path = '/managedDatabases/{managedDatabaseId}/tablespaces/{tablespaceName}/actions/addDataFiles'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{tablespaceName}', tablespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_data_files_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#add_data_files') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::TablespaceAdminStatus' ) end # rubocop:enable Metrics/BlockLength end |
#add_managed_database_to_managed_database_group(managed_database_group_id, add_managed_database_to_managed_database_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_managed_database_to_managed_database_group API.
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.
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/oci/database_management/db_management_client.rb', line 192 def add_managed_database_to_managed_database_group(managed_database_group_id, add_managed_database_to_managed_database_group_details, opts = {}) logger.debug 'Calling operation DbManagementClient#add_managed_database_to_managed_database_group.' if logger raise "Missing the required parameter 'managed_database_group_id' when calling add_managed_database_to_managed_database_group." if managed_database_group_id.nil? raise "Missing the required parameter 'add_managed_database_to_managed_database_group_details' when calling add_managed_database_to_managed_database_group." if add_managed_database_to_managed_database_group_details.nil? raise "Parameter value for 'managed_database_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_group_id) path = '/managedDatabaseGroups/{managedDatabaseGroupId}/actions/addManagedDatabase'.sub('{managedDatabaseGroupId}', managed_database_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_managed_database_to_managed_database_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#add_managed_database_to_managed_database_group') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#addm_tasks(managed_database_id, time_start, time_end, opts = {}) ⇒ Response
Click here to see an example of how to use addm_tasks API.
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.
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/oci/database_management/db_management_client.rb', line 260 def addm_tasks(managed_database_id, time_start, time_end, opts = {}) logger.debug 'Calling operation DbManagementClient#addm_tasks.' if logger raise "Missing the required parameter 'managed_database_id' when calling addm_tasks." if managed_database_id.nil? raise "Missing the required parameter 'time_start' when calling addm_tasks." if time_start.nil? raise "Missing the required parameter 'time_end' when calling addm_tasks." if time_end.nil? if opts[:sort_by] && !%w[TASK_NAME TASK_ID DESCRIPTION DB_USER STATUS TIME_CREATED BEGIN_TIME END_TIME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TASK_NAME, TASK_ID, DESCRIPTION, DB_USER, STATUS, TIME_CREATED, BEGIN_TIME, END_TIME.' end if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.' end raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/addmTasks'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:timeStart] = time_start query_params[:timeEnd] = time_end query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#addm_tasks') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::AddmTasksCollection' ) end # rubocop:enable Metrics/BlockLength end |
#change_database_parameters(managed_database_id, change_database_parameters_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_database_parameters API.
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.
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'lib/oci/database_management/db_management_client.rb', line 350 def change_database_parameters(managed_database_id, change_database_parameters_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_database_parameters.' if logger raise "Missing the required parameter 'managed_database_id' when calling change_database_parameters." if managed_database_id.nil? raise "Missing the required parameter 'change_database_parameters_details' when calling change_database_parameters." if change_database_parameters_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/actions/changeDatabaseParameters'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_database_parameters_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_database_parameters') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::UpdateDatabaseParametersResult' ) end # rubocop:enable Metrics/BlockLength end |
#change_db_management_private_endpoint_compartment(db_management_private_endpoint_id, change_db_management_private_endpoint_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_db_management_private_endpoint_compartment API.
Moves the Database Management private endpoint and its dependent resources to the specified compartment.
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'lib/oci/database_management/db_management_client.rb', line 420 def change_db_management_private_endpoint_compartment(db_management_private_endpoint_id, change_db_management_private_endpoint_compartment_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_db_management_private_endpoint_compartment.' if logger raise "Missing the required parameter 'db_management_private_endpoint_id' when calling change_db_management_private_endpoint_compartment." if db_management_private_endpoint_id.nil? raise "Missing the required parameter 'change_db_management_private_endpoint_compartment_details' when calling change_db_management_private_endpoint_compartment." if change_db_management_private_endpoint_compartment_details.nil? raise "Parameter value for 'db_management_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(db_management_private_endpoint_id) path = '/dbManagementPrivateEndpoints/{dbManagementPrivateEndpointId}/actions/changeCompartment'.sub('{dbManagementPrivateEndpointId}', db_management_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_db_management_private_endpoint_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_db_management_private_endpoint_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_external_db_system_compartment(external_db_system_id, change_external_db_system_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_external_db_system_compartment API.
Moves the external DB system and its related resources (excluding databases) to the specified compartment.
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 |
# File 'lib/oci/database_management/db_management_client.rb', line 491 def change_external_db_system_compartment(external_db_system_id, change_external_db_system_compartment_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_external_db_system_compartment.' if logger raise "Missing the required parameter 'external_db_system_id' when calling change_external_db_system_compartment." if external_db_system_id.nil? raise "Missing the required parameter 'change_external_db_system_compartment_details' when calling change_external_db_system_compartment." if change_external_db_system_compartment_details.nil? raise "Parameter value for 'external_db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_id) path = '/externalDbSystems/{externalDbSystemId}/actions/changeCompartment'.sub('{externalDbSystemId}', external_db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_external_db_system_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_external_db_system_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_external_exadata_infrastructure_compartment(external_exadata_infrastructure_id, change_external_exadata_infrastructure_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_external_exadata_infrastructure_compartment API.
Moves the Exadata infrastructure and its related resources (Exadata storage server, Exadata storage server connectors and Exadata storage server grid) to the specified compartment.
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
# File 'lib/oci/database_management/db_management_client.rb', line 562 def change_external_exadata_infrastructure_compartment(external_exadata_infrastructure_id, change_external_exadata_infrastructure_compartment_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_external_exadata_infrastructure_compartment.' if logger raise "Missing the required parameter 'external_exadata_infrastructure_id' when calling change_external_exadata_infrastructure_compartment." if external_exadata_infrastructure_id.nil? raise "Missing the required parameter 'change_external_exadata_infrastructure_compartment_details' when calling change_external_exadata_infrastructure_compartment." if change_external_exadata_infrastructure_compartment_details.nil? raise "Parameter value for 'external_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(external_exadata_infrastructure_id) path = '/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/changeCompartment'.sub('{externalExadataInfrastructureId}', external_exadata_infrastructure_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_external_exadata_infrastructure_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_external_exadata_infrastructure_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_job_compartment(job_id, change_job_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_job_compartment API.
Moves a job.
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 |
# File 'lib/oci/database_management/db_management_client.rb', line 633 def change_job_compartment(job_id, change_job_compartment_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_job_compartment.' if logger raise "Missing the required parameter 'job_id' when calling change_job_compartment." if job_id.nil? raise "Missing the required parameter 'change_job_compartment_details' when calling change_job_compartment." if change_job_compartment_details.nil? raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id) path = '/jobs/{jobId}/actions/changeCompartment'.sub('{jobId}', job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_job_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_job_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_managed_database_group_compartment(managed_database_group_id, change_managed_database_group_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_managed_database_group_compartment API.
Moves a Managed Database Group to a different compartment. The destination compartment must not have a Managed Database Group with the same name.
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 |
# File 'lib/oci/database_management/db_management_client.rb', line 706 def change_managed_database_group_compartment(managed_database_group_id, change_managed_database_group_compartment_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_managed_database_group_compartment.' if logger raise "Missing the required parameter 'managed_database_group_id' when calling change_managed_database_group_compartment." if managed_database_group_id.nil? raise "Missing the required parameter 'change_managed_database_group_compartment_details' when calling change_managed_database_group_compartment." if change_managed_database_group_compartment_details.nil? raise "Parameter value for 'managed_database_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_group_id) path = '/managedDatabaseGroups/{managedDatabaseGroupId}/actions/changeCompartment'.sub('{managedDatabaseGroupId}', managed_database_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_managed_database_group_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_managed_database_group_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_plan_retention(managed_database_id, change_plan_retention_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_plan_retention API.
Changes the retention period of unused plans. The period can range between 5 and 523 weeks.
The database purges plans that have not been used for longer than the plan retention period.
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 |
# File 'lib/oci/database_management/db_management_client.rb', line 769 def change_plan_retention(managed_database_id, change_plan_retention_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_plan_retention.' if logger raise "Missing the required parameter 'managed_database_id' when calling change_plan_retention." if managed_database_id.nil? raise "Missing the required parameter 'change_plan_retention_details' when calling change_plan_retention." if change_plan_retention_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/changePlanRetention'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(change_plan_retention_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_plan_retention') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_space_budget(managed_database_id, change_space_budget_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_space_budget API.
Changes the disk space limit for the SQL Management Base. The allowable range for this limit is between 1% and 50%.
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 |
# File 'lib/oci/database_management/db_management_client.rb', line 826 def change_space_budget(managed_database_id, change_space_budget_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_space_budget.' if logger raise "Missing the required parameter 'managed_database_id' when calling change_space_budget." if managed_database_id.nil? raise "Missing the required parameter 'change_space_budget_details' when calling change_space_budget." if change_space_budget_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/changeSpaceBudget'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(change_space_budget_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_space_budget') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sql_plan_baselines_attributes(managed_database_id, change_sql_plan_baselines_attributes_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sql_plan_baselines_attributes API.
Changes one or more attributes of a single plan or all plans associated with a SQL statement.
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 |
# File 'lib/oci/database_management/db_management_client.rb', line 882 def change_sql_plan_baselines_attributes(managed_database_id, change_sql_plan_baselines_attributes_details, opts = {}) logger.debug 'Calling operation DbManagementClient#change_sql_plan_baselines_attributes.' if logger raise "Missing the required parameter 'managed_database_id' when calling change_sql_plan_baselines_attributes." if managed_database_id.nil? raise "Missing the required parameter 'change_sql_plan_baselines_attributes_details' when calling change_sql_plan_baselines_attributes." if change_sql_plan_baselines_attributes_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/changeSqlPlanBaselinesAttributes'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(change_sql_plan_baselines_attributes_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#change_sql_plan_baselines_attributes') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#check_external_db_system_connector_connection_status(external_db_system_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use check_external_db_system_connector_connection_status API.
Checks the status of the external DB system component connection specified in this connector. This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields.
950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 |
# File 'lib/oci/database_management/db_management_client.rb', line 950 def check_external_db_system_connector_connection_status(external_db_system_connector_id, opts = {}) logger.debug 'Calling operation DbManagementClient#check_external_db_system_connector_connection_status.' if logger raise "Missing the required parameter 'external_db_system_connector_id' when calling check_external_db_system_connector_connection_status." if external_db_system_connector_id.nil? raise "Parameter value for 'external_db_system_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_connector_id) path = '/externalDbSystemConnectors/{externalDbSystemConnectorId}/actions/checkConnectionStatus'.sub('{externalDbSystemConnectorId}', external_db_system_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#check_external_db_system_connector_connection_status') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalDbSystemConnector' ) end # rubocop:enable Metrics/BlockLength end |
#check_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use check_external_exadata_storage_connector API.
Checks the status of the Exadata storage server connection specified by exadataStorageConnectorId.
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 |
# File 'lib/oci/database_management/db_management_client.rb', line 1020 def check_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) logger.debug 'Calling operation DbManagementClient#check_external_exadata_storage_connector.' if logger raise "Missing the required parameter 'external_exadata_storage_connector_id' when calling check_external_exadata_storage_connector." if external_exadata_storage_connector_id.nil? raise "Parameter value for 'external_exadata_storage_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(external_exadata_storage_connector_id) path = '/externalExadataStorageConnectors/{externalExadataStorageConnectorId}/actions/checkStatus'.sub('{externalExadataStorageConnectorId}', external_exadata_storage_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#check_external_exadata_storage_connector') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalExadataStorageConnectorStatus' ) end # rubocop:enable Metrics/BlockLength end |
#configure_automatic_capture_filters(managed_database_id, configure_automatic_capture_filters_details, opts = {}) ⇒ Response
Click here to see an example of how to use configure_automatic_capture_filters API.
Configures automatic capture filters to capture only those statements that match the filter criteria.
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 |
# File 'lib/oci/database_management/db_management_client.rb', line 1080 def configure_automatic_capture_filters(managed_database_id, configure_automatic_capture_filters_details, opts = {}) logger.debug 'Calling operation DbManagementClient#configure_automatic_capture_filters.' if logger raise "Missing the required parameter 'managed_database_id' when calling configure_automatic_capture_filters." if managed_database_id.nil? raise "Missing the required parameter 'configure_automatic_capture_filters_details' when calling configure_automatic_capture_filters." if configure_automatic_capture_filters_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/configureAutomaticCaptureFilters'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(configure_automatic_capture_filters_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#configure_automatic_capture_filters') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#configure_automatic_spm_evolve_advisor_task(managed_database_id, configure_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use configure_automatic_spm_evolve_advisor_task API.
Configures the Automatic SPM Evolve Advisor task SYS_AUTO_SPM_EVOLVE_TASK
by specifying task parameters. As the task is owned by SYS
, only SYS
can set task parameters.
1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'lib/oci/database_management/db_management_client.rb', line 1138 def configure_automatic_spm_evolve_advisor_task(managed_database_id, configure_automatic_spm_evolve_advisor_task_details, opts = {}) logger.debug 'Calling operation DbManagementClient#configure_automatic_spm_evolve_advisor_task.' if logger raise "Missing the required parameter 'managed_database_id' when calling configure_automatic_spm_evolve_advisor_task." if managed_database_id.nil? raise "Missing the required parameter 'configure_automatic_spm_evolve_advisor_task_details' when calling configure_automatic_spm_evolve_advisor_task." if configure_automatic_spm_evolve_advisor_task_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/configureAutomaticSpmEvolveAdvisorTask'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(configure_automatic_spm_evolve_advisor_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#configure_automatic_spm_evolve_advisor_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_db_management_private_endpoint(create_db_management_private_endpoint_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_db_management_private_endpoint API.
Creates a new Database Management private endpoint.
1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'lib/oci/database_management/db_management_client.rb', line 1199 def create_db_management_private_endpoint(create_db_management_private_endpoint_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_db_management_private_endpoint.' if logger raise "Missing the required parameter 'create_db_management_private_endpoint_details' when calling create_db_management_private_endpoint." if create_db_management_private_endpoint_details.nil? path = '/dbManagementPrivateEndpoints' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_db_management_private_endpoint_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_db_management_private_endpoint') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::DbManagementPrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#create_external_db_system(create_external_db_system_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_external_db_system API.
Creates an external DB system and its related resources.
1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 |
# File 'lib/oci/database_management/db_management_client.rb', line 1261 def create_external_db_system(create_external_db_system_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_external_db_system.' if logger raise "Missing the required parameter 'create_external_db_system_details' when calling create_external_db_system." if create_external_db_system_details.nil? path = '/externalDbSystems' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_external_db_system_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_external_db_system') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalDbSystem' ) end # rubocop:enable Metrics/BlockLength end |
#create_external_db_system_connector(create_external_db_system_connector_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_external_db_system_connector API.
Creates a new external connector.
1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 |
# File 'lib/oci/database_management/db_management_client.rb', line 1322 def create_external_db_system_connector(create_external_db_system_connector_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_external_db_system_connector.' if logger raise "Missing the required parameter 'create_external_db_system_connector_details' when calling create_external_db_system_connector." if create_external_db_system_connector_details.nil? path = '/externalDbSystemConnectors' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_external_db_system_connector_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_external_db_system_connector') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalDbSystemConnector' ) end # rubocop:enable Metrics/BlockLength end |
#create_external_db_system_discovery(create_external_db_system_discovery_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_external_db_system_discovery API.
Creates an external DB system discovery resource and initiates the discovery process.
1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 |
# File 'lib/oci/database_management/db_management_client.rb', line 1384 def create_external_db_system_discovery(create_external_db_system_discovery_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_external_db_system_discovery.' if logger raise "Missing the required parameter 'create_external_db_system_discovery_details' when calling create_external_db_system_discovery." if create_external_db_system_discovery_details.nil? path = '/externalDbSystemDiscoveries' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_external_db_system_discovery_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_external_db_system_discovery') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalDbSystemDiscovery' ) end # rubocop:enable Metrics/BlockLength end |
#create_external_exadata_infrastructure(create_external_exadata_infrastructure_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_external_exadata_infrastructure API.
Creates an OCI resource for the Exadata infrastructure and enables the Monitoring service for the Exadata infrastructure. The following resource/subresources are created: Infrastructure Storage server connectors Storage servers Storage grids
1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/oci/database_management/db_management_client.rb', line 1451 def create_external_exadata_infrastructure(create_external_exadata_infrastructure_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_external_exadata_infrastructure.' if logger raise "Missing the required parameter 'create_external_exadata_infrastructure_details' when calling create_external_exadata_infrastructure." if create_external_exadata_infrastructure_details.nil? path = '/externalExadataInfrastructures' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_external_exadata_infrastructure_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_external_exadata_infrastructure') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalExadataInfrastructure' ) end # rubocop:enable Metrics/BlockLength end |
#create_external_exadata_storage_connector(create_external_exadata_storage_connector_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_external_exadata_storage_connector API.
Creates the Exadata storage server connector after validating the connection information.
1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 |
# File 'lib/oci/database_management/db_management_client.rb', line 1513 def create_external_exadata_storage_connector(create_external_exadata_storage_connector_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_external_exadata_storage_connector.' if logger raise "Missing the required parameter 'create_external_exadata_storage_connector_details' when calling create_external_exadata_storage_connector." if create_external_exadata_storage_connector_details.nil? path = '/externalExadataStorageConnectors' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_external_exadata_storage_connector_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_external_exadata_storage_connector') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalExadataStorageConnector' ) end # rubocop:enable Metrics/BlockLength end |
#create_job(create_job_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_job API.
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.
1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'lib/oci/database_management/db_management_client.rb', line 1577 def create_job(create_job_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_job.' if logger raise "Missing the required parameter 'create_job_details' when calling create_job." if create_job_details.nil? path = '/jobs' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_job_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_job') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::Job' ) end # rubocop:enable Metrics/BlockLength end |
#create_managed_database_group(create_managed_database_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_managed_database_group API.
Creates a Managed Database Group. The group does not contain any Managed Databases when it is created, and they must be added later.
1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/oci/database_management/db_management_client.rb', line 1640 def create_managed_database_group(create_managed_database_group_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_managed_database_group.' if logger raise "Missing the required parameter 'create_managed_database_group_details' when calling create_managed_database_group." if create_managed_database_group_details.nil? path = '/managedDatabaseGroups' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_managed_database_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_managed_database_group') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ManagedDatabaseGroup' ) end # rubocop:enable Metrics/BlockLength end |
#create_tablespace(managed_database_id, create_tablespace_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_tablespace API.
Creates a tablespace within the Managed Database specified by managedDatabaseId.
1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 |
# File 'lib/oci/database_management/db_management_client.rb', line 1703 def create_tablespace(managed_database_id, create_tablespace_details, opts = {}) logger.debug 'Calling operation DbManagementClient#create_tablespace.' if logger raise "Missing the required parameter 'managed_database_id' when calling create_tablespace." if managed_database_id.nil? raise "Missing the required parameter 'create_tablespace_details' when calling create_tablespace." if create_tablespace_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/tablespaces'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_tablespace_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#create_tablespace') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::Tablespace' ) end # rubocop:enable Metrics/BlockLength end |
#delete_db_management_private_endpoint(db_management_private_endpoint_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_db_management_private_endpoint API.
Deletes a specific Database Management private endpoint.
1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 |
# File 'lib/oci/database_management/db_management_client.rb', line 1766 def delete_db_management_private_endpoint(db_management_private_endpoint_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_db_management_private_endpoint.' if logger raise "Missing the required parameter 'db_management_private_endpoint_id' when calling delete_db_management_private_endpoint." if db_management_private_endpoint_id.nil? raise "Parameter value for 'db_management_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(db_management_private_endpoint_id) path = '/dbManagementPrivateEndpoints/{dbManagementPrivateEndpointId}'.sub('{dbManagementPrivateEndpointId}', db_management_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_db_management_private_endpoint') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_external_db_system(external_db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_external_db_system API.
Deletes the external DB system specified by externalDbSystemId
.
1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 |
# File 'lib/oci/database_management/db_management_client.rb', line 1827 def delete_external_db_system(external_db_system_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_external_db_system.' if logger raise "Missing the required parameter 'external_db_system_id' when calling delete_external_db_system." if external_db_system_id.nil? raise "Parameter value for 'external_db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_id) path = '/externalDbSystems/{externalDbSystemId}'.sub('{externalDbSystemId}', external_db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_external_db_system') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_external_db_system_connector(external_db_system_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_external_db_system_connector API.
Deletes the external connector specified by externalDbSystemConnectorId
.
1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 |
# File 'lib/oci/database_management/db_management_client.rb', line 1888 def delete_external_db_system_connector(external_db_system_connector_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_external_db_system_connector.' if logger raise "Missing the required parameter 'external_db_system_connector_id' when calling delete_external_db_system_connector." if external_db_system_connector_id.nil? raise "Parameter value for 'external_db_system_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_connector_id) path = '/externalDbSystemConnectors/{externalDbSystemConnectorId}'.sub('{externalDbSystemConnectorId}', external_db_system_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_external_db_system_connector') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_external_db_system_discovery(external_db_system_discovery_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_external_db_system_discovery API.
Deletes the external DB system discovery resource specified by externalDbSystemDiscoveryId
.
1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 |
# File 'lib/oci/database_management/db_management_client.rb', line 1949 def delete_external_db_system_discovery(external_db_system_discovery_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_external_db_system_discovery.' if logger raise "Missing the required parameter 'external_db_system_discovery_id' when calling delete_external_db_system_discovery." if external_db_system_discovery_id.nil? raise "Parameter value for 'external_db_system_discovery_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_discovery_id) path = '/externalDbSystemDiscoveries/{externalDbSystemDiscoveryId}'.sub('{externalDbSystemDiscoveryId}', external_db_system_discovery_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_external_db_system_discovery') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_external_exadata_infrastructure(external_exadata_infrastructure_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_external_exadata_infrastructure API.
Deletes the Exadata infrastructure specified by externalExadataInfrastructureId.
2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 |
# File 'lib/oci/database_management/db_management_client.rb', line 2010 def delete_external_exadata_infrastructure(external_exadata_infrastructure_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_external_exadata_infrastructure.' if logger raise "Missing the required parameter 'external_exadata_infrastructure_id' when calling delete_external_exadata_infrastructure." if external_exadata_infrastructure_id.nil? raise "Parameter value for 'external_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(external_exadata_infrastructure_id) path = '/externalExadataInfrastructures/{externalExadataInfrastructureId}'.sub('{externalExadataInfrastructureId}', external_exadata_infrastructure_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_external_exadata_infrastructure') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_external_exadata_storage_connector API.
Deletes the Exadata storage server connector specified by exadataStorageConnectorId.
2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 |
# File 'lib/oci/database_management/db_management_client.rb', line 2071 def delete_external_exadata_storage_connector(external_exadata_storage_connector_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_external_exadata_storage_connector.' if logger raise "Missing the required parameter 'external_exadata_storage_connector_id' when calling delete_external_exadata_storage_connector." if external_exadata_storage_connector_id.nil? raise "Parameter value for 'external_exadata_storage_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(external_exadata_storage_connector_id) path = '/externalExadataStorageConnectors/{externalExadataStorageConnectorId}'.sub('{externalExadataStorageConnectorId}', external_exadata_storage_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_external_exadata_storage_connector') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_job(job_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_job API.
Deletes the job specified by jobId.
2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 |
# File 'lib/oci/database_management/db_management_client.rb', line 2131 def delete_job(job_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_job.' if logger raise "Missing the required parameter 'job_id' when calling delete_job." if job_id.nil? raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id) path = '/jobs/{jobId}'.sub('{jobId}', job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_job') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_managed_database_group(managed_database_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_managed_database_group API.
Deletes the Managed Database Group specified by managedDatabaseGroupId. If the group contains Managed Databases, then it cannot be deleted.
2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 |
# File 'lib/oci/database_management/db_management_client.rb', line 2193 def delete_managed_database_group(managed_database_group_id, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_managed_database_group.' if logger raise "Missing the required parameter 'managed_database_group_id' when calling delete_managed_database_group." if managed_database_group_id.nil? raise "Parameter value for 'managed_database_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_group_id) path = '/managedDatabaseGroups/{managedDatabaseGroupId}'.sub('{managedDatabaseGroupId}', managed_database_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_managed_database_group') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_preferred_credential(managed_database_id, credential_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_preferred_credential API.
Deletes the preferred credential based on the credentialName.
2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 |
# File 'lib/oci/database_management/db_management_client.rb', line 2249 def delete_preferred_credential(managed_database_id, credential_name, opts = {}) logger.debug 'Calling operation DbManagementClient#delete_preferred_credential.' if logger raise "Missing the required parameter 'managed_database_id' when calling delete_preferred_credential." if managed_database_id.nil? raise "Missing the required parameter 'credential_name' when calling delete_preferred_credential." if credential_name.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) raise "Parameter value for 'credential_name' must not be blank" if OCI::Internal::Util.blank_string?(credential_name) path = '/managedDatabases/{managedDatabaseId}/preferredCredentials/{credentialName}'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{credentialName}', credential_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#delete_preferred_credential') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_automatic_initial_plan_capture(managed_database_id, disable_automatic_initial_plan_capture_details, opts = {}) ⇒ Response
Click here to see an example of how to use disable_automatic_initial_plan_capture API.
Disables automatic initial plan capture.
2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 |
# File 'lib/oci/database_management/db_management_client.rb', line 2306 def disable_automatic_initial_plan_capture(managed_database_id, disable_automatic_initial_plan_capture_details, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_automatic_initial_plan_capture.' if logger raise "Missing the required parameter 'managed_database_id' when calling disable_automatic_initial_plan_capture." if managed_database_id.nil? raise "Missing the required parameter 'disable_automatic_initial_plan_capture_details' when calling disable_automatic_initial_plan_capture." if disable_automatic_initial_plan_capture_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableAutomaticInitialPlanCapture'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(disable_automatic_initial_plan_capture_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_automatic_initial_plan_capture') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_automatic_spm_evolve_advisor_task(managed_database_id, disable_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use disable_automatic_spm_evolve_advisor_task API.
Disables the Automatic SPM Evolve Advisor task.
One client controls both Automatic SQL Tuning Advisor and Automatic SPM Evolve Advisor. Thus, the same task enables or disables both.
2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 |
# File 'lib/oci/database_management/db_management_client.rb', line 2365 def disable_automatic_spm_evolve_advisor_task(managed_database_id, disable_automatic_spm_evolve_advisor_task_details, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_automatic_spm_evolve_advisor_task.' if logger raise "Missing the required parameter 'managed_database_id' when calling disable_automatic_spm_evolve_advisor_task." if managed_database_id.nil? raise "Missing the required parameter 'disable_automatic_spm_evolve_advisor_task_details' when calling disable_automatic_spm_evolve_advisor_task." if disable_automatic_spm_evolve_advisor_task_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableAutomaticSpmEvolveAdvisorTask'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(disable_automatic_spm_evolve_advisor_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_automatic_spm_evolve_advisor_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_external_db_system_database_management(external_db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use disable_external_db_system_database_management API.
Disables Database Management service for all the components of the specified external DB system (except databases).
2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 |
# File 'lib/oci/database_management/db_management_client.rb', line 2433 def disable_external_db_system_database_management(external_db_system_id, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_external_db_system_database_management.' if logger raise "Missing the required parameter 'external_db_system_id' when calling disable_external_db_system_database_management." if external_db_system_id.nil? raise "Parameter value for 'external_db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_id) path = '/externalDbSystems/{externalDbSystemId}/actions/disableDatabaseManagement'.sub('{externalDbSystemId}', external_db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_external_db_system_database_management') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_external_db_system_stack_monitoring(external_db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use disable_external_db_system_stack_monitoring API.
Disables Stack Monitoring for all the components of the specified external DB system (except databases).
2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 |
# File 'lib/oci/database_management/db_management_client.rb', line 2503 def disable_external_db_system_stack_monitoring(external_db_system_id, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_external_db_system_stack_monitoring.' if logger raise "Missing the required parameter 'external_db_system_id' when calling disable_external_db_system_stack_monitoring." if external_db_system_id.nil? raise "Parameter value for 'external_db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_id) path = '/externalDbSystems/{externalDbSystemId}/actions/disableStackMonitoring'.sub('{externalDbSystemId}', external_db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_external_db_system_stack_monitoring') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_external_exadata_infrastructure_management(external_exadata_infrastructure_id, opts = {}) ⇒ Response
Click here to see an example of how to use disable_external_exadata_infrastructure_management API.
Disables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. It covers the following components:
-
Exadata infrastructure
-
Exadata storage grid
-
Exadata storage server
Note that Database Management will not be disabled for the DB systems within the Exadata infrastructure and should be disabled explicitly, if required.
2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 |
# File 'lib/oci/database_management/db_management_client.rb', line 2579 def disable_external_exadata_infrastructure_management(external_exadata_infrastructure_id, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_external_exadata_infrastructure_management.' if logger raise "Missing the required parameter 'external_exadata_infrastructure_id' when calling disable_external_exadata_infrastructure_management." if external_exadata_infrastructure_id.nil? raise "Parameter value for 'external_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(external_exadata_infrastructure_id) path = '/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/disableDatabaseManagement'.sub('{externalExadataInfrastructureId}', external_exadata_infrastructure_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_external_exadata_infrastructure_management') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_high_frequency_automatic_spm_evolve_advisor_task(managed_database_id, disable_high_frequency_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use disable_high_frequency_automatic_spm_evolve_advisor_task API.
Disables the high-frequency Automatic SPM Evolve Advisor task.
It is available only on Oracle Exadata Database Machine, Oracle Database Exadata Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC).
2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 |
# File 'lib/oci/database_management/db_management_client.rb', line 2640 def disable_high_frequency_automatic_spm_evolve_advisor_task(managed_database_id, disable_high_frequency_automatic_spm_evolve_advisor_task_details, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_high_frequency_automatic_spm_evolve_advisor_task.' if logger raise "Missing the required parameter 'managed_database_id' when calling disable_high_frequency_automatic_spm_evolve_advisor_task." if managed_database_id.nil? raise "Missing the required parameter 'disable_high_frequency_automatic_spm_evolve_advisor_task_details' when calling disable_high_frequency_automatic_spm_evolve_advisor_task." if disable_high_frequency_automatic_spm_evolve_advisor_task_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableHighFrequencyAutomaticSpmEvolveAdvisorTask'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(disable_high_frequency_automatic_spm_evolve_advisor_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_high_frequency_automatic_spm_evolve_advisor_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_sql_plan_baselines_usage(managed_database_id, disable_sql_plan_baselines_usage_details, opts = {}) ⇒ Response
Click here to see an example of how to use disable_sql_plan_baselines_usage API.
Disables the use of SQL plan baselines stored in SQL Management Base.
When disabled, the optimizer does not use any SQL plan baselines.
2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 |
# File 'lib/oci/database_management/db_management_client.rb', line 2698 def disable_sql_plan_baselines_usage(managed_database_id, disable_sql_plan_baselines_usage_details, opts = {}) logger.debug 'Calling operation DbManagementClient#disable_sql_plan_baselines_usage.' if logger raise "Missing the required parameter 'managed_database_id' when calling disable_sql_plan_baselines_usage." if managed_database_id.nil? raise "Missing the required parameter 'disable_sql_plan_baselines_usage_details' when calling disable_sql_plan_baselines_usage." if disable_sql_plan_baselines_usage_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableSqlPlanBaselinesUsage'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(disable_sql_plan_baselines_usage_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#disable_sql_plan_baselines_usage') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#discover_external_exadata_infrastructure(discover_external_exadata_infrastructure_details, opts = {}) ⇒ Response
Click here to see an example of how to use discover_external_exadata_infrastructure API.
Completes the Exadata system prechecking on the following:
-
Verifies if the DB systems are valid RAC DB systems or return 400 status code with NON_RAC_DATABASE_SYSTEM error code.
-
Verifies if the ASM connector defined for each DB system or return 400 status code with CONNECTOR_NOT_DEFINED error code.
-
Verifies if the agents associated with ASM are valid and could be used for the Exadata storage servers or return 400 status code with INVALID_AGENT error code.
-
Verifies if it is an Exadata system or return 400 status code with INVALID_EXADATA_SYSTEM error code.
Starts the discovery process for the Exadata system infrastructure. The following resources/components are discovered
-
Exadata storage servers from each DB systems
-
Exadata storage grid for all Exadata storage servers
-
Exadata infrastructure
The same API covers both new discovery and rediscovery cases. For the new discovery case, new managed resources/sub-resources are created or the existing ones are overridden. For rediscovery case, the existing managed resources/sub-resources are checked to find out which ones should be added or which ones should be removed based on the unique key defined for each resource/sub-resource.
2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 |
# File 'lib/oci/database_management/db_management_client.rb', line 2783 def discover_external_exadata_infrastructure(discover_external_exadata_infrastructure_details, opts = {}) logger.debug 'Calling operation DbManagementClient#discover_external_exadata_infrastructure.' if logger raise "Missing the required parameter 'discover_external_exadata_infrastructure_details' when calling discover_external_exadata_infrastructure." if discover_external_exadata_infrastructure_details.nil? path = '/externalExadataInfrastructures/actions/discoverExadataInfrastructure' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(discover_external_exadata_infrastructure_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#discover_external_exadata_infrastructure') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalExadataInfrastructureDiscovery' ) end # rubocop:enable Metrics/BlockLength end |
#drop_sql_plan_baselines(managed_database_id, drop_sql_plan_baselines_details, opts = {}) ⇒ Response
Click here to see an example of how to use drop_sql_plan_baselines API.
Drops a single plan or all plans associated with a SQL statement.
2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 |
# File 'lib/oci/database_management/db_management_client.rb', line 2841 def drop_sql_plan_baselines(managed_database_id, drop_sql_plan_baselines_details, opts = {}) logger.debug 'Calling operation DbManagementClient#drop_sql_plan_baselines.' if logger raise "Missing the required parameter 'managed_database_id' when calling drop_sql_plan_baselines." if managed_database_id.nil? raise "Missing the required parameter 'drop_sql_plan_baselines_details' when calling drop_sql_plan_baselines." if drop_sql_plan_baselines_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/dropSqlPlanBaselines'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(drop_sql_plan_baselines_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#drop_sql_plan_baselines') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#drop_tablespace(managed_database_id, tablespace_name, drop_tablespace_details, opts = {}) ⇒ Response
Click here to see an example of how to use drop_tablespace API.
Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId.
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 |
# File 'lib/oci/database_management/db_management_client.rb', line 2904 def drop_tablespace(managed_database_id, tablespace_name, drop_tablespace_details, opts = {}) logger.debug 'Calling operation DbManagementClient#drop_tablespace.' if logger raise "Missing the required parameter 'managed_database_id' when calling drop_tablespace." if managed_database_id.nil? raise "Missing the required parameter 'tablespace_name' when calling drop_tablespace." if tablespace_name.nil? raise "Missing the required parameter 'drop_tablespace_details' when calling drop_tablespace." if drop_tablespace_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) raise "Parameter value for 'tablespace_name' must not be blank" if OCI::Internal::Util.blank_string?(tablespace_name) path = '/managedDatabases/{managedDatabaseId}/tablespaces/{tablespaceName}/actions/dropTablespace'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{tablespaceName}', tablespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(drop_tablespace_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#drop_tablespace') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::TablespaceAdminStatus' ) end # rubocop:enable Metrics/BlockLength end |
#enable_automatic_initial_plan_capture(managed_database_id, enable_automatic_initial_plan_capture_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_automatic_initial_plan_capture API.
Enables automatic initial plan capture. When enabled, the database checks whether executed SQL statements are eligible for automatic capture. It creates initial plan baselines for eligible statements.
By default, the database creates a SQL plan baseline for every eligible repeatable statement, including all recursive SQL and monitoring SQL. Thus, automatic capture may result in the creation of an extremely large number of plan baselines. To limit the statements that are eligible for plan baselines, configure filters.
2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 |
# File 'lib/oci/database_management/db_management_client.rb', line 2972 def enable_automatic_initial_plan_capture(managed_database_id, enable_automatic_initial_plan_capture_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_automatic_initial_plan_capture.' if logger raise "Missing the required parameter 'managed_database_id' when calling enable_automatic_initial_plan_capture." if managed_database_id.nil? raise "Missing the required parameter 'enable_automatic_initial_plan_capture_details' when calling enable_automatic_initial_plan_capture." if enable_automatic_initial_plan_capture_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticInitialPlanCapture'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(enable_automatic_initial_plan_capture_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_automatic_initial_plan_capture') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_automatic_spm_evolve_advisor_task(managed_database_id, enable_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_automatic_spm_evolve_advisor_task API.
Enables the Automatic SPM Evolve Advisor task. By default, the automatic task SYS_AUTO_SPM_EVOLVE_TASK
runs every day in the scheduled maintenance window.
The SPM Evolve Advisor performs the following tasks:
-
Checks AWR for top SQL
-
Looks for alternative plans in all available sources
-
Adds unaccepted plans to the plan history
-
Tests the execution of as many plans as possible during the maintenance window
-
Adds the alternative plan to the baseline if it performs better than the current plan
One client controls both Automatic SQL Tuning Advisor and Automatic SPM Evolve Advisor. Thus, the same task enables or disables both.
3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 |
# File 'lib/oci/database_management/db_management_client.rb', line 3040 def enable_automatic_spm_evolve_advisor_task(managed_database_id, enable_automatic_spm_evolve_advisor_task_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_automatic_spm_evolve_advisor_task.' if logger raise "Missing the required parameter 'managed_database_id' when calling enable_automatic_spm_evolve_advisor_task." if managed_database_id.nil? raise "Missing the required parameter 'enable_automatic_spm_evolve_advisor_task_details' when calling enable_automatic_spm_evolve_advisor_task." if enable_automatic_spm_evolve_advisor_task_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticSpmEvolveAdvisorTask'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(enable_automatic_spm_evolve_advisor_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_automatic_spm_evolve_advisor_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_external_db_system_database_management(external_db_system_id, enable_external_db_system_database_management_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_external_db_system_database_management API.
Enables Database Management service for all the components of the specified external DB system (except databases).
3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 |
# File 'lib/oci/database_management/db_management_client.rb', line 3109 def enable_external_db_system_database_management(external_db_system_id, enable_external_db_system_database_management_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_external_db_system_database_management.' if logger raise "Missing the required parameter 'external_db_system_id' when calling enable_external_db_system_database_management." if external_db_system_id.nil? raise "Missing the required parameter 'enable_external_db_system_database_management_details' when calling enable_external_db_system_database_management." if enable_external_db_system_database_management_details.nil? raise "Parameter value for 'external_db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_id) path = '/externalDbSystems/{externalDbSystemId}/actions/enableDatabaseManagement'.sub('{externalDbSystemId}', external_db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(enable_external_db_system_database_management_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_external_db_system_database_management') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_external_db_system_stack_monitoring(external_db_system_id, enable_external_db_system_stack_monitoring_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_external_db_system_stack_monitoring API.
Enables Stack Monitoring for all the components of the specified external DB system (except databases).
3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 |
# File 'lib/oci/database_management/db_management_client.rb', line 3181 def enable_external_db_system_stack_monitoring(external_db_system_id, enable_external_db_system_stack_monitoring_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_external_db_system_stack_monitoring.' if logger raise "Missing the required parameter 'external_db_system_id' when calling enable_external_db_system_stack_monitoring." if external_db_system_id.nil? raise "Missing the required parameter 'enable_external_db_system_stack_monitoring_details' when calling enable_external_db_system_stack_monitoring." if enable_external_db_system_stack_monitoring_details.nil? raise "Parameter value for 'external_db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_system_id) path = '/externalDbSystems/{externalDbSystemId}/actions/enableStackMonitoring'.sub('{externalDbSystemId}', external_db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(enable_external_db_system_stack_monitoring_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_external_db_system_stack_monitoring') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_external_exadata_infrastructure_management(external_exadata_infrastructure_id, enable_external_exadata_infrastructure_management_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_external_exadata_infrastructure_management API.
Enables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. It covers the following components:
-
Exadata infrastructure
-
Exadata storage grid
-
Exadata storage server
3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 |
# File 'lib/oci/database_management/db_management_client.rb', line 3257 def enable_external_exadata_infrastructure_management(external_exadata_infrastructure_id, enable_external_exadata_infrastructure_management_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_external_exadata_infrastructure_management.' if logger raise "Missing the required parameter 'external_exadata_infrastructure_id' when calling enable_external_exadata_infrastructure_management." if external_exadata_infrastructure_id.nil? raise "Missing the required parameter 'enable_external_exadata_infrastructure_management_details' when calling enable_external_exadata_infrastructure_management." if enable_external_exadata_infrastructure_management_details.nil? raise "Parameter value for 'external_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(external_exadata_infrastructure_id) path = '/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/enableDatabaseManagement'.sub('{externalExadataInfrastructureId}', external_exadata_infrastructure_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(enable_external_exadata_infrastructure_management_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_external_exadata_infrastructure_management') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_high_frequency_automatic_spm_evolve_advisor_task(managed_database_id, enable_high_frequency_automatic_spm_evolve_advisor_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_high_frequency_automatic_spm_evolve_advisor_task API.
Enables the high-frequency Automatic SPM Evolve Advisor task. The high-frequency task runs every hour and runs for no longer than 30 minutes. These settings are not configurable.
The high-frequency task complements the standard Automatic SPM Evolve Advisor task. They are independent and are scheduled through two different frameworks.
It is available only on Oracle Exadata Database Machine, Oracle Database Exadata Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC).
3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 |
# File 'lib/oci/database_management/db_management_client.rb', line 3324 def enable_high_frequency_automatic_spm_evolve_advisor_task(managed_database_id, enable_high_frequency_automatic_spm_evolve_advisor_task_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_high_frequency_automatic_spm_evolve_advisor_task.' if logger raise "Missing the required parameter 'managed_database_id' when calling enable_high_frequency_automatic_spm_evolve_advisor_task." if managed_database_id.nil? raise "Missing the required parameter 'enable_high_frequency_automatic_spm_evolve_advisor_task_details' when calling enable_high_frequency_automatic_spm_evolve_advisor_task." if enable_high_frequency_automatic_spm_evolve_advisor_task_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableHighFrequencyAutomaticSpmEvolveAdvisorTask'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(enable_high_frequency_automatic_spm_evolve_advisor_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_high_frequency_automatic_spm_evolve_advisor_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_sql_plan_baselines_usage(managed_database_id, enable_sql_plan_baselines_usage_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_sql_plan_baselines_usage API.
Enables the use of SQL plan baselines stored in SQL Management Base.
When enabled, the optimizer uses SQL plan baselines to select plans to avoid potential performance regressions.
3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 |
# File 'lib/oci/database_management/db_management_client.rb', line 3383 def enable_sql_plan_baselines_usage(managed_database_id, enable_sql_plan_baselines_usage_details, opts = {}) logger.debug 'Calling operation DbManagementClient#enable_sql_plan_baselines_usage.' if logger raise "Missing the required parameter 'managed_database_id' when calling enable_sql_plan_baselines_usage." if managed_database_id.nil? raise "Missing the required parameter 'enable_sql_plan_baselines_usage_details' when calling enable_sql_plan_baselines_usage." if enable_sql_plan_baselines_usage_details.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableSqlPlanBaselinesUsage'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(enable_sql_plan_baselines_usage_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#enable_sql_plan_baselines_usage') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_awr_snapshot(managed_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use generate_awr_snapshot API.
Creates an AWR snapshot for the target database.
3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 |
# File 'lib/oci/database_management/db_management_client.rb', line 3445 def generate_awr_snapshot(managed_database_id, opts = {}) logger.debug 'Calling operation DbManagementClient#generate_awr_snapshot.' if logger raise "Missing the required parameter 'managed_database_id' when calling generate_awr_snapshot." if managed_database_id.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/actions/generateAwrSnapshot'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#generate_awr_snapshot') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::SnapshotDetails' ) end # rubocop:enable Metrics/BlockLength end |
#get_awr_db_report(managed_database_id, awr_db_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_awr_db_report API.
Gets the AWR report for the specific database.
3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 |
# File 'lib/oci/database_management/db_management_client.rb', line 3525 def get_awr_db_report(managed_database_id, awr_db_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_awr_db_report.' if logger raise "Missing the required parameter 'managed_database_id' when calling get_awr_db_report." if managed_database_id.nil? raise "Missing the required parameter 'awr_db_id' when calling get_awr_db_report." if awr_db_id.nil? if opts[:report_type] && !%w[AWR ASH].include?(opts[:report_type]) raise 'Invalid value for "report_type", must be one of AWR, ASH.' end if opts[:report_format] && !%w[HTML TEXT].include?(opts[:report_format]) raise 'Invalid value for "report_format", must be one of HTML, TEXT.' end raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id) path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbReport'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:instNums] = OCI::ApiClient.build_collection_params(opts[:inst_nums], :csv) if opts[:inst_nums] && !opts[:inst_nums].empty? query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to] query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to] query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to] query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to] query_params[:reportType] = opts[:report_type] if opts[:report_type] query_params[:containerId] = opts[:container_id] if opts[:container_id] query_params[:reportFormat] = opts[:report_format] if opts[:report_format] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_awr_db_report') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::AwrDbReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_awr_db_sql_report(managed_database_id, awr_db_id, sql_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_awr_db_sql_report API.
Gets the SQL health check report for one SQL of the specific database.
3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 |
# File 'lib/oci/database_management/db_management_client.rb', line 3623 def get_awr_db_sql_report(managed_database_id, awr_db_id, sql_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_awr_db_sql_report.' if logger raise "Missing the required parameter 'managed_database_id' when calling get_awr_db_sql_report." if managed_database_id.nil? raise "Missing the required parameter 'awr_db_id' when calling get_awr_db_sql_report." if awr_db_id.nil? raise "Missing the required parameter 'sql_id' when calling get_awr_db_sql_report." if sql_id.nil? if opts[:report_format] && !%w[HTML TEXT].include?(opts[:report_format]) raise 'Invalid value for "report_format", must be one of HTML, TEXT.' end raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id) path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbSqlReport'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sqlId] = sql_id query_params[:instNum] = opts[:inst_num] if opts[:inst_num] query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to] query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to] query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to] query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to] query_params[:reportFormat] = opts[:report_format] if opts[:report_format] query_params[:containerId] = opts[:container_id] if opts[:container_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_awr_db_sql_report') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::AwrDbSqlReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_cluster_cache_metric(managed_database_id, start_time, end_time, opts = {}) ⇒ Response
Click here to see an example of how to use get_cluster_cache_metric API.
Gets the metrics related to cluster cache for the Oracle Real Application Clusters (Oracle RAC) database specified by managedDatabaseId.
3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 |
# File 'lib/oci/database_management/db_management_client.rb', line 3703 def get_cluster_cache_metric(managed_database_id, start_time, end_time, opts = {}) logger.debug 'Calling operation DbManagementClient#get_cluster_cache_metric.' if logger raise "Missing the required parameter 'managed_database_id' when calling get_cluster_cache_metric." if managed_database_id.nil? raise "Missing the required parameter 'start_time' when calling get_cluster_cache_metric." if start_time.nil? raise "Missing the required parameter 'end_time' when calling get_cluster_cache_metric." if end_time.nil? raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id) path = '/managedDatabases/{managedDatabaseId}/clusterCacheMetrics'.sub('{managedDatabaseId}', managed_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:startTime] = start_time query_params[:endTime] = end_time # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_cluster_cache_metric') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ClusterCacheMetric' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_fleet_health_metrics(compare_baseline_time, compare_target_time, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_fleet_health_metrics API.
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.
3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 |
# File 'lib/oci/database_management/db_management_client.rb', line 3772 def get_database_fleet_health_metrics(compare_baseline_time, compare_target_time, opts = {}) logger.debug 'Calling operation DbManagementClient#get_database_fleet_health_metrics.' if logger raise "Missing the required parameter 'compare_baseline_time' when calling get_database_fleet_health_metrics." if compare_baseline_time.nil? raise "Missing the required parameter 'compare_target_time' when calling get_database_fleet_health_metrics." if compare_target_time.nil? if opts[:compare_type] && !OCI::DatabaseManagement::Models::COMPARE_TYPE_ENUM.include?(opts[:compare_type]) raise 'Invalid value for "compare_type", must be one of the values in OCI::DatabaseManagement::Models::COMPARE_TYPE_ENUM.' end path = '/fleetMetrics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compareBaselineTime] = compare_baseline_time query_params[:compareTargetTime] = compare_target_time query_params[:managedDatabaseGroupId] = opts[:managed_database_group_id] if opts[:managed_database_group_id] query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:compareType] = opts[:compare_type] if opts[:compare_type] query_params[:filterByMetricNames] = opts[:filter_by_metric_names] if opts[:filter_by_metric_names] query_params[:filterByDatabaseType] = opts[:filter_by_database_type] if opts[:filter_by_database_type] query_params[:filterByDatabaseSubType] = opts[:filter_by_database_sub_type] if opts[:filter_by_database_sub_type] query_params[:filterByDatabaseDeploymentType] = opts[:filter_by_database_deployment_type] if opts[:filter_by_database_deployment_type] query_params[:filterByDatabaseVersion] = opts[:filter_by_database_version] if opts[:filter_by_database_version] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_database_fleet_health_metrics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::DatabaseFleetHealthMetrics' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_home_metrics(managed_database_id, start_time, end_time, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_home_metrics API.
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.
3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 |
# File 'lib/oci/database_management/db_management_client.rb', line 3846 def get_database_home_metrics(managed_database_id, start_time, end_time, opts = {}) logger.debug 'Calling operation DbManagementClient#get_database_home_metrics.' if logger raise "Missing the required parameter 'managed_database_id' when calling get_database_home_metrics." if managed_database_id.nil? raise "Missing the required parameter 'start_time' when calling get_database_home_metrics." if start_time.nil? raise "Missing the required parameter 'end_time' when calling get_database_home_metrics." if end_time.nil? path = '/databaseHomeMetrics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:managedDatabaseId] = managed_database_id query_params[:startTime] = start_time query_params[:endTime] = end_time # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_database_home_metrics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::DatabaseHomeMetrics' ) end # rubocop:enable Metrics/BlockLength end |
#get_db_management_private_endpoint(db_management_private_endpoint_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_db_management_private_endpoint API.
Gets the details of a specific Database Management private endpoint.
3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 |
# File 'lib/oci/database_management/db_management_client.rb', line 3904 def get_db_management_private_endpoint(db_management_private_endpoint_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_db_management_private_endpoint.' if logger raise "Missing the required parameter 'db_management_private_endpoint_id' when calling get_db_management_private_endpoint." if db_management_private_endpoint_id.nil? raise "Parameter value for 'db_management_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(db_management_private_endpoint_id) path = '/dbManagementPrivateEndpoints/{dbManagementPrivateEndpointId}'.sub('{dbManagementPrivateEndpointId}', db_management_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_db_management_private_endpoint') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::DbManagementPrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_asm(external_asm_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_asm API.
Gets the details for the external ASM specified by externalAsmId
.
3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 |
# File 'lib/oci/database_management/db_management_client.rb', line 3959 def get_external_asm(external_asm_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_asm.' if logger raise "Missing the required parameter 'external_asm_id' when calling get_external_asm." if external_asm_id.nil? raise "Parameter value for 'external_asm_id' must not be blank" if OCI::Internal::Util.blank_string?(external_asm_id) path = '/externalAsms/{externalAsmId}'.sub('{externalAsmId}', external_asm_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_asm') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalAsm' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_asm_configuration(external_asm_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_asm_configuration API.
Gets configuration details including disk groups for the external ASM specified by externalAsmId
.
4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 |
# File 'lib/oci/database_management/db_management_client.rb', line 4014 def get_external_asm_configuration(external_asm_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_asm_configuration.' if logger raise "Missing the required parameter 'external_asm_id' when calling get_external_asm_configuration." if external_asm_id.nil? raise "Parameter value for 'external_asm_id' must not be blank" if OCI::Internal::Util.blank_string?(external_asm_id) path = '/externalAsms/{externalAsmId}/configuration'.sub('{externalAsmId}', external_asm_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_asm_configuration') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalAsmConfiguration' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_asm_instance(external_asm_instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_asm_instance API.
Gets the details for the external ASM instance specified by externalAsmInstanceId
.
4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 |
# File 'lib/oci/database_management/db_management_client.rb', line 4069 def get_external_asm_instance(external_asm_instance_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_asm_instance.' if logger raise "Missing the required parameter 'external_asm_instance_id' when calling get_external_asm_instance." if external_asm_instance_id.nil? raise "Parameter value for 'external_asm_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(external_asm_instance_id) path = '/externalAsmInstances/{externalAsmInstanceId}'.sub('{externalAsmInstanceId}', external_asm_instance_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_asm_instance') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalAsmInstance' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_cluster(external_cluster_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_cluster API.
Gets the details for the external cluster specified by externalClusterId
.
4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 |
# File 'lib/oci/database_management/db_management_client.rb', line 4124 def get_external_cluster(external_cluster_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_cluster.' if logger raise "Missing the required parameter 'external_cluster_id' when calling get_external_cluster." if external_cluster_id.nil? raise "Parameter value for 'external_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(external_cluster_id) path = '/externalClusters/{externalClusterId}'.sub('{externalClusterId}', external_cluster_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_cluster') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalCluster' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_cluster_instance(external_cluster_instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_cluster_instance API.
Gets the details for the external cluster instance specified by externalClusterInstanceId
.
4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 |
# File 'lib/oci/database_management/db_management_client.rb', line 4179 def get_external_cluster_instance(external_cluster_instance_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_cluster_instance.' if logger raise "Missing the required parameter 'external_cluster_instance_id' when calling get_external_cluster_instance." if external_cluster_instance_id.nil? raise "Parameter value for 'external_cluster_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(external_cluster_instance_id) path = '/externalClusterInstances/{externalClusterInstanceId}'.sub('{externalClusterInstanceId}', external_cluster_instance_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_cluster_instance') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalClusterInstance' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_db_home(external_db_home_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_db_home API.
Gets the details for the external DB home specified by externalDbHomeId
.
4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 |
# File 'lib/oci/database_management/db_management_client.rb', line 4234 def get_external_db_home(external_db_home_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_db_home.' if logger raise "Missing the required parameter 'external_db_home_id' when calling get_external_db_home." if external_db_home_id.nil? raise "Parameter value for 'external_db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_home_id) path = '/externalDbHomes/{externalDbHomeId}'.sub('{externalDbHomeId}', external_db_home_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_db_home') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DatabaseManagement::Models::ExternalDbHome' ) end # rubocop:enable Metrics/BlockLength end |
#get_external_db_node(external_db_node_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_external_db_node API.
Gets the details for the external DB node specified by externalDbNodeId
.
4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 |
# File 'lib/oci/database_management/db_management_client.rb', line 4289 def get_external_db_node(external_db_node_id, opts = {}) logger.debug 'Calling operation DbManagementClient#get_external_db_node.' if logger raise "Missing the required parameter 'external_db_node_id' when calling get_external_db_node." if external_db_node_id.nil? raise "Parameter value for 'external_db_node_id' must not be blank" if OCI::Internal::Util.blank_string?(external_db_node_id) path = '/externalDbNodes/{externalDbNodeId}'.sub('{externalDbNodeId}', external_db_node_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbManagementClient#get_external_db_node') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, |