After log archiving is enabled, you can change the destination of log archiving as needed.
Considerations
The current implementation of automatic cleanup applies only to the backup destinations specified in DATA_BACKUP_DEST and the archive and backup destinations specified in LOG_ARCHIVE_DEST. If you change the log archive destination, data in the original archive path cannot be automatically cleaned up in OceanBase Database.
Procedure
Log in to the
systenant or user tenant of the cluster as the tenant administrator.Disable log archiving. For more information, see Disable log archiving.
Reconfigure the log archive destination.
When you reconfigure the log archive destination, the directory that will become the new log archive destination must be empty. For more information about how to reconfigure the log archive destination, see the Specify the log 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. For more information, see View log archiving parameters.
What to do next
After the log archive destination is changed, you must enable log archiving. For more information, see Enable log archiving.