All Products
Search
Document Center

PolarDB:Create a database

Last Updated:Mar 28, 2026

CREATE DATABASE creates a new database in PolarDB for Oracle.

Prerequisites

Before you begin, make sure that you have:

  • Superuser privileges, or the CREATEDB permission granted to your role

  • Enough disk space on the instance to accommodate the new database

Syntax

CREATE DATABASE name

Parameters

ParameterDescription
nameThe name of the database to create.

Usage notes

  • Non-superusers with the CREATEDB permission can only create databases that they own.

  • CREATE DATABASE cannot run inside a transaction block.

Examples

To create a database named testdb:

CREATE DATABASE testdb;