Create connection profiles

Overview

In this section, you learn how to create connection profiles to:

By creating these connection profiles, Datastream can transfer data from the source database into the destination.

Create a connection profile for Oracle database

  1. Go to the Connection profiles page in the Google Cloud Console.

    Go to the Connection profiles page

  2. Click CREATE PROFILE.

  3. In the Create a connection profile page, click the Oracle profile type (because you want to create a connection profile for Oracle database).

  4. Use the following table to populate the fields of the Define connection settings section of the Create Oracle profile page:

    FieldDescription
    Connection profile nameEnter the display name of the connection profile to the source Oracle database. This is used in the connection profile list as well as when an existing connection profile is selected in the creation of a stream.
    Connection profile IDDatastream populates this field automatically based on the connection profile name that you enter. You can keep the ID that's auto-generated or change it.
    RegionSelect the region where the connection profile is stored. Connection profiles, like all resources, are saved in a region, and a stream can only use connection profiles that are stored in the same region as the stream. Region selection doesn't impact whether Datastream can connect to the source or the destination, but can impact availability if the region experiences downtime.
    Hostname or IP

    Enter a hostname or IP address that Datastream can use to connect to the source Oracle database.

    If you're using private connectivity to communicate with the source database, then specify the private (internal) IP address for the source database.

    For other connectivity methods, such as IP allowlisting, provide the public IP address.

    PortEnter the port number that's reserved for the source database (The default port is typically 1521.).
    UsernameEnter the username of the account for the source database (for example, ROOT). This is the Datastream user that you created for the database.

    For more information about creating this user, see Configure your source Oracle database.

    Password

    Enter the password of the account for the source database.

    System identifier (SID)Enter the service that ensures that the source Oracle database is protected and monitored. For Oracle databases, the database service is typically ORCL. For pluggable databases, SID is the pluggable database name.
  5. Optionally, use labels to organize your Datastream resources.

    1. To create a label, click ADD LABEL, and then enter the key-value pair for the label.
    2. To remove the label, click the trashcan icon to the right of the row that contains the label.
  6. In the Define connection settings section, click CONTINUE. The Secure your connection to your source page is active.

  7. From the Encryption type menu, select one of the following:

    Encryption typeDescription
    NoneDatastream connects to the source database without encryption.
    Server-only

    When Datastream connects to the source database, Datastream authenticates the source, ensuring that it is connecting to the correct host securely. This prevents person-in-the-middle attacks.

    For server-only authentication, the source doesn't authenticate Datastream. To use server-only authentication, you must provide the x509 PEM-encoded certificate of the certificate authority (CA) that signed the source's certificate. Make sure you use a single certificate, Datastream doesn't support certificate chains.

  8. In the Secure your connection to your source section, click CONTINUE. The Define connectivity method section of the Create Oracle profile page is active.

  9. From the Connectivity method drop-down menu, select a network connectivity method. This method defines how Datastream connects to the source database. Current network connectivity methods include:

    1. IP allowlisting: This method works by configuring the source database server to accept connections from Datastream. If you select this network connectivity method, then configure your source database to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    2. Forward-SSH tunnel: This method establishes secure, encrypted connectivity between Datastream and the source database, using an SSH tunnel to either a tunnel server or to the database server. If you select this network connectivity method, then:
      1. Enter the hostname or IP address, and port of the tunnel host server.
      2. Enter the username of the account for the tunnel host server.
      3. Select the authentication method for the SSH tunnel. If you select Password as the method, then enter the password of the account for the bastion host VM. If you select Private/Public key pair as the method, then provide a private key.
      4. Configure your tunnel host to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    3. Private connectivity (VPC peering): This method establishes secure connectivity between Datastream and the source database (internally within Google Cloud, or with external sources connected over VPN or Interconnect). This communication happens through a VPC peering connection.

      If you select this network connectivity method, and you have created a private connectivity configuration, then select it from the list of configurations. This type of configuration contains information that Datastream uses to communicate with the source database over a private network.

      If you haven't created a private connectivity configuration, create one by clicking CREATE PRIVATE CONNECTIVITY CONFIGURATION at the bottom of the drop-down list, and then perform the same steps as in Create a private connectivity configuration.

  10. In the Define connectivity method section, click CONTINUE. The Test connection profile section of the Create Oracle profile page is active.

  11. Click RUN TEST to verify that Datastream can communicate with the source.

    If the test fails, then it indicates which part of the process had an issue. Refer to the Diagnose issues page for troubleshooting steps. Necessary changes can be made and then re-tested on the Create Oracle profile page.

    Navigate to the part of the flow in question to correct the issue, and then retest.

  12. Click CREATE.

