RMAN active duplicate fails with error:
RMAN-03002: failure of Duplicate Db command at 09/25/2018 08:24:05
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-19849: error while reading backup piece from service <service_name>
ORA-19850: backup piece constructed from service <service_name> is corrupt
ORA-19837: invalid blocksize 0 in backup piece header
ORA-19660: some files in the backup set could not be verified
ORA-19661: datafile 0 could not be verified
ORA-19849: error while reading backup piece from service <service_name>
ORA-19850: backup piece constructed from service <service_name> is corrupt
ORA-19837: invalid blocksize 0 in backup piece header
This is because the Encryption is configured in the target database.
Execute “SHOW ALL” in the rman and see if you notice the following,
RMAN> CONFIGURE ENCRYPTION FOR DATABASE ON;
RMAN> CONFIGURE ENCRYPTION ALGORITHM ‘AES128’; # default
To fix this explicitly add “set encryption off” at the start of the duplicate command:
RMAN> set encryption off;
RMAN> duplicate target database ….
2. Change the configuration of the target to OFF until the duplicate completes:
RMAN> CONFIGURE ENCRYPTION FOR DATABASE OFF;