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)的作业报这个错误。
内容来源于网络如有侵权请私信删除
文章来源: 博客园
- 还没有人评论,欢迎说说您的想法!