Getting Started with OCI Database with PostgreSQL

This getting started guide walks you through creating the necessary OCI prerequisites, network configurations, and instances to host and access an OCI Database with PostgreSQL.

The overall process includes:

  1. Prerequisites
  2. Setting up IAM resources
  3. Setting up the OCI network
  4. Creating the database
  5. Connecting to the database

Prerequisites

Ensure that you have installed, obtained, or created the prerequisites:

  • An Oracle Cloud Infrastructure tenancy.
  • An account with the privileges to create users, add users to user groups, create security policies, and create compartments. For more information, see Overview of IAM.
Note

This getting started guide assumes that the tenancy is migrated to use identity domains. To find out whether a cloud account uses identity domains, open the Oracle Cloud Infrastructure navigation menu and click Identity & Security. Under Identity, check for Domains.

If the tenancy isn't migrated see Overview of Identity and Access Management.

Set Up IAM Resources

To get started quickly with OCI Database with PostgreSQL, IAM resources and policies are required. See the following steps for more information:

  1. Create or choose a compartment to contain PostgreSQL-related network infrastructure and resources. For more information, see Managing Compartments.
  2. Create or choose a group of PostgreSQL administrators. For more information, see Managing Groups and Creating a User.
  3. Create the IAM policies required for PostgreSQL administrators to manage OCI Database with PostgreSQL resources.

Create an OCI Database with PostgreSQL

After the necessary OCI prerequisites and network are in place, you can create the database.

  1. Create or choose a vault for the database administrator password. For more information, see Managing Vaults.
  2. Create a key for the database password. For more information, see Managing Keys.
  3. Create a secret for the database password. For more information, see Managing Vault Secrets.
  4. Create an OCI Database with PostgreSQL.

After you create the database, you can connect to the database system. See Connecting to a Database.