You need to be connected to the Teradata arcmain utility. To archive the database, the user must be granted the ARCHIVE and SELECT privileges on the database to be archived. This can be checked in the following code:
/*GRANT Archive to archive role*/GRANT RESTORE, DUMP ON DATABASENAME TO ARCH_ROLE;GRANT ARCH_ROLE to ARCH01