Skip to content

Commit 76d41ea

Browse files
committed
mc-dr-cross-regio-terraform
1 parent d8d8990 commit 76d41ea

File tree

7 files changed

+621
-0
lines changed

7 files changed

+621
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Copyright (c) 2025 Oracle and/or its affiliates.
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any
6+
person obtaining a copy of this software, associated documentation and/or data
7+
(collectively the "Software"), free of charge and under any and all copyright
8+
rights in the Software, and any and all patent rights owned or freely
9+
licensable by each licensor hereunder covering either (i) the unmodified
10+
Software as contributed to or provided by such licensor, or (ii) the Larger
11+
Works (as defined below), to deal in both
12+
13+
(a) the Software, and
14+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15+
one is included with the Software (each a "Larger Work" to which the Software
16+
is contributed by such licensors),
17+
18+
without restriction, including without limitation the rights to copy, create
19+
derivative works of, display, perform, and distribute the Software and make,
20+
use, sell, offer for sale, import, export, have made, and have sold the
21+
Software and the Larger Work(s), and to sublicense the foregoing rights on
22+
either these or other terms.
23+
24+
This license is subject to the following condition:
25+
The above copyright notice and either this complete permission notice or at
26+
a minimum a reference to the UPL must be included in all copies or
27+
substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Implement Multicloud cross-region disaster recovery for Oracle Database@X (Azure, GCP, AWS)
2+
3+
This repository allows you to deploy all the needed networking for implementing cross-region disaster recovery in oracle database@X (AWS, Azure, Google Cloud).
4+
It configures all the networking detailed in the following reference architectures:
5+
6+
- [Implement cross-region disaster recovery for Exadata Database on Oracle Database@Azure](https://docs.oracle.com/en/solutions/exadb-dr-on-db-azure/index.html#GUID-A43C87C3-C331-415A-9951-86C454C8E9C3)
7+
- [Implement cross-region disaster recovery for Exadata Database Service on Google Cloud](https://docs.oracle.com/en/solutions/exadb-dr-on-db-google-cloud/index.html#GUID-041B1ED9-43B8-41C3-90A6-1695668F7DB6)
8+
- [Oracle Database@AWS Achieves Gold MAA Certification for Maximum Availability Architecture](https://blogs.oracle.com/maa/post/oracle-databaseaws-achieves-gold-maa-certification)
9+
10+
## Architecture diagram
11+
12+
<img src="files/exadb-dr-db-azure.png" width="800" />
13+
14+
## Requirements
15+
16+
- An active Oracle Cloud Infrastructure Account.
17+
- An Oracle Exadata Database@X deployment in primary region and Standby region
18+
- API Key Authentication for OCI Terraform provider -> https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
19+
- Terraform
20+
- Permission to manage virtual-network-family resources to a specific group within a compartment in your Oracle Cloud Infrastructure tenancy
21+
- VCN primary and VCN Standby OCIDs
22+
- Non-overlapping IP Addresses for Hub VCN Primary and Standby
23+
24+
## Steps
25+
26+
- Duplicate the "terraform.tfvars.template" file and rename it to "terraform.tfvars"
27+
- In the new "terraform.tfvars" file complete the "OCI Tenancy Credentials" and "Oracle Cloud Infrastructure Variables"
28+
29+
## Deployment
30+
31+
Create the Resources using the following commands:
32+
33+
```bash
34+
terraform init
35+
terraform import oci_core_vcn.vcn_primary ocid1.vcn.primary-xxxxxxxxxxxxx
36+
terraform import oci_core_vcn.vcn_standby ocid1.vcn.standby-xxxxxxxxxxxxx
37+
terraform plan
38+
terraform apply
39+
```
40+
41+
After successfully running terraform apply, the administrator should update the security lists and NSGs with the required ports, then complete the Data Guard association.
42+
43+
Use the following command to destroy the deployment:
44+
45+
```bash
46+
terraform destroy
47+
```
48+
## Acknowledgements
49+
50+
* **Author** - [Ricardo Anda], Oracle
51+
* **Contributor** [Ejaz Akram],[Julien Silverston], Oracle
52+
* **Last update** - August 12, 2025
257 KB
Loading

0 commit comments

Comments
 (0)