DB2 archive current log


Archive the current logfile.

$ db2 list history backup all for e03

# Cannot archive log if connected to database

db2 => archive log for database e03
SQL1493N  The application is already connected to an active database.

# Archive log works if not connected

db2 => archive log for database e03
DB20000I  The ARCHIVE LOG command completed successfully.
Comment on this article using form below. Requires email login only for authentication. HTML forbidden, Markdown only.