温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ORA-19527: physical standby redo log must be renamed

发布时间:2020-08-09 07:57:51 来源:ITPUB博客 阅读:375 作者:xychong123 栏目:关系型数据库
错误记录:


1,rman 复制数据库报错。
ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/pdb/redo01.log'


RMAN-05535: WARNING: All redo log files were not defined properly.
ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/pdb/redo02.log'


RMAN-05535: WARNING: All redo log files were not defined properly.
ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/pdb/redo03.log'


RMAN-05535: WARNING: All redo log files were not defined properly.
ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 4 thread 0: '/u01/app/oracle/oradata/pdb/s1.log'


RMAN-05535: WARNING: All redo log files were not defined properly.
ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 5 thread 0: '/u01/app/oracle/oradata/pdb/s2.log'


RMAN-05535: WARNING: All redo log files were not defined properly.
ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 6 thread 0: '/u01/app/oracle/oradata/pdb/s3.log'

解决办法:
备用和主数据库设置如下参数:--------------需要重启数据库。
alter system set LOG_FILE_NAME_CONVERT='pdb','pdb' scope=spfile;


修改之后rman恢复正常,无报错:
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Dec 28 00:18:59 2017


Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.


connected to target database: PDB (DBID=3386854302)
connected to auxiliary database: PDB (not mounted)


RMAN> 2> 3> 4> 5> 
Starting Duplicate Db at 28-DEC-17
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=272 device type=DISK
current log archived


contents of Memory Script:
{
   backup as copy reuse
   targetfile  '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/orapwpdb' auxiliary format 
 '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/orapwpdb'   ;
}
executing Memory Script


Starting backup at 28-DEC-17
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=364 device type=DISK
Finished backup at 28-DEC-17


contents of Memory Script:
{
   backup as copy current controlfile for standby auxiliary format  '/u01/app/oracle/oradata/pdb/control01.ctl';
}
executing Memory Script


Starting backup at 28-DEC-17
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
output file name=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/snapcf_pdb.f tag=TAG20171228T001903
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 28-DEC-17


contents of Memory Script:
{
   sql clone 'alter database mount standby database';
}
executing Memory Script


sql statement: alter database mount standby database


contents of Memory Script:
{
   set newname for tempfile  1 to 
 "/u01/app/oracle/oradata/pdb/temp01.dbf";
   switch clone tempfile all;
   set newname for datafile  1 to 
 "/u01/app/oracle/oradata/pdb/system01.dbf";
   set newname for datafile  3 to 
 "/u01/app/oracle/oradata/pdb/sysaux01.dbf";
   set newname for datafile  4 to 
 "/u01/app/oracle/oradata/pdb/undotbs01.dbf";
   set newname for datafile  6 to 
 "/u01/app/oracle/oradata/pdb/users01.dbf";
   backup as copy reuse
   datafile  1 auxiliary format 
 "/u01/app/oracle/oradata/pdb/system01.dbf"   datafile 
 3 auxiliary format 
 "/u01/app/oracle/oradata/pdb/sysaux01.dbf"   datafile 
 4 auxiliary format 
 "/u01/app/oracle/oradata/pdb/undotbs01.dbf"   datafile 
 6 auxiliary format 
 "/u01/app/oracle/oradata/pdb/users01.dbf"   ;
   sql 'alter system archive log current';
}
executing Memory Script


executing command: SET NEWNAME


renamed tempfile 1 to /u01/app/oracle/oradata/pdb/temp01.dbf in control file


executing command: SET NEWNAME


executing command: SET NEWNAME


executing command: SET NEWNAME


executing command: SET NEWNAME


Starting backup at 28-DEC-17
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/pdb/system01.dbf
output file name=/u01/app/oracle/oradata/pdb/system01.dbf tag=TAG20171228T001909
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/u01/app/oracle/oradata/pdb/sysaux01.dbf
output file name=/u01/app/oracle/oradata/pdb/sysaux01.dbf tag=TAG20171228T001909
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u01/app/oracle/oradata/pdb/undotbs01.dbf
output file name=/u01/app/oracle/oradata/pdb/undotbs01.dbf tag=TAG20171228T001909
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting datafile copy
input datafile file number=00006 name=/u01/app/oracle/oradata/pdb/users01.dbf
output file name=/u01/app/oracle/oradata/pdb/users01.dbf tag=TAG20171228T001909
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 28-DEC-17


sql statement: alter system archive log current
current log archived


contents of Memory Script:
{
   backup as copy reuse
   archivelog like  "/u01/arc/1_47_963859490.dbf" auxiliary format 
 "/u01/arc/1_47_963859490.dbf"   archivelog like 
 "/u01/arc/1_48_963859490.dbf" auxiliary format 
 "/u01/arc/1_48_963859490.dbf"   ;
   catalog clone archivelog  "/u01/arc/1_47_963859490.dbf";
   catalog clone archivelog  "/u01/arc/1_48_963859490.dbf";
   switch clone datafile all;
}
executing Memory Script


Starting backup at 28-DEC-17
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=47 RECID=74 STAMP=963879658
output file name=/u01/arc/1_47_963859490.dbf RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=48 RECID=75 STAMP=963879659
output file name=/u01/arc/1_48_963859490.dbf RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 28-DEC-17


cataloged archived log
archived log file name=/u01/arc/1_47_963859490.dbf RECID=1 STAMP=963879661


cataloged archived log
archived log file name=/u01/arc/1_48_963859490.dbf RECID=2 STAMP=963879662


datafile 1 switched to datafile copy
input datafile copy RECID=2 STAMP=963879662 file name=/u01/app/oracle/oradata/pdb/system01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=3 STAMP=963879662 file name=/u01/app/oracle/oradata/pdb/sysaux01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=4 STAMP=963879662 file name=/u01/app/oracle/oradata/pdb/undotbs01.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=963879662 file name=/u01/app/oracle/oradata/pdb/users01.dbf


contents of Memory Script:
{
   set until scn  1827407;
   recover
   standby
   clone database
    delete archivelog
   ;
}
executing Memory Script


executing command: SET until clause


Starting recover at 28-DEC-17
using channel ORA_AUX_DISK_1


starting media recovery


archived log for thread 1 with sequence 47 is already on disk as file /u01/arc/1_47_963859490.dbf
archived log for thread 1 with sequence 48 is already on disk as file /u01/arc/1_48_963859490.dbf
archived log file name=/u01/arc/1_47_963859490.dbf thread=1 sequence=47
archived log file name=/u01/arc/1_48_963859490.dbf thread=1 sequence=48
media recovery complete, elapsed time: 00:00:00
Finished recover at 28-DEC-17
Finished Duplicate Db at 28-DEC-17


RMAN> 


Recovery Manager complete.

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI