Metadata is used for display and retrieval within the product. It provides the foundational information required for the automatic detection of sensitive data and for fine-grained permission control over objects such as databases, tables, fields, data rows, and programmable objects. Data Management (DMS) provides different metadata acquisition scopes and methods based on the control mode of the database instance.
Background information
Metadata, also known as a data dictionary, is data that describes the database itself. It includes information such as database names, database character sets, table names, table sizes, the number of table records, table character sets, table fields, table indexes, table descriptions, field types, field precision, and field descriptions. All this information is sourced from internal database objects, such as information_schema. Data points such as table size and row count may not be exact. This data should be used for order-of-magnitude reference only.
Acquisition scope and methods
Acquisition scope and method | Not Security Managed | |
Metadata acquisition scope | Acquires and stores all metadata for the database instance. For more information, see List of acquired metadata. | Acquires and stores only database-level information. Other metadata is loaded in real time after you log on. |
Full metadata acquisition upon initial entry | Yes. | Yes. |
Scheduled full acquisition | By default, the system automatically triggers acquisition for all instances under Security Protection within the tenant at 18:00 daily. | No. |
On-demand incremental acquisition |
|
|
Other | None. | When you log on, database information is acquired based on the permissions of the database account. |
Use metadata
In addition to retrieval and permission management, you can export metadata using an OpenAPI. This is useful for tasks such as compliance audits. For more information about the OpenAPI documentation for metadata, see Database and table metadata.
This feature is available only for instances under Security Protection.
List of acquired metadata
Object | MySQL protocol series① | PostgreSQL protocol series② | SQL Server | Oracle | MongoDB | Redis |
Database |
| Name | Name | Name | None | Name |
Table |
|
|
|
| None | None |
Field |
|
|
|
| None | None |
Index |
|
|
|
|
| None |
Programmable object |
|
|
| None | None | None |
Schema | None | Name | None | None | None | None |
Collection | None | None | None | None | Name | None |
Key | None | None | None | None | None |
|
①: 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.