Create a connection profile for MySQL database

  1. Go to the Connection profiles page in the Google Cloud Console.

    Go to the Connection profiles page

  2. Click CREATE PROFILE.

  3. In the Create a connection profile page, click the MySQL profile type (because you want to create a connection profile for MySQL database).

  4. Use the following table to populate the fields of the Define connection settings section of the Create MySQL profile page:

    FieldDescription
    Connection profile nameEnter the display name of the connection profile to the source MySQL database. This is used in the connection profile list as well as when an existing connection profile is selected in the creation of a stream.
    Connection profile IDDatastream populates this field automatically based on the connection profile name that you enter. You can keep the ID that's auto-generated or change it.
    RegionSelect the region where the connection profile is stored. Connection profiles, like all resources, are saved in a region, and a stream can only use connection profiles that are stored in the same region as the stream. Region selection doesn't impact whether Datastream can connect to the source or the destination, but can impact availability if the region experiences downtime.
    Hostname or IP

    Enter a hostname or IP address that Datastream can use to connect to the source MySQL database.

    If you're using private connectivity to communicate with the source database, then specify the private (internal) IP address for the source database.

    For other connectivity methods, such as IP allowlisting or Forward-SSH, provide the public IP address.

    PortEnter the port number that's reserved for the source database (The default port is typically 3306.).
    Username

    Enter the username of the account for the source database (for example, root). This is the Datastream user that you created for the database.

    For more information about creating this user, see Configure a source MySQL database.

    Password

    Enter the password of the account for the source database.

  5. Optionally, use labels to organize your Datastream resources.

    1. To create a label, click ADD LABEL, and then enter the key-value pair for the label.
    2. To remove the label, click the trashcan icon to the right of the row that contains the label.
  6. In the Define connection settings section, click CONTINUE. The Secure your connection to your source page is active.

  7. From the Encryption type menu, select one of the following:

    Encryption typeDescription
    NoneDatastream connects to the source database without encryption.
    Server-only

    When Datastream connects to the source database, Datastream authenticates the source, ensuring that it is connecting to the correct host securely. This prevents person-in-the-middle attacks.

    For server-only authentication, the source doesn't authenticate Datastream. To use server-only authentication, you must provide the x509 PEM-encoded certificate of the certificate authority (CA) that signed the source's certificate. Make sure you use a single certificate, Datastream doesn't support certificate chains.

    Server-client

    When Datastream connects to the source, Datastream authenticates the source and the source authenticates Datastream.

    Server-client authentication provides the strongest security. However, if you don't want to provide the client certificate and private key when you create the connection profile, you can still use server-only authentication.

    To use server-client authentication, you must provide the following items when you create the source connection profile:

    • The certificate of the CA that signed the source database server's certificate (the CA certificate).
    • The certificate used by the instance to authenticate against the source database server (the client certificate).
    • The private key associated with the client certificate (the client key).
  8. In the Secure your connection to your source section, click CONTINUE. The Define connectivity method section of the Create MySQL profile page is active.

  9. From the Connectivity method drop-down menu, select a network connectivity method. This method defines how Datastream connects to the source database. Current network connectivity methods include:

    1. IP allowlisting: This method works by configuring the source database server to accept connections from Datastream. If you select this network connectivity method, then configure your source database to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    2. Forward-SSH tunnel: This method establishes secure, encrypted connectivity between Datastream and the source database, using an SSH tunnel to either a tunnel server or to the database server. If you select this network connectivity method, then:
      1. Enter the hostname or IP address, and port of the tunnel host server.
      2. Enter the username of the account for the tunnel host server.
      3. Select the authentication method for the SSH tunnel. If you select Password as the method, then enter the password of the account for the bastion host VM. If you select Private/Public key pair as the method, then provide a private key.
      4. Configure your tunnel host to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    3. Private connectivity (VPC peering): This method establishes secure connectivity between Datastream and the source database (internally within Google Cloud, or with external sources connected over VPN or Interconnect). This communication happens through a VPC peering connection.

      If you select this network connectivity method, and you have created a private connectivity configuration, then select it from the list of configurations. This type of configuration contains information that Datastream uses to communicate with the source database over a private network.

      If you haven't created a private connectivity configuration, create one by clicking CREATE PRIVATE CONNECTIVITY CONFIGURATION at the bottom of the drop-down list, and then perform the same steps as in Create a private connectivity configuration.

  10. In the Define connectivity method section, click CONTINUE. The Test connection profile section of the Create MySQL profile page is active.

  11. Click RUN TEST to verify that Datastream can communicate with the source.

    If the test fails, then it indicates which part of the process had an issue. Refer to the Diagnose issues page for troubleshooting steps. You can make the necessary changes and then re-test the connection profile.

    Navigate to the part of the flow in question to correct the issue, and then retest.

  12. Click CREATE.

