Updated on 2026-07-27 GMT+08:00

Managing a Metadata Task

Create a metadata task. The data task creates a connection based on the database and pulls the database, data table, and data view of the instance. After the metadata task is executed, you can view data details on the data exploration page and add descriptions, labels, security levels, and classifications to the data, implementing hierarchical and classified management of data assets.

Authorizing database assets in the asset center will automatically enable metadata tasks. In the asset list on the asset management page, the Metadata Task column displays the metadata task status.

Prerequisites

DSC has been allowed to access the database assets. For details, see Allowing or Disallowing Access to Cloud Assets.

Data Sources That Support Metadata Task Creation

Metadata tasks can be created for the following data sources: MySQL, TDSQL, PostgreSQL, Dameng, Kingbase, GaussDB, DWS, Hive, and MRS_HIVE.

Creating a Metadata Scanning Task

  1. Log in to the DSC console.
  2. Click in the upper left corner and select a region or project.
  3. In the navigation pane on the left, choose Asset Center > Asset Management.
  4. Click the Metadata Tasks tab and click Create in the upper left corner. On the Create Collection Task page that is displayed, configure data source. For details about the parameters, see Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Data Source

    Select a data source.

    Database Instance

    Select a database instance from the drop-down list box.

    Add Configuration

    You can click Add Configuration to add a configuration item.

  5. Click Next. The Configure subtasks page is displayed.

    Enable or disable the following metadata scanning configuration items:

    Scan user tables, Scan system tables (such as information_schema), Scan column constraints (including primary key uniqueness), Scan views (whether there are views), Scan permissions, and Extract sample data (which may contain sensitive information)

  6. Click Next. On the Configure Task Information page, configure task information. For details about the parameters, see Table 2.

    Table 2 Parameters description

    Parameter

    Description

    Task Details

    • Task: You can customize the name of a collection task. This parameter is mandatory. The value can contain only letters, digits, underscores (_), and hyphens (-), and cannot exceed 255 characters.
    • Task Description: Task description. This parameter is optional.

    Task Settings

    Click or to enable or disable Delete disconnected metadata.

    When to Execute

    • Identification Period: You can select Once, Daily, Weekly, or Monthly.
    • When to Execute: You can select Now or As scheduled.
    • Start time: If you select As scheduled, click to set the start time.

  7. Click Next. On the configuration confirmation page that is displayed, confirm the parameters.
  8. Click Finish. A new metadata collection task is created.

Related Operations

  • Running a metadata task: In the Operation column of a metadata task, click Run.
  • Editing a metadata task: In the Operation column of a metadata task, click Edit.
  • Deleting a metadata task: In the Operation column of a metadata task, click Delete.