DG Duplicate遇到RMAN-05501错误解决

一次在客户这里配置DG的时候出现如下报错:

executing Memory Script

Starting backup at 09-NOV-2019 23:20:53
released channel: ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/09/2019 23:20:53
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-12001: could not open channel ORA_DISK_1
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-12154: TNS:could not resolve the connect identifier specified

RMAN> 
 

经过排查,发现连接dg端的tns都是配置正确的.一时感到很迷惑.仔细看了报错,发现可能是无法分配通道导致的.

所以查看rman的配置,发现如下:

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name HIS are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
configuration for DISK channel 2 is ignored
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT '*';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT '*';

CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
 

这里配置了通道1和2.感觉是这里配置了通道导致的无法分配新的通道连接辅助实例.

那么怎么取消这个通道的配置呢?网上也没有解决办法,最后使用提示大法,就是在rman中每次打出命令然后不打直接回车让他提示

最后找出了命令:

configure channel  1 device type disk clear;

configure channel  2 device type disk clear;

其实可以通过MOS查一下,不过客户现场没有网络.就这么办了,

恢复rman配置后duplicate正常.

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章