Create a connection profile for PostgreSQL database

  1. Go to the Connection profiles page in the Google Cloud Console.

    Go to the Connection profiles page

  2. Click CREATE PROFILE.

  3. In the Create a connection profile page, click the PostgreSQL profile type (because you want to create a connection profile for PostgreSQL database).

  4. Use the following table to populate the fields of the Define connection settings section of the Create PostgreSQL profile page:

    FieldDescription
    Connection profile nameEnter the display name of the connection profile to the source PostgreSQL database. This is used in the connection profile list as well as when an existing connection profile is selected in the creation of a stream.
    Connection profile IDDatastream populates this field automatically based on the connection profile name that you enter. You can keep the ID that's auto-generated or change it.
    RegionSelect the region where the connection profile is stored. Connection profiles, like all resources, are saved in a region, and a stream can only use connection profiles that are stored in the same region as the stream. Region selection doesn't impact whether Datastream can connect to the source or the destination, but can impact availability if the region experiences downtime.
    Hostname or IP

    Enter a hostname or IP address that Datastream can use to connect to the source PostgreSQL database.

    If you're using private connectivity to communicate with the source database, then specify the private (internal) IP address for the source database.

    For other connectivity methods, such as IP allowlisting or Forward-SSH, provide the public IP address.

    PortEnter the port number that's reserved for the source database (The default port for PostgreSQL is typically 5432.).
    Username

    Enter the username of the account for the source database (for example, root). This is the Datastream user that you created for the database.

    For more information about creating this user, see Configure your source PostgreSQL database.

    Password

    Enter the password of the account for the source database.

    Database

    Enter the name that identifies the database instance. For PostgreSQL databases, this is typically postgres.

  5. Optionally, use labels to organize your Datastream resources.

    1. To create a label, click ADD LABEL, and then enter the key-value pair for the label.
    2. To remove the label, click the trashcan icon to the right of the row that contains the label.
  6. Click CONTINUE.

  7. In the Define connection settings section, click CONTINUE. The Define connectivity method section of the Create PostgreSQL profile page is active.

  8. From the Connectivity method drop-down menu, select a network connectivity method. This method defines how Datastream connects to the source database. Current network connectivity methods include:

    1. IP allowlisting: This method works by configuring the source database server to accept connections from Datastream. If you select this network connectivity method, then configure your source database to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    2. Forward-SSH tunnel: This method establishes secure, encrypted connectivity between Datastream and the source database, using an SSH tunnel to either a tunnel server or to the database server. If you select this network connectivity method, then:
      1. Enter the hostname or IP address, and port of the tunnel host server.
      2. Enter the username of the account for the tunnel host server.
      3. Select the authentication method for the SSH tunnel. If you select Password as the method, then enter the password of the account for the bastion host VM. If you select Private/Public key pair as the method, then provide a private key.
      4. Configure your tunnel host to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    3. Private connectivity (VPC peering): This method establishes secure connectivity between Datastream and the source database (internally within Google Cloud, or with external sources connected over VPN or Interconnect). This communication happens through a VPC peering connection.

      If you select this network connectivity method, and you have created a private connectivity configuration, then select it from the list of configurations. This type of configuration contains information that Datastream uses to communicate with the source database over a private network.

      If you haven't created a private connectivity configuration, create one by clicking CREATE PRIVATE CONNECTIVITY CONFIGURATION at the bottom of the drop-down list, and then perform the same steps as in Create a private connectivity configuration.

  9. In the Define connectivity method section, click CONTINUE. The Test connection profile section of the Create PostgreSQL profile page is active.

  10. Click RUN TEST to verify that Datastream can communicate with the source.

    If the test fails, then it indicates which part of the process had an issue. Refer to the Diagnose issues page for troubleshooting steps. You can make the necessary changes and then re-test the connection profile.

    Navigate to the part of the flow in question to correct the issue, and then retest.

  11. Click CREATE.

