After you enable the log archiving mode, you can change the destination of archiving as needed.
Considerations
The current implementation of automatic cleanup applies only to the data at the backup destination specified in DATA_BACKUP_DEST and the data at the archive destination specified in LOG_ARCHIVE_DEST. If you change the archive destination, the data in the original archive path cannot be automatically cleaned up by OceanBase Database.
Procedure
Log in to the
systenant or user tenant of the cluster as the tenant administrator.Disable the log archiving mode. For more information, see Disable log archiving mode.
Configure a new destination of archiving.
The directory where the new archive destination resides must be empty. For more information about how to configure an archive destination, see the Configure an archive destination section in Prepare for log archiving.
Query the
LOG_ARCHIVE_DESTcolumn in theCDB_OB_ARCHIVE_DESTview in thesystenant or theDBA_OB_ARCHIVE_DESTview in the user tenant to check whether the new archive destination is configured. For more information, see View archiving parameters.
What to do next
After the archive destination is changed, you must enable the log archiving mode. For more information, see Enable log archiving mode.