Manage databases

更新时间:
复制 MD 格式

This topic describes the basic database operations in Data Lake Formation (DLF).

Note

When a DLF catalog is registered in platforms like EMR Serverless Spark or Realtime Compute for Apache Flink, you can create databases and tables via SQL. Metadata is written directly to DLF. For more information, see Engine integration.

Create a database

  1. Log on to the DLF console.

  2. In the left navigation menu, select Catalogs, and click your catalog name.

  3. Click Create Database.

  4. On the Create Database page, configure the following parameters and click OK.

    Parameter

    Description

    Name

    Enter a database name. The name must be unique within the catalog.

    Description

    Enter a description.

Note

Each catalog includes a default database that cannot be deleted.

View a database

  1. In the Database section, click your database name.

  2. On the Details tab, view the database's basic information.

    Field Description
    Name The database name.
    Description The description entered when the database was created.
    Creator The Alibaba Cloud account that created the database.
    Owner The current owner of the database.
    Creation time The date and time when the database was created.
    Last modification time The date and time when the database was last updated.
  3. On the Permissions tab, grant database permissions to DLF users or roles. For more information, see Data authorization management.

Modify a database description

  1. In the Database section, click Modify in the Actions column of your database.

  2. On the Edit Database page, modify the description and click Update.

Delete a database

Warning

Deleted database data is retained for one day to prevent accidental loss, after which it is permanently deleted.

  1. In the Database section, click Delete in the Actions column of the target database.

  2. In the dialog box, click OK to confirm the deletion.