Database Migration Service can connect to your destination instance's public or private IP
address. This page provides an overview of each available destination database
connectivity method, as well as a recommendation section to help you choose
the right solution for your migration:

- [Method comparison](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination.md.txt#methods-comparison) provides a comparison table for available
  destination connectivity methods.

- [Public IP connectivity](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination.md.txt#public-ip) describes destination connectivity over
  public internet.

- [Private IP connectivity](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination.md.txt#private-ip) explains how Database Migration Service uses
  Private Service Connect to connect to the private IP of your
  destination instance.

After you familiarize yourself with different connectivity methods and their
requirements, you can use the
[decision tree diagram](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination.md.txt#decision-tree) to pick the right solution for your scenario.

## Method comparison

Every destination connectivity method comes with different benefits and requirements.
Use the following table to compare them at a glance, and then learn more
details in the sections dedicated for each method.

| Networking method | Advantages | Disadvantages |
|---|---|---|
| [Public IP](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination.md.txt#public-ip) | - The easiest connectivity method to set up. - Built-in security with Database Migration Service. - Configuring a Cloud SQL destination instance with a public IP doesn't have any additional limitations. | - Your traffic goes through the public internet. It might not be desireable for organizations with specific compliance policies. |
| [Private IP](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination.md.txt#private-ip) | - The connection is fully private. All traffic travels through private networks. - Uses Private Service Connect for ease of configuration and security. | - PSC-enabled Cloud SQL instances come with certain functionality limitations. Make sure such configurations meet your requirements. See [Private Service Connect limitations](https://docs.cloud.google.com/sql/docs/postgres/configure-private-service-connect.md.txt#limitations) in Cloud SQL documentation. - You can use private IP connectivity without a PSC-enabled Cloud SQL instance, but such configuration requires that you use an additional bastion Virtual Machine (VM) to forward traffic between Database Migration Service and your destination. |

## Public IP connectivity

When you use the public IP connectivity method, Database Migration Service attempts
to establish a connection to the public IP address of your destination
Cloud SQL instance. This connection is encrypted and secured
by Database Migration Service.
[![A networking diagram that shows a high-level public IP connectivity
setup.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/htm_public_ip_csql_dst.svg)](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination#lightbox-trigger) **Figure 1.** Migration networking example: public IP destination connectivity. (click to enlarge) ![A networking diagram that shows a high-level public IP connectivity
setup.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/htm_public_ip_csql_dst.svg)

### Requirements for public IP connectivity

To use this connectivity method you need to ensure that your destination
Cloud SQL instance has a public IP address enabled. For more information, see
[Configure public IP](https://docs.cloud.google.com/sql/docs/postgres/configure-ip.md.txt) in the Cloud SQL for PostgreSQL documentation.

### Configure IP allowlist connectivity

Configuring public IP connectivity is covered in
[Configure public IP connectivity](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/configure-dst-connection-public-ip.md.txt).

## Private IP connectivity

Database Migration Service uses [Private Service Connect](https://docs.cloud.google.com/vpc/docs/private-service-connect.md.txt) to connect to your destination
Cloud SQL instance using a private IP address.
With Private Service Connect, you can expose your destination
database to incoming secure connections, and control who can access the database.
This connection is encrypted by Database Migration Service.

Network architecture setup for Private Service Connect differs
depending on whether you use a PSC-enabled or a non-PSC-enabled destination
Cloud SQL instance.

### For PSC-enabled Cloud SQL instances

The easiest way to use private IP connectivity for destination Cloud SQL
instances is to create a PSC-enabled Cloud SQL instance.
[![A networking diagram that shows a high-level public IP connectivity
setup.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/htm_private_ip_csql_dst_psc_enabled.svg)](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination#lightbox-trigger) **Figure 2.** Migration networking example: public IP source connectivity. (click to enlarge) ![A networking diagram that shows a high-level public IP connectivity
setup.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/htm_private_ip_csql_dst_psc_enabled.svg)

#### Requirements for PSC-enabled instances

To use PSC-enabled Cloud SQL instances, you need to create the destination
instance with PSC enabled. The following limitations apply:

- **Functionality limitations**

  PSC-enabled Cloud SQL instances come with
  certain functionality limitations. Make sure such configurations meet your
  requirements. See
  [Private Service Connect limitations](https://docs.cloud.google.com/sql/docs/postgres/configure-private-service-connect.md.txt#limitations) in Cloud SQL
  documentation.
- **Creation limitations**

  You can create PSC-enabled Cloud SQL instances only with
  `gcloud` or the Cloud SQL API.

#### Configure private connectivity for PSC-enabled instances

Configuring private IP connectivity is covered in
[Configure private IP connectivity for PSC-enabled instances](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/configure-dst-connection-private-ip.md.txt#psc-enabled).

### For non-PSC-enabled instances

You can use private IP connectivity even if you can't use a PSC-enabled
Cloud SQL instance as your destination database. The configuration is more
complex, as it requires an additional bastion virtual machine (VM) in your
network to forward traffic between Database Migration Service and your destination's
private IP.
[![A networking diagram that shows a high-level public IP connectivity
setup.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/htm_private_ip_csql_dst_non_psc_enabled.svg)](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-destination#lightbox-trigger) **Figure 3.** Migration networking example: public IP source connectivity. (click to enlarge) ![A networking diagram that shows a high-level public IP connectivity
setup.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/htm_private_ip_csql_dst_non_psc_enabled.svg)

#### Requirements for non-PSC-enabled instances

Private IP connectivity for non-PSC-enabled Cloud SQL instances
requires the following:

- You need to have a [Virtual Private Cloud network with private services access enabled](https://docs.cloud.google.com/vpc/docs/configure-private-services-access.md.txt).

  This is the network that you peer with your Cloud SQL destination instance.
- Your destination Cloud SQL must have private IP enabled.

- Additionally, you need to be able to create the following network components
  in your project:

  - A service attachment: A network resource that exposes destination
    Cloud SQL private IP to other services in a Google Cloud VPC network.
    The Google Cloud project where you create the service attachment is
    the *service producer* . The *service consumer* is Database Migration Service.

  - PSC forwarding rules: A rule that routes the incoming traffic
    from the service attachment to the dedicated bastion VM.

  - A bastion VM: A Compute Engine VM with two network interface controllers
    (NICs). One is attached to the dedicated service attachment network; the other,
    to the network where Cloud SQL for PostgreSQL is peered. The bastion VM runs
    a Dante SOCKS server to forward the connections.

#### Configure private connectivity for non-PSC-enabled instances

Configuring private IP connectivity is covered in
[Configure private IP connectivity for non-PSC enabled instances](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/configure-dst-connection-private-ip.md.txt#non-psc).

## Destination network connectivity decision tree

When you are familiar with all supported destination connectivity methods
and their requirements, you can follow the questions in the diagram
to help you pick the right connectivity method for your scenario.
![A decision tree diagram with guiding questions to help you
pick the right connectivity method.](https://docs.cloud.google.com/static/database-migration/docs/images/htm/networking_destination_decision_tree.svg) **Figure 4.** Destination network connectivity decision tree.

## What's next

- Learn about source database connectivity. See
  [Networking methods for source database connectivity](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/networking-methods-source.md.txt).

- To get a complete, step-by-step migration walkthrough, see
  [Oracle to Cloud SQL for PostgreSQL migration guide](https://docs.cloud.google.com/database-migration/docs/oracle-to-postgresql/guide.md.txt).