@@ -9,7 +9,7 @@ resource "oci_database_db_system" "test_db_system" {
99 db_home {
1010 database {
1111 admin_password = " ${ var . db_admin_password } "
12- db_name = " ${ var . db_name } "
12+ db_name = " aTFdb1 "
1313 character_set = " ${ var . character_set } "
1414 ncharacter_set = " ${ var . n_character_set } "
1515 db_workload = " ${ var . db_workload } "
@@ -18,11 +18,6 @@ resource "oci_database_db_system" "test_db_system" {
1818 db_backup_config {
1919 auto_backup_enabled = true
2020 recovery_window_in_days = 10
21-
22- backup_destination_details {
23- id = " ${ oci_database_backup_destination . test_backup_destination_nfs1 . id } "
24- type = " NFS"
25- }
2621 }
2722
2823 freeform_tags = {
@@ -31,7 +26,7 @@ resource "oci_database_db_system" "test_db_system" {
3126 }
3227
3328 db_version = " ${ var . db_version } "
34- display_name = " ${ var . db_home_display_name } "
29+ display_name = " MyTFDBHome1 "
3530 }
3631
3732 disk_redundancy = " ${ var . db_disk_redundancy } "
@@ -55,29 +50,13 @@ resource "oci_database_db_system" "test_db_system" {
5550 }
5651}
5752
58- resource "oci_database_backup_destination" "test_backup_destination_nfs1" {
59- # Required
60- compartment_id = " ${ var . compartment_ocid } "
61- display_name = " testBackupDestinationNFS"
62- type = " NFS"
63-
64- # Optional
65- connection_string = " connectionString"
66-
67- freeform_tags = {
68- " Department" = " Finance"
69- }
70-
71- local_mount_point_path = " local_mount_point_path"
72- }
73-
7453// The creation of an oci_database_db_system requires that it be created with exactly one oci_database_db_home. Therefore the first db home will have to be a property of the db system resource and any further db homes to be added to the db system will have to be added as first class resources using "oci_database_db_home".
7554resource "oci_database_db_home" "test_db_home" {
7655 db_system_id = " ${ oci_database_db_system . test_db_system . id } "
7756
7857 database {
7958 admin_password = " ${ var . db_admin_password } "
80- db_name = " ${ var . db_home_db_name } 3 "
59+ db_name = " aTFdb2 "
8160 character_set = " ${ var . character_set } "
8261 ncharacter_set = " ${ var . n_character_set } "
8362 db_workload = " ${ var . db_workload } "
@@ -89,32 +68,11 @@ resource "oci_database_db_home" "test_db_home" {
8968
9069 db_backup_config {
9170 auto_backup_enabled = true
92-
93- backup_destination_details {
94- id = " ${ oci_database_backup_destination . test_backup_destination_nfs2 . id } "
95- type = " NFS"
96- }
9771 }
9872 }
9973
10074 db_version = " ${ var . db_version } "
101- display_name = " ${ var . db_home_display_name } "
102- }
103-
104- resource "oci_database_backup_destination" "test_backup_destination_nfs2" {
105- # Required
106- compartment_id = " ${ var . compartment_ocid } "
107- display_name = " testBackupDestinationNFS"
108- type = " NFS"
109-
110- # Optional
111- connection_string = " connectionString"
112-
113- freeform_tags = {
114- " Department" = " Finance"
115- }
116-
117- local_mount_point_path = " local_mount_point_path"
75+ display_name = " MyTFDBHome2"
11876}
11977
12078resource "oci_database_backup" "test_backup" {
0 commit comments