Deploy an Oracle Database workload

This document describes how to deploy an Oracle Database workload on Google Cloud by using the Guided Deployment Automation tool in Workload Manager.

Create an Oracle Database deployment

To configure and deploy an Oracle Database, perform the following tasks:

  1. In the Google Cloud console, go to the Workload Manager page.

    Go to Workload Manager

  2. In the Workload Manager navigation pane, click Deployments.

  3. Select the project in which you want to create the deployment.

  4. Click Create deployment and choose Oracle Database.

  5. If you don't have the required roles and permissions, the Guided Deployment Automation tool indicates the required roles and permissions. Click Grant and continue.

  6. In the Deployment basics section, enter information about your deployment and workload requirements.

    Workload Manager uses this basic information to determine the data to be collected in the subsequent tabs. Workload Manager also provides recommendations for your deployment configuration based on these basic settings.

    1. Enter a name to describe the workload that you are deploying.

      This name must be unique in the project in which you're deploying the workload. You can use lowercase alphanumeric characters and hyphens to specify the name, but it must start with a letter and must not end with a hyphen. It can have a minimum of 3 and a maximum of 22 characters.

    2. In the Deployment description field, add a description for your workload, which is later displayed on the dashboard that shows your deployments.

    3. In the Service account field, select a service account that you want to attach to your Oracle deployment. Workload Manager uses this service account to call other APIs and services for creating resources required for the deployment. You can either select an existing service account or create a new one. For more information, see User-managed service account.

    4. In the Service account for Compute Engine field, select a service account for the Compute Engine VMs that are created during the deployment process. You can either select an existing service account or create a new service account.

    5. Optional: This step is required only if your organization enforces VPC Service Controls compliance. In the Private pool field, specify the name of a Cloud Build private pool that is configured for VPC Service Controls in the following format:

      projects/PRIVATEPOOL_PROJECT_ID/locations/REGION/workerPools/PRIVATEPOOL_ID
      

      Replace the following:

      • PRIVATEPOOL_PROJECT_ID: the ID of the project that contains the private pool.
      • REGION: the region where you created the private pool.
      • PRIVATEPOOL_ID: the ID of the private pool.

      For more information, see Use a Cloud Build private worker pool.

    6. Select an Oracle Database Release version.

      Workload Manager supports Oracle Database Enterprise Edition and release version 19c.

    7. Select a Release update.

      If you want to use a Developer license, Oracle Database 19c (19.3) is the only version available, in which case select 19.3 update from the Release update menu.

    8. Select a deployment model:

      • Single instance: In this model, your Oracle Database is deployed on a single VM.
      • Oracle Data Guard high availability: Oracle instances are deployed across multiple VMs using maximum availability protection mode for high availability. For more information, see Oracle documentation.
    9. In the Secret for Database credentials field, select the name of the secrets that corresponds to the password for your Oracle Database. Guided Deployment Automation tool uses this password throughout the deployment and installation process. This secret must meet the password complexity requirements and must exist in the same Google Cloud project in which you create the deployment.

    10. Enter a Database name.

      Database name must contain only letters, numbers, and underscores. It can have a maximum of 8 characters.

    11. Enter a Database domain name.

      Database domain name can either be empty, or have a name that starts with a letter and contains only letters, digits, underscores, hyphens, and periods. It can be between 1 and 128 characters long.

    12. Optional. To enable Oracle Multitenant, select the Enable multitenant checkbox.

      Oracle Multitenant architecture allows a single container database to host multiple isolated pluggable databases, enabling efficient resource consolidation and simplified management. For more information, see Oracle documentation.

    13. Optional. Enable database monitoring.

      Enabling database monitoring configures metric collection to help you monitor the health of your databases. For a list of metrics that are collected, see Supported metrics.

      The collected metrics are sent to Cloud Monitoring where you can view the metrics using dashboards and set up alerts. For more information, see View the metrics.

    14. If you choose to enable database monitoring, select a secret name for monitoring credentials. This secret must meet the password complexity requirements and must exist in the same Google Cloud project in which you create the deployment.

  7. Click Continue to proceed.

  8. In the Virtual machine tab, do the following:

    1. Select the primary region in which you want to create the VM.

      For more information, see Supported regions.

    2. Select a primary zone from the specified region.

    3. Select a secondary region and a secondary zone.

      These options are available only if you selected the Oracle Data Guard high availability deployment model in the Deployment basics tab.

    4. Select your VPC network.

    5. Select the subnet in the specified VPC network.

    6. Select a secondary subnet. This option is available only if your primary and secondary regions are different.

    7. To set a custom VM name prefix, enter a prefix to be applied to the names of all VMs created during the deployment. The prefix must be between 3 and 32 characters.

      By default, the VM name prefix is set the same as the name of your deployment.

    8. In the Software installation media field, select the Cloud Storage bucket that you created to host your installation files.

      Because the bucket is empty and doesn't have any files yet, you see an error that indicates the missing files for the release update you selected in the Deployment basics section. Do the following:

      1. Download the missing files to your local machine:

        • Download patches (files starting with 'p') from My Oracle Support.
        • Download base releases from Oracle Software Delivery Cloud or Oracle Technology Network.

      2. Upload the files to your bucket.

      3. Once again, in the Software installation media field, select the Cloud Storage bucket. The Guided Deployment Automation tool validates your files, and if there's no error, then you can proceed with the next steps.

    9. Select a machine series for the database VMs.

    10. Select a machine type for the database VMs.

  9. Click Continue to proceed.

  10. In the Storage tab, enter the information for creating storage disks.

    The deployment process creates four storage volumes. Adjust the initial volume sizes based on expected usage.

    1. Boot disk: contains the operating system and all the essential files required to start the server. You can provision between 20 GB and 65,536 GB of storage.
    2. Software binaries disk: holds Oracle software files and ORACLE_HOME directory. You can provision between 30 GB and 65,536 GB of storage.
    3. Datafiles disk: stores the database itself, including the Oracle data dictionary and user data. You can provision between 10 GB and 65,536 GB of storage.
    4. Fast recovery area disk: stores recovery-related files, such as archived redo logs and local RMAN backups. You can provision between 15 GB and 65,536 GB storage.
  11. To review the deployment configuration, click Continue.

    In the Review tab, Guided Deployment Automation tool validates your deployment configuration against your available quota, and indicates if there's insufficient quota. If that happens, you can either reconfigure your deployment to match your existing quota, or increase the quota by following these steps:

    1. Click Request quota increase.
    2. On the Quota changes page, update the quota values as per your requirement.
    3. Click Done.
    4. Click Submit request.
  12. To deploy the Oracle database workload, click Create.

