All Products
Search
Document Center

Data Management:Metadata

Last Updated:Mar 28, 2026

DMS uses metadata — also called a data dictionary — to power object browsing, sensitive data detection, and fine-grained permission control over databases, tables, fields, data rows, and programmable objects.

Metadata describes your database's structure and includes:

  • Database names and character sets

  • Table names, sizes, row counts, character sets, and descriptions

  • Field types, lengths, precision, nullability, and descriptions

  • Table indexes and their fields

  • Programmable object names and types

All metadata is sourced from internal database objects such as information_schema.

Note

Table size and row count values are not exact. Use them as order-of-magnitude estimates only.

How DMS acquires metadata

DMS acquires metadata differently depending on the control mode of the database instance.

Security ProtectionNot Security Managed
Acquisition scopeAll metadata for the database instanceDatabase-level information only; all other metadata is loaded in real time after you log in
Full acquisition on first accessYesYes
Scheduled full acquisitionDaily at 18:00, automatically for all instances under Security Protection within the tenantNot supported
On-demand incremental acquisition4 methods — see Trigger incremental acquisition3 methods — see Trigger incremental acquisition
OtherDatabase information is acquired based on the permissions of the database account when you log in

Trigger incremental acquisition

To update metadata on demand, use any of the following methods:

  • Click the refresh button in the SQLConsole.

  • Click Refresh/Sync Dictionary in the database instance list on the left side of the console home page.

  • In System Administration > Instance Management, a DBA or administrator can trigger an incremental acquisition. For details, see Sync metadata.

For instances under Security Protection, DDL changes made through DMS automatically trigger an incremental acquisition of the affected table's metadata. This fourth method is not available for instances that are not under Security Protection.

Export metadata

To use metadata outside DMS — for example, in compliance audits — export it via the OpenAPI. See Database and table metadata for the API reference.

Note

OpenAPI export is available only for instances under Security Protection.

List of acquired metadata

The following table shows which metadata DMS acquires for each supported database type. DMS uses each category of metadata for a specific purpose: field types and nullability enable sensitive data detection, indexes support query optimization guidance, and programmable object names enable fine-grained permission control.

ObjectMySQL protocol series①PostgreSQL protocol series②SQL ServerOracleMongoDBRedis
DatabaseName, Character setNameNameNameName
TableName, Description, Character set, Number of rows, SizeName, Description, Number of rows, SizeName, Description, Number of rows, SizeName, Description, Number of rows, Size
FieldName, Type, Is nullable, Length, Precision, DescriptionName, Type, Is nullable, Length, Precision, DescriptionName, Type, Is nullable, Length, Precision, DescriptionName, Type, Is nullable, Length, Precision, Description
IndexName, Type, Index fieldsName, Type, Index fieldsName, Type, Index fieldsName, Type, Index fieldsName, Index fields
Programmable objectName, TypeName, TypeName, Type
SchemaName
CollectionName
KeyName, Type
Note

①: MySQL, PolarDB for MySQL, PolarDB distributed version, AnalyticDB for MySQL, DLA, ClickHouse, OceanBase MySQL mode, and MariaDB.

②: PostgreSQL, PolarDB for PostgreSQL (Compatible with Oracle), PolarDB for PostgreSQL, AnalyticDB for PostgreSQL, and OceanBase Oracle mode.