HP DP(Data Protector Manager)上一個剛剛遷移升級的資料庫備份作業失敗,具體失敗信息如下 .................................RMAN-08503: piece handle=c-1684727642-20230822-00 comment=A ...
HP DP(Data Protector Manager)上一個剛剛遷移升級的資料庫備份作業失敗,具體失敗信息如下
.................................
RMAN-08503: piece handle=c-1684727642-20230822-00 comment=API Version 2.0,MMS Version 65.10.40.118
RMAN-03091: Finished Control File Autobackup at 22-AUG-23
RMAN-20242: specification does not match any archived log in the repository
RMAN-20242: specification does not match any archived log in the repository
RMAN-08031: released channel: dev_0
RMAN-08031: released channel: dev_1
RMAN-08031: released channel: dev_2
RMAN-08031: released channel: dev_3
Recovery Manager complete.
[Normal] From: xxxx@****nrsdb "" Time: 08/22/23 15:17:01
Oracle Recovery Manager completed.
[Normal] From: xxxx@****nrsdb "" Time: 08/22/23 15:17:01
Starting managed control file backup.
[Normal] From: xxxx@****nrsdb "" Time: 08/22/23 15:17:10
Backing up current control file completed.
Location: /var/opt/omni/tmp/ctrl_enrs_730674.dbf.
[Major] From: xxxx@****nrsdb "" Time: 08/22/23 15:17:14
Backup of managed control file failed.
[Normal] From: xxxx@****nrsdb "" Time: 08/22/23 15:17:14
Backup of target database completed.
[Major] From: xxxx@****nrsdb "" Time: 08/22/23 15:17:14
Script failed. Cannot get information from remote host.
.................................................
使用下麵腳本檢查資料庫的備份記錄,發現資料庫中RMAN的備份是成功的。
SET LINESIZE 720;
COL CON_ID FOR 9999
COL STATUS FORMAT A9;
COL START_TIME FOR A19;
COL END_TIME FOR A19;
COL INPUT_TYPE FOR A10;
COL SESSION_STAMP FOR 9999999
COL OUTPUT_DEVICE_TYPE FOR A8;
COL TIME_HR FOR 999.9
COL IN_GB FOR 9999.9
COL OUT_GB FOR 9999.9
COL IO_IN_RATE FOR A10;
COL IO_OUT_RATE FOR A10;
COL ELAPSED_MIN FOR 9999.9
SELECT CON_ID
, TO_CHAR(START_TIME, 'YYYY-MM-DD HH24:MI:SS') START_TIME
, TO_CHAR(END_TIME, 'YYYY-MM-DD HH24:MI:SS') END_TIME
--, SESSION_STAMP
, INPUT_TYPE BACKUP_TYPE
, STATUS
, INPUT_BYTES/1024/1024/1024 IN_GB
, INPUT_BYTES_PER_SEC_DISPLAY IO_IN_RATE
, OUTPUT_BYTES/1024/1024/1024 OUT_GB
, OUTPUT_BYTES_PER_SEC_DISPLAY IO_OUT_RATE
, ROUND(ELAPSED_SECONDS/60,2) ELAPSED_MIN
--, ROUND(ELAPSED_SECONDS/3600, 1) TIME_HR
, OUTPUT_DEVICE_TYPE
FROM V$RMAN_BACKUP_JOB_DETAILS
WHERE START_TIME > SYSDATE - 14
ORDER BY START_TIME ASC;
使用list backup of controlfile也能查看到控制文件的備份信息
RMAN> list backup of controlfile;
仔細分析日誌後,發現其實報錯信息"Backup of managed control file failed."並不是RMAN備份控制文件時失敗了,而是HP DP(Data Protector)軟體不能備份控制文件,也就是說問題還是在於HP DP,後面搜索了相關資料,結合報錯信息"Script failed. Cannot get information from remote host.",發現引起這個錯誤的原因在於hostame不能解析成當前伺服器的IP地址,具體原因:資料庫遷移過程本來需要切換IP,後面由於一些原因,沒有切換IP,使用新的IP地址,而由於折騰原因,大家都忘記了要修改/etc/hosts了,從而導致HP DP(Data Protector)的作業報這個錯誤。