Skip to content

Commit 93d8fb3

Browse files
authored
Merge pull request #2051 from oracle/release_gh
Releasing version 5.31.0
2 parents c05f614 + 7e86d64 commit 93d8fb3

File tree

649 files changed

+16002
-2157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

649 files changed

+16002
-2157
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 5.31.0 (February 28, 2024)
2+
3+
### Added
4+
- Support for Database Management: Platform Bar - Tagging
5+
- Support for Queue Source for OCH
6+
- Support for KMS Automatic Key Rotation
7+
- Support for Operator Access Control Enhancements
8+
- Support for Add Standby ACDs / Enable AuDG | ADB-C@C
9+
- Support for Support for Project Indigo and Cluster Placement Groups- phase II
10+
111
## 5.30.0 (February 21, 2024)
212

313
### Added

examples/database/db_systems/db_exacs/resources.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resource "oci_database_cloud_exadata_infrastructure" "test_cloud_exadata_infrast
88
shape = var.cloud_exadata_infrastructure_shape
99

1010
#Optional
11+
cluster_placement_group_id = var.cloud_exadata_infrastructure_cluster_placement_group_id
1112
compute_count = var.cloud_exadata_infrastructure_compute_count
1213
storage_count = var.cloud_exadata_infrastructure_storage_count
1314
}

examples/database/db_systems/db_exacs/variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ variable "cloud_exadata_infrastructure_shape" {
1818
default = "Exadata.X8M"
1919
}
2020

21+
variable "cloud_exadata_infrastructure_cluster_placement_group_id" {
22+
}
23+
2124
variable "cloud_exadata_infrastructure_compute_count" {
2225
default = "2"
2326
}

examples/database/exadata_cc/adbd-dg/main.tf

