This invention relates to the field of
data processing and discloses a
database log archiving method, apparatus, device, and medium, comprising: identifying a target
redo log file to be archived from the
database; creating a preliminary
redo log file with the same attributes as the target
redo log file and empty content within the same
logical disk as the target redo log file; moving the target redo log file to a preset archiving
directory located within the same
logical disk via MV operations; changing the filename and storage path of the preliminary redo log file to the original filename and storage path of the target redo log file via MV operations; and mounting the revised preliminary redo log file to the
database. This invention solves the problems of high I / O consumption and low archiving efficiency in existing database log archiving technologies.