ORA-17628: Oracle error 19505 returned by remote Oracle server

Problem

Dataguard – Standby duplication process failed with ORA-17628

Hand On Senario

bash-3.2$ rman TARGET sys/*******@pdb AUXILIARY sys/******@sdb
Recovery Manager: Release 11.2.0.3.0 – Production on Thu Oct 20 15:19:09 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: orcl (DBID=3171721304)
connected to auxiliary database: orcl (not mounted)
RMAN> duplicate target database for standby from active database nofilenamecheck;
Starting Duplicate Db at 20-OCT-16
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=991 instance=orcl2 device type=DISK
contents of Memory Script:
{
backup as copy reuse
targetfile ‘/u01/app/oracle/product/11.2.0/db_1/dbs/orapworcldr2’ auxiliary format
‘/u01/app/oracle/product/11.2.0/db_1/dbs/orapworcl2’ ;
}
executing Memory Script
Starting backup at 20-OCT-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1499 instance=orcldr2 device type=DISK
Finished backup at 20-OCT-16
contents of Memory Script:
{
backup as copy current controlfile for standby auxiliary format ‘+ORAREDO/orcl/controlfile/current.256.925744863’;
restore clone controlfile to ‘+ORAFRA/orcl/controlfile/current.256.925744863’ from
‘+ORAREDO/orcl/controlfile/current.256.925744863’;
sql clone “create spfile from memory”;
shutdown clone immediate;
startup clone nomount;
sql clone “alter system set control_files =
”+ORAREDO/orcl/controlfile/current.256.925744863”, ”+ORAFRA/orcl/controlfile/current.256.925744863” comment=
”Set by RMAN” scope=spfile”;
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
Starting backup at 20-OCT-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
output file name=+ORAFRA/orcldr/snapshot/snapcf_orcldr.f tag=TAG20161020T151933 RECID=10 STAMP=925744774
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 20-OCT-16
Starting restore at 20-OCT-16
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 20-OCT-16
sql statement: create spfile from memory
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 8551575552 bytes
Fixed Size 2245480 bytes
Variable Size 5066722456 bytes
Database Buffers 3472883712 bytes
Redo Buffers 9723904 bytes
sql statement: alter system set control_files = ”+ORAREDO/orcl/controlfile/current.256.925744863”, ”+ORAFRA/orcl/controlfile/current.256.925744863” comment= ”Set by RMAN” scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 8551575552 bytes
Fixed Size 2245480 bytes
Variable Size 5066722456 bytes
Database Buffers 3472883712 bytes
Redo Buffers 9723904 bytes
contents of Memory Script:
{
sql clone ‘alter database mount standby database’;
}
executing Memory Script
sql statement: alter database mount standby database
RMAN-05529: WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.
contents of Memory Script:
{
set newname for tempfile 1 to
“+orasys”;
switch clone tempfile all;
set newname for datafile 1 to
“+orasys”;
set newname for datafile 2 to
“+orasys”;
set newname for datafile 3 to
“+orasys”;
set newname for datafile 4 to
“+orasys”;
set newname for datafile 5 to
“+orasys”;
sql ‘alter system archive log current’;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to +orasys in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 20-OCT-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00110 name=+PUBWIFI/orcldr/datafile/elitewifi.257.866043479
output file name=+PUBWIFI/orcl/datafile/elitewifi.257.925744929 tag=TAG20161020T152038
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting datafile copy
input datafile file number=00035 name=+ORADATA1/orcldr/datafile/tbsidxusernamestatistics.dbf
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 10/20/2016 15:21:36
ORA-17628: Oracle error 19505 returned by remote Oracle server
continuing other job steps, job failed will not be re-run

Analysis

Some datafiles are not using OMF name while the rest of the datafiles are using OMF name

http://selvathiruppathi.blogspot.in/2015/04/ora-17628-ora-19505-during-rman.html

http://selvathiruppathi.blogspot.in/2015/04/ora-17628-ora-19505-during-rman.html

alter system set db_file_name_convert=’orcldr’,’orcl’ scope=spfile sid=’*’;
alter system set log_file_name_convert=’orcldr’,’orcl’ scope=spfile sid=’*’;

Thanks to 🙂 http://selvathiruppathi.blogspot.in/2015/04/ora-17628-ora-19505-during-rman.html

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s