Lines changed: 147 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ resource "oci_database_autonomous_vm_cluster" "primary_autonomous_vm_cluster" {
233233
display_name = "PrimaryVmCluster"
234234
exadata_infrastructure_id = oci_database_exadata_infrastructure.primary_exadata_infrastructure.id
235235
vm_cluster_network_id = oci_database_vm_cluster_network.primary_vm_cluster_network.id
236-
cpu_core_count_per_node = "10"
236+
cpu_core_count_per_node = "20"
237237
autonomous_data_storage_size_in_tbs = "2.0"
238238
memory_per_oracle_compute_unit_in_gbs = "12"
239239
total_container_databases = "2"
@@ -256,7 +256,7 @@ resource "oci_database_autonomous_vm_cluster" "standby_autonomous_vm_cluster" {
256256
display_name = "StandbyVmCluster"
257257
exadata_infrastructure_id = oci_database_exadata_infrastructure.standby_exadata_infrastructure.id
258258
vm_cluster_network_id = oci_database_vm_cluster_network.standby_vm_cluster_network.id
259-
cpu_core_count_per_node = "10"
259+
cpu_core_count_per_node = "20"
260260
autonomous_data_storage_size_in_tbs = "2.0"
261261
memory_per_oracle_compute_unit_in_gbs = "12"
262262
total_container_databases = "2"
@@ -273,6 +273,68 @@ resource "oci_database_autonomous_vm_cluster" "standby_autonomous_vm_cluster" {
273273
}
274274
}
275275

276+
resource "oci_database_autonomous_vm_cluster" "test_autonomous_vm_cluster_primary" {
277+
#Required
278+
compartment_id = var.compartment_ocid
279+
display_name = "TestAutonomousVmClusterPrimary"
280+
exadata_infrastructure_id = oci_database_exadata_infrastructure.primary_exadata_infrastructure.id
281+
vm_cluster_network_id = oci_database_vm_cluster_network.primary_vm_cluster_network.id
282+
cpu_core_count_per_node = "20"
283+
autonomous_data_storage_size_in_tbs = "2.0"
284+
memory_per_oracle_compute_unit_in_gbs = "12"
285+
total_container_databases = "2"
286+
#Optional
287+
is_local_backup_enabled = "false"
288+
license_model = "LICENSE_INCLUDED"
289+
time_zone = "US/Pacific"
290+
defined_tags = {
291+
"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "SampleTagValue"
292+
}
293+
294+
freeform_tags = {
295+
"Department" = "Finance"
296+
}
297+
298+
//To ignore changes to autonomous_data_storage_size_in_tbs and db_servers
299+
lifecycle {
300+
ignore_changes = [
301+
autonomous_data_storage_size_in_tbs,
302+
db_servers,
303+
]
304+
}
305+
}
306+
307+
resource "oci_database_autonomous_vm_cluster" "test_autonomous_vm_cluster_standby" {
308+
#Required
309+
compartment_id = var.compartment_ocid
310+
display_name = "TestAutonomousVmClusterStandby"
311+
exadata_infrastructure_id = oci_database_exadata_infrastructure.standby_exadata_infrastructure.id
312+
vm_cluster_network_id = oci_database_vm_cluster_network.standby_vm_cluster_network.id
313+
cpu_core_count_per_node = "20"
314+
autonomous_data_storage_size_in_tbs = "2.0"
315+
memory_per_oracle_compute_unit_in_gbs = "12"
316+
total_container_databases = "2"
317+
#Optional
318+
is_local_backup_enabled = "false"
319+
license_model = "LICENSE_INCLUDED"
320+
time_zone = "US/Pacific"
321+
defined_tags = {
322+
"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "SampleTagValue"
323+
}
324+
325+
freeform_tags = {
326+
"Department" = "Finance"
327+
}
328+
329+
//To ignore changes to autonomous_data_storage_size_in_tbs and db_servers
330+
lifecycle {
331+
ignore_changes = [
332+
autonomous_data_storage_size_in_tbs,
333+
db_servers,
334+
]
335+
}
336+
}
337+
276338
# DG enabled ACD resource
277339
resource "oci_database_autonomous_container_database" "dg_autonomous_container_database" {
278340
autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.primary_autonomous_vm_cluster.id
@@ -320,8 +382,8 @@ resource "oci_database_autonomous_database" "test_autonomous_database" {
320382
#Required
321383
admin_password = random_string.autonomous_database_admin_password.result
322384
compartment_id = var.compartment_ocid
323-
cpu_core_count = "1"
324385
data_storage_size_in_tbs = "1"
386+
compute_count = 16
325387
db_name = "atpdb1"
326388

327389
#Optional
@@ -357,13 +419,6 @@ resource "oci_database_autonomous_container_database_dataguard_association_opera
357419
oci_database_autonomous_container_database_dataguard_association_operation.failover]
358420
}
359421

360-
resource "oci_database_autonomous_container_database_dataguard_association" dgresource{
361-
autonomous_container_database_id = oci_database_autonomous_container_database.dg_autonomous_container_database.id
362-
autonomous_container_database_dataguard_association_id = data.oci_database_autonomous_container_database_dataguard_associations.primary_autonomous_dg_associations.autonomous_container_database_dataguard_associations[0].id
363-
is_automatic_failover_enabled = false
364-
protection_mode = "MAXIMUM_AVAILABILITY"
365-
fast_start_fail_over_lag_limit_in_seconds = null
366-
}
367422

368423
data "oci_database_db_servers" "primary_db_servers" {
369424
#Required
@@ -376,6 +431,88 @@ data "oci_database_db_servers" "standby_db_servers" {
376431
compartment_id = var.compartment_ocid
377432
exadata_infrastructure_id = oci_database_exadata_infrastructure.standby_exadata_infrastructure.id
378433
}
434+
435+
resource "oci_database_autonomous_container_database" "test_autonomous_container_database_primary" {
436+
#Required
437+
autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster_primary.id
438+
display_name = "PrimaryACD"
439+
patch_model = "RELEASE_UPDATES"
440+
db_version = "19.21.0.1.0"
441+
db_name = "PRIMARY"
442+
443+
#Optional
444+
backup_config {
445+
backup_destination_details {
446+
type = "LOCAL"
447+
}
448+
recovery_window_in_days = "7"
449+
}
450+
451+
compartment_id = var.compartment_ocid
452+
freeform_tags = var.autonomous_database_freeform_tags
453+
service_level_agreement_type = "STANDARD"
454+
455+
maintenance_window_details {
456+
preference = "CUSTOM_PREFERENCE"
457+
458+
days_of_week {
459+
name = "MONDAY"
460+
}
461+
462+
hours_of_day = ["4"]
463+
464+
months {
465+
name = "JANUARY"
466+
}
467+
468+
months {
469+
name = "APRIL"
470+
}
471+
472+
months {
473+
name = "JULY"
474+
}
475+
476+
months {
477+
name = "OCTOBER"
478+
}
479+
480+
weeks_of_month = ["2"]
481+
}
482+
version_preference = "LATEST_RELEASE_UPDATE"
483+
484+
lifecycle {
485+
ignore_changes = [
486+
peer_autonomous_container_database_display_name,
487+
peer_autonomous_exadata_infrastructure_id,
488+
peer_autonomous_vm_cluster_id,
489+
peer_cloud_autonomous_vm_cluster_id,
490+
peer_db_unique_name,
491+
service_level_agreement_type,
492+
protection_mode,
493+
peer_autonomous_container_database_backup_config,
494+
]
495+
}
496+
497+
}
498+
499+
resource "oci_database_autonomous_container_database_dataguard_association" "test_autonomous_container_database_dataguard_association" {
500+
#Required
501+
autonomous_container_database_id = oci_database_autonomous_container_database.test_autonomous_container_database_primary.id
502+
is_automatic_failover_enabled = false
503+
protection_mode = "MAXIMUM_AVAILABILITY"
504+
peer_autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster_standby.id
505+
peer_autonomous_container_database_display_name = "StandbyACD"
506+
peer_autonomous_container_database_compartment_id = var.compartment_ocid
507+
peer_autonomous_container_database_backup_config {
508+
backup_destination_details {
509+
type = "LOCAL"
510+
}
511+
recovery_window_in_days = "7"
512+
}
513+
peer_db_unique_name = "Y3Z69J5C_sea1835"
514+
}
515+
379516
#### End Resources ####
380517
#######################
381518

examples/database/exadata_cc/adbd/acd.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "random_string" "db_unique_name" {
22
length = 8
33
special = false
4-
number = false
4+
numeric = false
55
}
66

77
resource "oci_database_autonomous_container_database" "autonomous_container_database" {
88
autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id
9-
db_version = "19.20.0.1.0"
9+
db_version = "19.21.0.1.0"
1010
backup_config {
1111
backup_destination_details {
1212
type = "LOCAL"

examples/databasemanagement/db_params/main.tf

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
22
// Licensed under the Mozilla Public License v2.0
33

44
variable "tenancy_ocid" {}
@@ -15,6 +15,10 @@ provider "oci" {
1515
region = var.region
1616
}
1717

18+
variable "managed_database_id" {
19+
default = "<database.ocid>"
20+
}
21+
1822
variable "managed_databases_database_parameter_credentials_password" {
1923
default = "DBPassword"
2024
}
@@ -51,7 +55,7 @@ variable "managed_databases_database_parameter_source" {
5155
default = "CURRENT"
5256
}
5357

54-
58+
# Change a database parameter value.
5559
resource "oci_database_management_managed_databases_change_database_parameter" "test_managed_databases_change_database_parameter" {
5660
#Required
5761
credentials {
@@ -73,7 +77,7 @@ resource "oci_database_management_managed_databases_change_database_parameter" "
7377
scope = var.managed_databases_database_parameter_scope
7478
}
7579

76-
80+
# Reset a database parameter value.
7781
resource "oci_database_management_managed_databases_reset_database_parameter" "test_managed_databases_reset_database_parameter" {
7882
#Required
7983
credentials {
@@ -88,13 +92,13 @@ resource "oci_database_management_managed_databases_reset_database_parameter" "t
8892
scope = var.managed_databases_database_parameter_scope
8993
}
9094

91-
92-
data "oci_database_management_managed_databases_database_parameter" "test_managed_databases_database_parameter" {
95+
# List database parameters filtered by their name and source.
96+
data "oci_database_management_managed_databases_database_parameters" "test_managed_databases_database_parameter" {
9397
#Required
9498
managed_database_id = var.managed_database_id
9599

96100
#Optional
97101
is_allowed_values_included = var.managed_databases_database_parameter_is_allowed_values_included
98102
name = var.managed_databases_database_parameter_parameters_name
99103
source = var.managed_databases_database_parameter_source
100-
}
104+
}

0 commit comments

Comments
 (0)