ORA-19913 / ORA-28365 in RMAN duplicate but v$encryption_wallet says wallet status is open
While executing an RMAN duplicate operation based on backups only (no target connection, no catalog connection), everything goes well up to the SET NEWNAME section, then this happens (excerpt):
.
.
.
channel chn1: reading from backup piece +RECO/TDWPRD/BACKUPSET/2018_10_21/nnndn0_tag20181021t173029_0.3290.990126685
restarting auxiliary database without server parameter file
Oracle instance started
Total System Global Area 4009754624 bytes
Fixed Size 2931808 bytes
Variable Size 3045045152 bytes
Database Buffers 922746880 bytes
Redo Buffers 39030784 bytes
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/25/2018 10:42:05
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-19870: error while restoring backup piece +RECO/TDWPRD/BACKUPSET/2018_10_21/nnndn0_tag20181021t173029_0.3354.990126659