Create a connection profile for SQL Server database

  1. Go to the Connection profiles page in the Google Cloud Console.

    Go to the Connection profiles page

  2. Click CREATE PROFILE.

  3. In the Create a connection profile page, click the SQL Server profile type.

  4. Use the following table to populate the fields of the Define connection settings section of the Create SQL Server profile page:

    FieldDescription
    Connection profile nameEnter the display name of the connection profile to the source SQL Server database. This is used in the connection profile list as well as when an existing connection profile is selected in the creation of a stream.
    Connection profile IDDatastream populates this field automatically based on the connection profile name that you enter. You can keep the ID that's auto-generated or change it.
    RegionSelect the region where the connection profile is stored. Connection profiles, like all resources, are saved in a region, and a stream can only use connection profiles that are stored in the same region as the stream. Region selection doesn't impact whether Datastream can connect to the source or the destination, but can impact availability if the region experiences downtime.
    Hostname or IP

    Enter a hostname or IP address that Datastream can use to connect to the source SQL Server database.

    If you're using private connectivity to communicate with the source database, then specify the private (internal) IP address for the source database.

    For IP allowlisting, provide the public IP address.

    PortEnter the port number that's reserved for the source database (The default port is typically 1433.).
    Username

    Enter the username of the account for the source database (for example, root). This is the Datastream user that you created for the database.

    For more information about creating this user, see see Configure your source SQL Server database.

    Password

    Enter the password of the account for the source database.

    Database

    Enter the name that identifies the database instance.

  5. Optionally, use labels to organize your Datastream resources.

    1. To create a label, click ADD LABEL, and then enter the key-value pair for the label.
    2. To remove the label, click the trashcan icon to the right of the row that contains the label.
  6. Click Continue.

  7. In the Define connectivity method section, from the Connectivity method drop-down menu, select a network connectivity method. This method defines how Datastream connects to the source database. Network connectivity methods include:

    1. IP allowlisting: This method works by configuring the source database server to accept connections from Datastream. If you select this network connectivity method, then configure your source database to allow incoming connections from the Datastream public IP addresses for the region that you specified for the connection profile.
    2. Forward-SSH tunnel: This method creates a secure, encrypted connection between the source database and Datastream. To set up this connectivity method, you need an SSH server that has access to the source database. If you select this network connectivity method, then:
      1. Enter the hostname or IP address, and the port of the tunnel host server.
      2. Enter the username of the account for the tunnel host server.
      3. Select the authentication method for the SSH tunnel. If you select Private/Public key pair as the method, then provide a private key. If you select Password as the method, then enter the password of the account for the bastion host VM.
      4. You might also need to allowlist the Datastream external IP addresses on the SSH tunnel server.
    3. Private connectivity (VPC peering): This method establishes secure connectivity between Datastream and the source database (internally within Google Cloud, or with external sources connected over VPN or Interconnect). This communication happens through a VPC peering connection.

      If you select this network connectivity method, and you have created a private connectivity configuration, then select it from the list of configurations. This type of configuration contains information that Datastream uses to communicate with the source database over a private network.

      If you haven't created a private connectivity configuration, create one by clicking CREATE PRIVATE CONNECTIVITY CONFIGURATION at the bottom of the drop-down list, and then perform the same steps as in Create a private connectivity configuration.

  8. Click CONTINUE. The Test connection profile section of the Create SQL Server profile page is active.

  9. Click RUN TEST to verify that Datastream can communicate with the source.

    If the test fails, then it indicates which part of the process had an issue. Refer to the Diagnose issues page for troubleshooting steps. You can make the necessary changes and then re-test the connection profile.

    Navigate to the part of the flow in question to correct the issue, and then retest.

  10. Click CREATE.

