Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to create an ODB Network and ODB Subnets
in Google Cloud.
An ODB Network provides connectivity between Oracle Database@Google Cloud resources
in the Oracle Cloud Infrastructure (OCI) child site and your Google Cloud
VPC network. The ODB Network maps OCI network resources, such as Virtual Cloud
Networks (VCNs), and their related subnets back to Google Cloud.
When you create an ODB Network, Oracle Database@Google Cloud automatically
provisions all of the underlying components that are required to establish this
connectivity. This includes the VCN, subnets, DNS zones, and the other objects
that maintain the private connection between Google Cloud and the OCI
child site.
Oracle Database@Google Cloud also lets you create up to five ODB Subnets
within an ODB Network for the ease of network management.
Before you begin
Make sure that you have the required Identity and Access Management (IAM) roles and
permissions to create an ODB Network and ODB Subnets
as described in Deploy Oracle Database@Google Cloud environment.
Create an ODB Network
An ODB Network must be created in the Google Cloud project that is
associated to the billing account that you used for your marketplace order. In
the case of a Shared VPC deployment, this project is also your host
project and contains the Shared VPC network as well.
ODB_NETWORK_ID: a unique identifier for your
ODB Network.
PROJECT_ID: the ID of your Google Cloud project in
which to create the ODB Network. If you're using a
Shared VPC, then this is the ID of your host project.
REGION: the region in which to create the
ODB Network.
VPC_NETWORK: the ID of the VPC network which you want to
associate with the ODB Network.
API
To create an ODB Network, run the following curl command:
PROJECT_ID: the ID of your Google Cloud project in
which to create the ODB Network. If you're using a Shared VPC,
then this is the ID of your host project.
REGION: the region in which to create the ODB Network.
ODB_NETWORK_ID: a unique identifier for your ODB Network.
VPC_NETWORK: the ID of the VPC network which you want to
associate with the ODB Network.
After the ODB Network is created, you can create ODB Subnets.
Create an ODB Subnet
You can create two types of ODB Subnets:
Client ODB Subnets to connect to applications.
Backup ODB Subnets to back up database services.
For an ODB Network, you can create up to five ODB Subnets.
A single Client ODB Subnet can be used by both Autonomous Databases
and VM Clusters.
The number of ODB Subnets required depends on which service you
want to use:
A VM Cluster requires one client subnet and one backup subnet.
An Autonomous Database requires one client subnet.
ODB_SUBNET_ID: a unique identifier for your
ODB Subnet.
PROJECT_ID: the ID of your Google Cloud project in
which to create the ODB Network. If you're using a
Shared VPC, then this is the ID of your host project.
REGION: the region in which to create the
ODB Subnet.
ODB_NETWORK_ID: the ID of your ODB Network for
which you're creating the ODB Subnet.
CIDR_RANGE: To create a client subnet, provide the IPv4 address
or address range that can access your cluster. If you're creating a backup
subnet, then provide the IPv4 address or address range that serves as
backup to access your cluster.
Address ranges must use a valid
CIDR notation
(for example, 10.10.10.0/24).
PURPOSE: the type of the ODB Subnet that you want to
create. The accepted values are client_subnet or backup_subnet.
API
To create an ODB Subnet, run the following curl command:
PROJECT_ID: the ID of your Google Cloud project
that contains your ODB Network for which you want to create an
ODB Subnet. If you're using a Shared VPC, then this is the
ID of your host project.
REGION: the region of your ODB Network.
ODB_NETWORK_ID: the ID of your ODB Network for which you're
creating the ODB Subnet.
ODB_SUBNET_ID: a unique identifier for your ODB Subnet.
CIDR_RANGE: To create a client subnet, provide the IPv4 address
or address range that can access your cluster. If you're creating a backup
subnet, then provide the IPv4 address or address range that serves as
backup to access your cluster.
Address ranges must use a valid CIDR notation
(for example, 10.10.10.0/24).
PURPOSE: the type of the ODB Subnet that you want to
create. The accepted values are client_subnet or backup_subnet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Create ODB Network and ODB Subnets\n\nThis page describes how to create an ODB Network and ODB Subnets\nin Google Cloud.\n\nAn ODB Network provides connectivity between Oracle Database@Google Cloud resources\nin the Oracle Cloud Infrastructure (OCI) child site and your Google Cloud\nVPC network. The ODB Network maps OCI network resources, such as Virtual Cloud\nNetworks (VCNs), and their related subnets back to Google Cloud.\n\nWhen you create an ODB Network, Oracle Database@Google Cloud automatically\nprovisions all of the underlying components that are required to establish this\nconnectivity. This includes the VCN, subnets, DNS zones, and the other objects\nthat maintain the private connection between Google Cloud and the OCI\nchild site.\n\nOracle Database@Google Cloud also lets you create up to five ODB Subnets\nwithin an ODB Network for the ease of network management.\n\nBefore you begin\n----------------\n\n- Make sure that you have the required Identity and Access Management (IAM) roles and permissions to create an ODB Network and ODB Subnets as described in [Deploy Oracle Database@Google Cloud environment](/oracle/database/docs/setup-oracle-database-environment#deploy-odb-environment).\n\nCreate an ODB Network\n---------------------\n\nAn ODB Network must be created in the Google Cloud project that is\nassociated to the billing account that you used for your marketplace order. In\nthe case of a Shared VPC deployment, this project is also your host\nproject and contains the Shared VPC network as well.\n\nTo create an ODB Network, do the following: \n\n### Console\n\n1. Go to the **ODB Network** page.\n\n [Go to ODB Network](https://console.cloud.google.com/oracle/odb-networks/)\n2. Click **Create**.\n\n3. From the **Associated network** list, select a VPC network which you want\n to associate with the ODB Network.\n\n4. Select a region.\n\n5. Enter a name for the ODB network.\n\n6. Click **Create**.\n\n### gcloud\n\nUse the `gcloud oracle-database odb-networks create`\ncommand to create an ODB Network. \n\n gcloud oracle-database odb-networks create \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --network=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/global/networks/\u003cvar translate=\"no\"\u003eVPC_NETWORK\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: a unique identifier for your ODB Network.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project in which to create the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region in which to create the ODB Network.\n- \u003cvar translate=\"no\"\u003eVPC_NETWORK\u003c/var\u003e: the ID of the VPC network which you want to associate with the ODB Network.\n\n### API\n\nTo create an ODB Network, run the following `curl` command: \n\n```\ncurl -X POST \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID\"\n-d \\\n'{\n \"network\": \"projects/PROJECT_ID/global/networks/VPC_NETWORK\",\n}'\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project in which to create the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region in which to create the ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: a unique identifier for your ODB Network.\n- \u003cvar translate=\"no\"\u003eVPC_NETWORK\u003c/var\u003e: the ID of the VPC network which you want to associate with the ODB Network.\n\nAfter the ODB Network is created, you can create ODB Subnets.\n\nCreate an ODB Subnet\n--------------------\n\nYou can create two types of ODB Subnets:\n\n- Client ODB Subnets to connect to applications.\n- Backup ODB Subnets to back up database services.\n\nFor an ODB Network, you can create up to five ODB Subnets.\nA single Client ODB Subnet can be used by both Autonomous Databases\nand VM Clusters.\n\nThe number of ODB Subnets required depends on which service you\nwant to use:\n\n- A VM Cluster requires one client subnet and one backup subnet.\n- An Autonomous Database requires one client subnet.\n\nTo create a subnet, do the following: \n\n### Console\n\n1. Go to the **ODB Network** page.\n\n [Go to ODB Network](https://console.cloud.google.com/oracle/odb-networks/)\n2. Click the ODB Network for which you want to create the subnet.\n\n3. On the **ODB Network details** page, go to the **Subnets** section,\n and click **Create**.\n\n4. On **Create ODB Subnet** page, do the following:\n\n 1. Enter a name for the subnet.\n\n 2. Enter a range for the subnet in CIDR notation.\n\n 3. Select the **Subnet type**.\n\n 4. Click **Create**.\n\n### gcloud\n\nUse the `gcloud oracle-database odb-networks odb-subnets create`\ncommand to create an ODB Subnet. \n\n gcloud oracle-database odb-networks odb-subnets create \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --odb-network=\u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e \\\n --cidr-range=\u003cvar translate=\"no\"\u003eCIDR_RANGE\u003c/var\u003e \\\n --purpose=\u003cvar translate=\"no\"\u003ePURPOSE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e: a unique identifier for your ODB Subnet.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project in which to create the ODB Network. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region in which to create the ODB Subnet.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network for which you're creating the ODB Subnet.\n- \u003cvar translate=\"no\"\u003eCIDR_RANGE\u003c/var\u003e: To create a client subnet, provide the IPv4 address\n or address range that can access your cluster. If you're creating a backup\n subnet, then provide the IPv4 address or address range that serves as\n backup to access your cluster.\n\n Address ranges must use a valid\n [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation)\n (for example, 10.10.10.0/24).\n- \u003cvar translate=\"no\"\u003ePURPOSE\u003c/var\u003e: the type of the ODB Subnet that you want to\n create. The accepted values are `client_subnet` or `backup_subnet`.\n\n### API\n\nTo create an ODB Subnet, run the following `curl` command: \n\n```\ncurl -X POST \\\n-H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n-H \"Content-Type: application/json\" \\\n\"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/odbNetworks/ODB_NETWORK_ID/odbSubnets/ODB_SUBNET_ID\"\n-d \\\n'{\n \"cidr_range\": \"CIDR_RANGE\",\n \"purpose\": \"PURPOSE\"\n}'\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project that contains your ODB Network for which you want to create an ODB Subnet. If you're using a Shared VPC, then this is the ID of your host project.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region of your ODB Network.\n- \u003cvar translate=\"no\"\u003eODB_NETWORK_ID\u003c/var\u003e: the ID of your ODB Network for which you're creating the ODB Subnet.\n- \u003cvar translate=\"no\"\u003eODB_SUBNET_ID\u003c/var\u003e: a unique identifier for your ODB Subnet.\n- \u003cvar translate=\"no\"\u003eCIDR_RANGE\u003c/var\u003e: To create a client subnet, provide the IPv4 address\n or address range that can access your cluster. If you're creating a backup\n subnet, then provide the IPv4 address or address range that serves as\n backup to access your cluster.\n\n Address ranges must use a valid [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation)\n (for example, 10.10.10.0/24).\n- \u003cvar translate=\"no\"\u003ePURPOSE\u003c/var\u003e: the type of the ODB Subnet that you want to\n create. The accepted values are `client_subnet` or `backup_subnet`.\n\nWhat's next\n-----------\n\n- [Create Exadata Infrastructure](/oracle/database/docs/create-instances).\n- [Create VM Cluster](/oracle/database/docs/create-clusters).\n- [Create Autonomous Database](/oracle/database/docs/create-databases)."]]