ODB Network
An ODB network can be modifed by adding or removing subnets. You can add up to five (5) subnets. For detailed steps on creating subnets, see the Create - ODB Network section.
ODB Network can be modified only from Google Cloud Console or Google Cloud CLI .
There is currently no content for this page. Oracle AI Database@Google Cloud team intends to add content here, and this placeholder text is provided until that text is added. The Oracle AI Database@Google Cloud team is excited about future new features, enhancements, and fixes to this product and this accompanying documentation. We strongly recommend you watch this page for those updates.
ODB Network can be modified only from Google Cloud Console or Google Cloud CLI .
You can modify an ODB Network in Google Cloud by adding or removing subnets using Google Cloud Terraform provider. To add a subnet, append the Terraform configuration file with an ODB Network Subnet resource block.
Prerequisites
- Terraform or OpenTofu installed
- Google Cloud credentials configured
- HashiCorp Google Cloud provider version >= 7.0
Sample Terraform Configuration Using Google Cloud Terraform Provider# Set Google Cloud Provider source and version terraform { required_providers { google = { source = "hashicorp/google" version = "~> 7.0" # Use the latest major version } # OCI Provider oci = { source = "oracle/oci" version = "7.29.0" } } } # Configure the Google Cloud Provider provider "google" { project = "xxxxxxxxxxxx" # Replace with your Google Cloud Project region = "us-central1" } # Create a VPC with Application Subnet resource "google_compute_network" "vpc_network" { name = "demo-vpc-tf" auto_create_subnetworks = false # Sets the VPC to "Custom" mode mtu = 1460 } # Define an Application Subnet within the VPC resource "google_compute_subnetwork" "app_subnet" { name = "app-subnet" ip_cidr_range = "157.0.1.0/24" region = "us-central1" network = google_compute_network.vpc_network.id } # Create ODB Network resource "google_oracle_database_odb_network" "odb_network"{ odb_network_id = "demo-odb-network-tf" location = "us-central1" project = "xxxxxxxxxxxx" # Replace with your Google Cloud Project network = google_compute_network.vpc_network.id gcp_oracle_zone = "us-central1-a-r1" labels = { env = "dev" } deletion_protection = "false" } # Create ODB Network Subnets resource "google_oracle_database_odb_subnet" "odb_client_subnet"{ odb_subnet_id = "client-subnet" location = "us-central1" project = "xxxxxxxxxxxx" # Replace with your Google Cloud Project odbnetwork = google_oracle_database_odb_network.odb_network.odb_network_id cidr_range = "192.168.1.0/24" purpose = "CLIENT_SUBNET" labels = { env = "dev" } deletion_protection = "false" } resource "google_oracle_database_odb_subnet" "odb_backup_subnet"{ odb_subnet_id = "backup-subnet" location = "us-central1" project = "xxxxxxxxxxxx" # Replace with your Google Cloud Project odbnetwork = google_oracle_database_odb_network.odb_network.odb_network_id cidr_range = "192.168.2.0/28" purpose = "BACKUP_SUBNET" labels = { env = "dev" } deletion_protection = "false" } resource "google_oracle_database_odb_subnet" "odb_client_subnet_02"{ odb_subnet_id = "client-subnet-02" location = "us-central1" project = "xxxxxxxxxxxx" # Replace with your Google Cloud Project odbnetwork = google_oracle_database_odb_network.odb_network.odb_network_id cidr_range = "192.168.3.0/24" purpose = "CLIENT_SUBNET" labels = { env = "dev" } deletion_protection = "false" }