Review the deployment status

After you create the deployment, you can monitor the status of the deployment on the dashboard by hovering the mouse over the Status icon.

You receive a notification in the Google Cloud console when Workload Manager completes the deployment process. If the deployment is not successful, you receive a failure notification. You can view additional information about the error on the Deployment Details page by clicking the deployment name on the dashboard. See Troubleshoot deployment errors.

Troubleshoot deployment errors

During the deployment process, Terraform creates the Google Cloud resources, such as the VMs and storage disks, and Ansible configures the Oracle software on the VMs. Workload Manager provides logs for both Terraform and Ansible through Cloud Build and Logs Explorer, respectively.

When an error occurs during the deployment process, you receive a notification in the Google Cloud console. You can view additional error details on the Deployment Details page, including the root cause, a link to the logs containing additional information, and steps to resolve the error.

If the error occurred during the Terraform process of the deployment:

  • If the underlying issue requires changing the deployment configuration (for example, deployment name was not unique):

    1. Delete the deployment.
    2. Create a new deployment by providing the correct information.
  • If the underlying issue does not require changing the deployment configuration (for example, insufficient quota):

    1. Resolve the issue.
    2. Click Retry on the error message to resume the deployment process.

If the error occurred during the Ansible process of the deployment:

  • If the underlying issue requires changing the deployment configuration (for example, you specified the wrong Cloud Storage bucket for Oracle Database files):

    1. Delete the deployment.
    2. Create a new deployment by providing the correct configuration.
  • If the underlying issue does not require changing the deployment configuration (for example, OS package failed to download):

    1. Resolve the issue, if applicable.
    2. Delete the deployment.
    3. Create a new deployment by providing the correct configuration.

What's next