All Products
Search
Document Center

PolarDB:Cold data archiving FAQ

Last Updated:Nov 03, 2026

This topic answers frequently asked questions about PolarDB cold data archiving.

How do I handle the "[Data Lifecycle Management] DLM storage engine is not support. The value of polar_dlm_storage_mode is OFF." error?

You must enable the cold data archiving feature in the PolarDB console. For more information, see Enable cold data archiving.

Why is the cold data archiving menu missing from the PolarDB console navigation bar?

After your request to enable cold data archiving is approved, there is a delay. Wait a few minutes and refresh the page, and the cold data archiving menu appears.

What are the supported file formats for cold data?

The supported formats are CSV and ORC.

How do I check whether a table or a partition was archived successfully?

After archiving is complete, you can use either of the following methods to check whether a table or a partition was archived successfully:

  • Run the SHOW CREATE TABLE table_name; command to view the table schema and confirm whether the table or partition was archived successfully.

    • For a regular table, if the output shows STORAGE OSS or CONNECTION='default_oss_server', the data was archived successfully.

    • For a partitioned table, if a partition shows ENGINE=CSV/ORC, the data was archived successfully.

  • Check in the console whether the archiving succeeded.

    Log in to the PolarDB console。 In the left-side navigation pane of the target cluster, choose Settings and Management > Data Lifecycle. On the Data Archive (Cold Data) tab, check whether the table name appears. If it appears, the data has been archived to OSS.

How do I handle the "[Data Lifecycle Management] errmsg: Not allowd archive the archived table." error when I run an archiving statement?

Archiving a table that has already been archived is not supported. Check whether the table in your archiving statement has already been archived.

How do I view the size of archived cold data?

You can view the size of archived cold data in the console, or query the cold data table directly on the cluster. For more information, see View archived cold data.

How do I query archived cold data?

After you archive data from regular tables and partitioned tables, you can query the archived cold data by using the following methods:

  • Regular table: after cold data archiving, you query cold data in the same way as you query hot data. You do not need to change the access method.

  • Partitioned table: after cold data archiving, for information about how to query cold data, see Query a hybrid partition.

How do I modify archived cold data?

You cannot directly modify cold data in CSV or ORC format that has been archived to OSS. You can use the ALTER TABLE table_name ENGINE=InnoDB statement to import the table data from OSS back to PolarStore. After the modification is complete, use the ALTER TABLE t ENGINE = CSV STORAGE OSS; script to archive the table data to OSS. For more information, see Restore data from OSS to PolarStore.

How do I delete archived cold data?

Note

Use a privileged account to delete the archived table.

First, use DROP TABLE to drop the archived table, and then use CALL dbms_oss.delete_table_file('database_name', 'table_name'); to delete the archived cold data.

How is automatic data archiving triggered?

Currently, automatic data archiving is triggered by an event. For more information, see Manage hot and cold data.

Are there logs for automatic data archiving?

The logs of automatically archived data are recorded in the mysql.dlm_progress table. You can view them by using an account that has permissions on the mysql database. For more information, see mysql.dlm_progress table.

How do I view the current automatic data archiving policy?

The policies for automatically archiving data are recorded in the mysql.dlm_policies table. You can view them by using an account that has permissions on the mysql database. For more information, see mysql.dlm_policies table.

How do I archive data to my own OSS engine?

Currently, you cannot archive data to your own OSS engine. You can use select into ossoutfile to export data to an OSS engine. For more information, see Export local tables serially to the OSS engine.

After cold data archiving, the original table still exists in the database. Do I need to delete it manually to save storage space?

After cold data archiving, PolarDB stores only the metadata of the table. The actual data is already stored in OSS and does not affect your storage space.

How do I handle the OSS error: error message: The OSS Access Key Id you provided does not exist in our records. error?

Error messages that begin with OSS error: are returned by OSS. You can view OSS error codes to learn the specific cause of an error. The cause of and solution to the preceding error are as follows:

  • Cause: The temporary access credential has expired. An expired credential automatically becomes invalid.

  • Solution: Use the temporary AccessKey pair (AccessKeyId and AccessKeySecret) to request a new temporary access credential from the app server. For more information, see Obtain a temporary access credential.

Why can I not see the archived table information in the console after cold data archiving?

If the table you archived is empty, no CSV file is generated in OSS after the archiving succeeds, and the table information does not appear in the console.

How long does a rename operation take on a table archived to OSS?

Renaming a table archived to OSS modifies the file information in OSS. The speed is approximately 100 MB/s, so you can estimate the duration based on the total data volume.

How do I handle the ERROR 8185 (HY000): Change partition not support archive to engine CSV error?

The feature that archives partitions of a partitioned table to OSS is currently in canary release. To use this feature, go to Quota Center. Find the quota name by quota ID polardb_mysql_hybrid_partition, and then click Apply in the Actions column to enable this feature.

Is the data volume of archived cold data larger or smaller than that of the original table?

The data format of cold data changes after archiving, which changes the storage capacity that it occupies. The specific changes are as follows:

  • If the original table uses the InnoDB engine, the data volume after archiving may become smaller.

  • If the original table uses X-Engine, the data volume after archiving may become larger.

The data volume of data archived in CSV format may be larger than that of data archived in ORC format.

Why can I not see the archived cold data and files in the OSS of my Alibaba Cloud account?

PolarDB cold data is stored in the system default OSS instead of in your own OSS, so you cannot see it. Currently, you can view archived cold data and files only in the PolarDB console.

Why does the "Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables." error occur when a stored procedure involves a cold storage table?

This error occurs because cold storage tables in CSV or ORC format do not support transactions. If a stored procedure involves a cold storage table, the operation is not allowed even when no actual write operation is performed. You can change the storage engine to X-Engine, which reduces the storage cost and supports transactions at the same time.

Why does the "The last packet successfully received from the server was 15,287 milliseconds ago. The last packet sent successfully to the server was 15,287 milliseconds ago." error occur when I restore data archived to OSS?

This error occurs because, during the restoration, PolarDB for MySQL caused the client execution to time out. Increase the minimum PCU specification of the cluster as needed, and then run the restoration task again.

PolarDB for MySQL: How do I enable cold data archiving on an earlier version?

You can upgrade PolarDB for MySQL to a version that meets the requirements. For more information about the available versions and how to upgrade, see Minor version management.

PolarDB for MySQL: Does the data capacity change after the data is archived to OSS cold storage?

PolarDB for MySQL table size changes to some extent after the data is archived to OSS cold storage.

Note
  • Compared with an InnoDB table that has no indexes, data is compressed after it is archived as cold data, and the file generated by the archiving is usually smaller than the local InnoDB table.

  • For an InnoDB table that has indexes, the indexes are deleted after the data is archived as cold data, so the size of the archived table is further reduced.

  • For X-Engine tables, because X-Engine has a very high compression ratio locally, the cold data capacity is somewhat larger than that of the local table after the data is archived as a cold data table.

  • Two formats are currently supported. For more information, see Archive data in CSV or ORC format. Between the two formats, an ORC cold data table has a better compression ratio than a CSV cold data table, so archiving data as ORC cold data occupies less OSS capacity.