Use these commands to place a database in read-only mode in preparation for archiving, and to restore the database to read-write mode after archiving is complete:
BEGINARCHIVE
ENDARCHIVE