DG环境RMAN删除归档报错RMAN-08137: archived log not deleted
admin
2023-04-19 06:02:12
0

Oracle 12C DG环境,备库归档目录告警,查看crontab脚本,发现有删除操作,保持两天的,后手动执行,查看具体报错原因;

RMAN> delete noprompt expired archivelog all;

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5408 device type=DISK
specification does not match any archived log in the repository

RMAN> delete noprompt archivelog until time 'sysdate-2';

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5408 device type=DISK
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_948_973216253.dbf thread=1 sequence=948
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_949_973216253.dbf thread=1 sequence=949
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_950_973216253.dbf thread=1 sequence=950
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_951_973216253.dbf thread=1 sequence=951
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/arch/fcdstdydb1_952_973216253.dbf thread=1 sequence=952
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process

---解决---

RMAN> delete noprompt force archivelog all completed before 'sysdate-2';

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5408 device type=DISK
List of Archived Log Copies for database with db_unique_name FCDSTDYDB

Key Thrd Seq S Low Time


935 1 948 A 2018:06:05 02:23:34
Name: /u01/arch/fcdstdydb1_948_973216253.dbf

936 1 949 A 2018:06:05 02:28:52
Name: /u01/arch/fcdstdydb1_949_973216253.dbf

937 1 950 A 2018:06:05 02:32:32

---说明---

此为11g的bug,需要在delete后加上force关键字,metalink上有记载
RMAN-08137 When deleting archivelogs even when Streams CAPTURE does not require them [ID 1079953.1]

In this Document
  Symptoms
  Changes
  Cause
  Solution
  References

Symptoms
Applies To: 11gR1-11gR2

RMAN is unable to delete archive logs from database even though they are not needed by CAPTURE process anymore.

Changes
 

Cause
In 11g, RMAN looks at MIN_REQUIRED_CAPTURE_CHANGE# in v$database and not at DBA_CAPTURE. By default this value is updated every 6 hours. So by default the value in v$database will be six hours behind the current value.

Solution
Since changing frequency of update to MIN_REQUIRED_CAPTURE_CHANGE# in v$database can not be controlled, following workaround can be used:

Archive log which are not needed by capture process can be deleted using:

delete noprompt force archivelog all completed before 'sysdate-10/1440';

PS:我们的环境是12C DG,该BUG在11g中有明确标识,12C就此MARK一下;

相关内容

热门资讯

终于懂了“新九天牛牛可以开挂吗... 终于懂了“新九天牛牛可以开挂吗?”(太坑了果然有挂)您好,新九天牛牛这个游戏其实有挂的,确实是有挂的...
今日重大发现“新起点开挂神器?... 家人们!今天小编来为大家解答新起点透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很多...
【第一财经】“新皇豪炸/金/花... 网上科普关于“新皇豪炸/金/花有没有挂”话题很是火热,小编也是针对新皇豪炸/金/花作*弊开挂的方法以...
终于明白“广西老友玩到底是不是... 家人们!今天小编来为大家解答广西老友玩透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买...
今日重大发现“网易棋牌开挂器?... 您好:网易棋牌这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游戏...
终于了解“人海牛牛可以开挂吗?... 有 亲,根据资深记者爆料人海牛牛是可以开挂的,确实有挂(咨询软件无需打开...
【第一财经】“蛮王炸/金/花开... 有 亲,根据资深记者爆料蛮王炸/金/花是可以开挂的,确实有挂(咨询软件无...
玩家攻略科普“友谊互娱辅助器?... 家人们!今天小编来为大家解答友谊互娱透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里买很...
年末炸场!荣耀WIN系列硬核实... 2025年末的手机市场,被荣耀WIN系列的首秀彻底点燃。这款从GT系列全面升级而来的电竞旗舰,以“不...
【第一财经】“白金岛三打哈辅助... 【第一财经】“白金岛三打哈辅助器?”(必胜开挂神器)您好,白金岛三打哈这个游戏其实有挂的,确实是有挂...