Create a connection profile for BigQuery

  1. Go to the Connection profiles page in the Google Cloud Console.

    Go to the Connection profiles page

  2. Click CREATE PROFILE.

  3. In the Create a connection profile page, click the BigQuery profile type (because you want to create a connection profile for BigQuery).

  4. Use the following table to populate the fields of the Create BigQuery profile page:

    FieldDescription
    Connection profile nameEnter the display name of the connection profile to the destination datasets in BigQuery. This is used in the connection profile list as well as when an existing connection profile is selected in the creation of a stream.
    Connection profile IDKeep the auto-generated value that's populated in this field.
    RegionSelect the region where the connection profile is stored. Connection profiles, like all resources, are saved in a region, and a stream can only use connection profiles that are stored in the same region as the stream. Region selection doesn't impact whether Datastream can connect to the source or the destination, but can impact availability if the region experiences downtime. Region selection is also independent of the location type you selected for your BigQuery destination dataset.
  5. Optionally, use labels to organize your Datastream resources.

    1. To create a label, click ADD LABEL, and then enter the key-value pair for the label.
    2. To remove the label, click the trashcan icon to the right of the row that contains the label.
  6. Click CREATE.

Create a connection profile for Cloud Storage

  1. Go to the Connection profiles page in the Google Cloud Console.

    Go to the Connection profiles page

  2. Click CREATE PROFILE.

  3. In the Create a connection profile page, click the Cloud Storage profile type (because you want to create a connection profile for Cloud Storage).

  4. Use the following table to populate the fields of the Create Cloud Storage profile page:

    FieldDescription
    Connection profile nameEnter the display name of the connection profile to the destination bucket in Cloud Storage. This is used in the connection profile list as well as when an existing connection profile is selected in the creation of a stream.
    Connection profile IDKeep the auto-generated value that's populated in this field.
    RegionSelect the region where the connection profile is stored. Connection profiles, like all resources, are saved in a region, and a stream can only use connection profiles that are stored in the same region as the stream. Region selection doesn't impact whether Datastream can connect to the source or the destination, but can impact availability if the region experiences downtime.
    Bucket name

    Click BROWSE to create or select the destination bucket in Cloud Storage into which Datastream will transfer data from the source database.

    If you select an existing bucket, then complete the following steps:

    1. Click the Search icon (which appears as a magnifying glass).
    2. In the Search by name field, enter the first few characters of the name of the bucket that you want to select. Datastream filters the list of buckets to reflect what you enter in the field.
    3. Select the bucket that you want to use as your destination.
    4. Click SELECT. Your bucket appears in the Bucket name field.

    Alternatively, you can click the Create new bucket icon (which appears as a briefcase) to create a bucket.

  5. Optionally, in the Connection profile path prefix field, you can provide a prefix for the path that will be appended to the bucket name when Datastream transfers data to the destination.

  6. Optionally, use labels to organize your Datastream resources.

    1. To create a label, click ADD LABEL, and then enter the key-value pair for the label.
    2. To remove the label, click the trashcan icon to the right of the row that contains the label.
  7. Click CREATE.

After creating connection profiles, you can view high-level and detailed information about them.

What's next