Hydra Error 318 File with the same name as specified log file already exists.

In this blog post, let’s learn about the error message “318 File with the same name as specified log file already exists.” in Hydra and the description of the error.

Error Message

318 File with the same name as specified log file already exists.

Error Details

The transaction log file you specify in the WITH LOG IN clause cannot already exist. The database server must start a new log file; it cannot append log data to an old log file. An existing log file contains recovery information that might be crucial, so it does not simply empty an existing file. To begin logging for a database that has not been logged before, lock the database, copy all of the database directory to a backup medium, and use the START DATABASE statement to name a new file. To make a partial archive subsequently, lock the database, copy the log file to a backup medium and store it with the full archive, erase or rename the log file, and use the START DATABASE statement.