Creating a Database System
Create an OCI Database with PostgreSQL database system.
Caution
Database systems can only be created in subnets that don't have IPv6 enabled. If you select an existing subnet with IPv6 enabled, database system creation fails.
Database systems can only be created in subnets that don't have IPv6 enabled. If you select an existing subnet with IPv6 enabled, database system creation fails.
After the necessary OCI prerequisites and network are in place, you can create the database system.
- Create or choose a vault for the database administrator password. For more information, see Managing Vaults.
- Create a key for the database password. For more information, see Managing Keys.
- Create a secret for the database password. For more information, see Managing Vault Secrets.
Use the
oci psql db-system create
command and required parameters to create a database system:oci psql db-system create --compartment-id <compartment_OCID> --db-version <db_version> --display-name <display_name> --network-details <file://network-details.json> --shape <shape> --storage-details <file://storage-details.json> --system-type <system_type> [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateDbSystem operation to create a database system.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.