All Products
Search
Document Center

PolarDB:Database management

Last Updated:Mar 28, 2026

Use the PolarDB console to create databases, delete databases, and change the database owner in a PolarDB for Oracle or PolarDB for PostgreSQL (Compatible with Oracle) cluster.

Prerequisites

Before you begin, make sure that you have:

  • A PolarDB for Oracle or PolarDB for PostgreSQL (Compatible with Oracle) cluster

  • Access to the PolarDB console

Create a database

  1. In the PolarDB console, go to the target cluster. In the left navigation pane, choose Settings and Management > Databases.

  2. Click Create Database, configure the following parameters, and then click OK.

ParameterDescription
Database NameThe name of the database. The name must start with a letter and end with a letter or digit, be 2–64 characters long, and consist of lowercase letters, digits, hyphens (-), or underscores (_).
Database OwnerThe account that owns the database and has full permissions on it. Leave this field blank to assign an owner later.
Character SetThe character encoding for the database. Defaults to UTF8. Select a different encoding from the drop-down list if needed.
CollationThe string sort order. Defaults to C. Select en_US.utf8 to support a wider range of languages.
CtypeThe character classification. Set automatically based on the selected collation.
DescriptionAn optional description to help you identify the database. Must be 2–256 characters and consist of letters, Chinese characters, digits, underscores (_), or hyphens (-). Cannot start with http:// or https://.
Keep the following in mind when naming a database:
The name must be unique within the cluster.
The name cannot be changed after the database is created. Choose the name carefully.
Avoid reserved keywords. For example, test is not allowed.

Delete a database

Warning

Deleting a database is a permanent action. All data in the database is purged and can no longer be accessed. Perform this operation with caution.

  1. In the PolarDB console, go to the target cluster. In the left navigation pane, choose Settings and Management > Databases.

  2. Locate the target database, click Delete in the Actions column, and then click OK to confirm.

Change the database owner

  1. In the PolarDB console, go to the target cluster. In the left navigation pane, choose Settings and Management > Databases.

  2. Locate the target database and click Change Owner in the Actions column.

  3. In the Change Owner dialog box, select the new owner and click OK.

API reference

APIDescription
CreateDatabaseCreates a database in a PolarDB cluster.
DeleteDatabaseDeletes a database from a PolarDB cluster.
DescribeDatabasesQueries the details of a specified database in a PolarDB cluster.