Active Duplicate with Spfile Clause fails with RMAN-5100 when Connecting to Auxiliary without Password using Wallet

(Doc ID 2422224.1)

Last updated on JULY 12, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Active duplicate with spfile clause fails with RMAN-5100 while restoring spfile from target when connection to auxiliary is made without specifying password using wallet .Same works fine when spfile clause is removed.

Below is the script used for duplicate where connection to auxiliary is made without specifying password :

rman TARGET /@source AUXILIARY /@destination
DUPLICATE TARGET DATABASE TO ORCL FROM ACTIVE DATABASE
PASSWORD FILE
SPFILE
SET DB_UNIQUE_NAME='AZERT'
exit;

Truncated portion of Duplicate log :

contents of Memory Script:
{
  backup as copy reuse
  targetfile '/tech/oracle/dbhome/12.1.0.2.170814/dbs/orapworcl' auxiliary format
 '/tech/oracle/dbhome/12.1.0.2.170814/dbs/orapworcl' ;
  restore clone from service 'orcl' spfile to
 '/tech/oracle/dbhome/12.1.0.2.170814/dbs/spfileorcl.ora';
  sql clone "alter system set spfile= ''/tech/oracle/dbhome/12.1.0.2.170814/dbs/spfileorcl.ora''";
}

allocated channel: ORA_DISK_1
channel ORA_DISK_6: SID=802 device type=DISK
Finished backup at 07-JUN-18 >>>>>>>>>>>>>>>> password file copied successfully

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/07/2018 09:50:17
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-05100: not connected to auxiliary database with a password

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms