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正常.

 

 

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