备注:
Oralce 11.2.0.4

文章目录

  • 一.问题描述
  • 二.解决方案
    • 2.1 清理归档日志
    • 2.2 问题分析
    • 2.3 最终解决方案
  • 参考:

一.问题描述

因为空间不足导致无法归档,数据库hang住

Thu Jan 14 03:24:49 2021
ARC3: Error 19502 Closing archive log file '/oracle/ora11g/db/dbs/arch/1_74591_982339590.dbf'
Thu Jan 14 03:24:52 2021
ARC0: Error 19502 Closing archive log file '/oracle/ora11g/db/dbs/arch/1_74591_982339590.dbf'
ARC1: Error 19502 Closing archive log file '/oracle/ora11g/db/dbs/arch/1_74591_982339590.dbf'
ARC3: Error 19502 Closing archive log file '/oracle/ora11g/db/dbs/arch/1_74591_982339590.dbf'

二.解决方案

首先想到的是清理空间,不过由于早上上班在9:00左右才介入处理,而空间不足导致的归档报错从凌晨3点左右就开始的,清理的5G空间很快被归档日志给占用了。

好在此时数据盘用的是lvm,vg还剩余9G,此时增加了9G的空间

df -h
vgs
lvs
lvresize -l +9 /dev/mapper/vg_orcldb-lv_orcldb1
df -h
lvdisplay
resize2fs /dev/mapper/vg_orcldb-lv_orcldb1
df -h

2.1 清理归档日志

rman target /
delete noprompt archivelog all completed before 'sysdate-5';

结果报错:
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process

RMAN> delete noprompt archivelog all completed before 'sysdate-5';using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=6602 device type=DISK
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96128_982856478.dbf thread=1 sequence=96128
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96129_982856478.dbf thread=1 sequence=96129
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96130_982856478.dbf thread=1 sequence=96130
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96131_982856478.dbf thread=1 sequence=96131
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96132_982856478.dbf thread=1 sequence=96132
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96133_982856478.dbf thread=1 sequence=96133
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96134_982856478.dbf thread=1 sequence=96134
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96135_982856478.dbf thread=1 sequence=96135
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96136_982856478.dbf thread=1 sequence=96136
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96137_982856478.dbf thread=1 sequence=96137
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96138_982856478.dbf thread=1 sequence=96138
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96139_982856478.dbf thread=1 sequence=96139
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96140_982856478.dbf thread=1 sequence=96140
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96141_982856478.dbf thread=1 sequence=96141
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96142_982856478.dbf thread=1 sequence=96142
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96143_982856478.dbf thread=1 sequence=96143
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96144_982856478.dbf thread=1 sequence=96144
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96145_982856478.dbf thread=1 sequence=96145
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96146_982856478.dbf thread=1 sequence=96146
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96147_982856478.dbf thread=1 sequence=96147
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96148_982856478.dbf thread=1 sequence=96148
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96149_982856478.dbf thread=1 sequence=96149
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96150_982856478.dbf thread=1 sequence=96150
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96151_982856478.dbf thread=1 sequence=96151
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96152_982856478.dbf thread=1 sequence=96152
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96153_982856478.dbf thread=1 sequence=96153
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96154_982856478.dbf thread=1 sequence=96154
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96155_982856478.dbf thread=1 sequence=96155
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96156_982856478.dbf thread=1 sequence=96156
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96157_982856478.dbf thread=1 sequence=96157
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96158_982856478.dbf thread=1 sequence=96158
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96159_982856478.dbf thread=1 sequence=96159
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96160_982856478.dbf thread=1 sequence=96160
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96161_982856478.dbf thread=1 sequence=96161
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96162_982856478.dbf thread=1 sequence=96162
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96163_982856478.dbf thread=1 sequence=96163
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96164_982856478.dbf thread=1 sequence=96164
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96165_982856478.dbf thread=1 sequence=96165
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96166_982856478.dbf thread=1 sequence=96166
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96167_982856478.dbf thread=1 sequence=96167
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96168_982856478.dbf thread=1 sequence=96168
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96169_982856478.dbf thread=1 sequence=96169
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96170_982856478.dbf thread=1 sequence=96170
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96171_982856478.dbf thread=1 sequence=96171
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96172_982856478.dbf thread=1 sequence=96172
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96173_982856478.dbf thread=1 sequence=96173
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96174_982856478.dbf thread=1 sequence=96174
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96175_982856478.dbf thread=1 sequence=96175
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96176_982856478.dbf thread=1 sequence=96176
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96177_982856478.dbf thread=1 sequence=96177
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96178_982856478.dbf thread=1 sequence=96178
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96179_982856478.dbf thread=1 sequence=96179
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96180_982856478.dbf thread=1 sequence=96180
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96181_982856478.dbf thread=1 sequence=96181
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96182_982856478.dbf thread=1 sequence=96182
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96183_982856478.dbf thread=1 sequence=96183
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96184_982856478.dbf thread=1 sequence=96184
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96185_982856478.dbf thread=1 sequence=96185
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96186_982856478.dbf thread=1 sequence=96186
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96187_982856478.dbf thread=1 sequence=96187
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96188_982856478.dbf thread=1 sequence=96188
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96189_982856478.dbf thread=1 sequence=96189
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96190_982856478.dbf thread=1 sequence=96190
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96191_982856478.dbf thread=1 sequence=96191
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96192_982856478.dbf thread=1 sequence=96192
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96193_982856478.dbf thread=1 sequence=96193
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96194_982856478.dbf thread=1 sequence=96194
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96195_982856478.dbf thread=1 sequence=96195
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96196_982856478.dbf thread=1 sequence=96196
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96197_982856478.dbf thread=1 sequence=96197
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96198_982856478.dbf thread=1 sequence=96198
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96199_982856478.dbf thread=1 sequence=96199
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96200_982856478.dbf thread=1 sequence=96200
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96201_982856478.dbf thread=1 sequence=96201
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96202_982856478.dbf thread=1 sequence=96202
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96203_982856478.dbf thread=1 sequence=96203
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96204_982856478.dbf thread=1 sequence=96204
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96205_982856478.dbf thread=1 sequence=96205
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96206_982856478.dbf thread=1 sequence=96206
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96207_982856478.dbf thread=1 sequence=96207
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96208_982856478.dbf thread=1 sequence=96208
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96209_982856478.dbf thread=1 sequence=96209
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96210_982856478.dbf thread=1 sequence=96210
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96211_982856478.dbf thread=1 sequence=96211
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96212_982856478.dbf thread=1 sequence=96212
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96213_982856478.dbf thread=1 sequence=96213
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96214_982856478.dbf thread=1 sequence=96214
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96215_982856478.dbf thread=1 sequence=96215
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96216_982856478.dbf thread=1 sequence=96216
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96217_982856478.dbf thread=1 sequence=96217
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96218_982856478.dbf thread=1 sequence=96218
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96219_982856478.dbf thread=1 sequence=96219
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96220_982856478.dbf thread=1 sequence=96220
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96221_982856478.dbf thread=1 sequence=96221
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96222_982856478.dbf thread=1 sequence=96222
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96223_982856478.dbf thread=1 sequence=96223
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96224_982856478.dbf thread=1 sequence=96224
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96225_982856478.dbf thread=1 sequence=96225
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96226_982856478.dbf thread=1 sequence=96226
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96227_982856478.dbf thread=1 sequence=96227
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96228_982856478.dbf thread=1 sequence=96228
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96229_982856478.dbf thread=1 sequence=96229
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96230_982856478.dbf thread=1 sequence=96230
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96231_982856478.dbf thread=1 sequence=96231
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96232_982856478.dbf thread=1 sequence=96232
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96233_982856478.dbf thread=1 sequence=96233
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96234_982856478.dbf thread=1 sequence=96234
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96235_982856478.dbf thread=1 sequence=96235
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96236_982856478.dbf thread=1 sequence=96236
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96237_982856478.dbf thread=1 sequence=96237
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96238_982856478.dbf thread=1 sequence=96238
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96239_982856478.dbf thread=1 sequence=96239
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96240_982856478.dbf thread=1 sequence=96240
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96241_982856478.dbf thread=1 sequence=96241
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96242_982856478.dbf thread=1 sequence=96242
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96243_982856478.dbf thread=1 sequence=96243
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96244_982856478.dbf thread=1 sequence=96244
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96245_982856478.dbf thread=1 sequence=96245
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96246_982856478.dbf thread=1 sequence=96246
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96247_982856478.dbf thread=1 sequence=96247
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96248_982856478.dbf thread=1 sequence=96248
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96249_982856478.dbf thread=1 sequence=96249
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96250_982856478.dbf thread=1 sequence=96250
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96251_982856478.dbf thread=1 sequence=96251
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96252_982856478.dbf thread=1 sequence=96252
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96253_982856478.dbf thread=1 sequence=96253
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96254_982856478.dbf thread=1 sequence=96254
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96255_982856478.dbf thread=1 sequence=96255
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/ora11g/db/dbs/arch/1_96256_982856478.dbf thread=1 sequence=96256RMAN>

2.2 问题分析

之前这个库是有备库的,不过公司业务缩减,要求服务器降配,前两周的刚刚把备库下线了
主库log_archive_dest_state_2已经设置为defer,主库alert日志查看也没有往备库传日志了。
但是归档居然删不掉

alter system set log_archive_dest_state_2=defer scope=both;
SQL>
SQL> show parameter  log_archive_dest_state_2;NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_2             string      DEFER
log_archive_dest_state_20            string      enable
log_archive_dest_state_21            string      enable
log_archive_dest_state_22            string      enable
log_archive_dest_state_23            string      enable
log_archive_dest_state_24            string      enable
log_archive_dest_state_25            string      enable
log_archive_dest_state_26            string      enable
log_archive_dest_state_27            string      enable
log_archive_dest_state_28            string      enable
log_archive_dest_state_29            string      enable
SQL>

itpub上正确取消dataguard的步骤
复盘了下,此次总共涉及下线3个备库
有1个备库我是按照下面步骤来的,然后shutdown了备库,后面系统组的同事下线的。
另外2个备库只修改了主库的 log_archive_dest_state_2 参数,并未调整备库,所以Oracle默认备库还存在。
导致删除这2个备库的报错,最终未删除,归档日志将磁盘撑爆,数据库hang住

On Standby DB:
i) SQL>alter database recover managed standby database cancel;
ii) SQL> alter system set log_archive_dest_state_2=DEFER;On Primary DB:i) SQL> alter system set log_archive_dest_state_2=DEFER;

2.3 最终解决方案

RMAN> delete noprompt force archivelog all completed before ‘sysdate-5’;
此为11g的bug,需要在delete后加上force关键字,metalink上有记载

RMAN-08137 When deleting archivelogs even when Streams CAPTURE does not require them [ID 1079953.1]In this DocumentSymptomsChangesCauseSolutionReferencesSymptoms
Applies To: 11gR1-11gR2RMAN is unable to delete archive logs from database even though they are not needed by CAPTURE process anymore.ChangesCause
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';

参考:

1.https://blog.51cto.com/yangjunfeng/2132820

Oracle RMAN无法删除归档一例相关推荐

  1. oracle下定时删除归档脚本

    oracle下定时删除归档脚本             2012-06-25 21:29:43 分类: Oracle ---del_arch.sh #! /bin/bash exec >> ...

  2. RMAN无法删除归档日志

    今天同事问到一个问题,他那边的一套11g数据库使用RMAN没办法删除旧的归档,导致磁盘使用率很高.要来ip登录上去一看确实是,最旧的归档日志是16年5月的. 1 2 3 4 5 6 7 8 9 10 ...

  3. 通过Rman定期删除归档脚本

    如果我们打开oracle的归档模式,那么在数据文件吞噬着硬盘空间的同时,归档文件也在无声无息中占用着我们的硬盘空间 一般生产系统都会有良好的备份机制,所以归档日志是可以删除的,下面就是通过脚本的方式将 ...

  4. 未解决ora-01034、ora-03113、oracle使用RMAN删除归档日志

    接此,https://blog.csdn.net/bcbobo21cn/article/details/116762059 oracle不能用:继续解决问题: 前次操作没有 set ORACLE_SI ...

  5. oracle清理asm归档日志,【Oracle】 rman 删除归档日志的命令

    因为数据仓库上asm的磁盘空间不足,需要删除早期的归档日志,查看资料有以下两种方式: delete archivelog until time 'sysdate-N'; delete archivel ...

  6. ORACLE 删除归档日志连接rman查看归档日志占有率

    我们都知道在controlfile中记录着每一个archivelog文件的相关信息,当然们在OS下把这些物理文件delete掉后,在我们的controlfile中仍然记录着这些archivelog文件 ...

  7. oracle rman删除日志,用rman 正确地删除归档日志

    如何正确地删除Archivelog: Archivelog并不能直接得从OS层直接物理删除,因为archivelog的相关信息是记录在controlfile中的,当物理删除后不会改变controlfi ...

  8. ORACLE如何删除归档日志文件

    1,首先删除归档日志物理文件,归档日志一般都是位于archive目录下,AIX系统下文件格式为"1_17884_667758186.dbf",建议操作前先对数据库进行备份,删除时至 ...

  9. 当ORACLE归档日志满后如何正确删除归档日志

    当ORACLE 归档日志满了后,将无法正常登入ORACLE,需要删除一部分归档日志才能正常登入ORACLE. 一.首先删除归档日志物理文件,归档日志一般都是位于archive目录下,AIX系统下文件格 ...

  10. Oracle RMAN 清除归档日志

    在开发环境及UAT环境经常碰到需要清除归档日志的情形,对于这个问题方法有很多.可以直接使用rm方式清除归档日志,也可以使用find命令来查找符合条件的记录来清除归档日志,或者直接写个shell脚本来搞 ...

最新文章

  1. JavaScript Array reverse 方法:颠倒数组中元素的顺序
  2. python序列类型-什么是序列,Python序列详解(包括序列类型和常用操作)
  3. mysql第四项_mysql数据库的基本介绍与操作(第四篇-mysql索引篇)
  4. oracle rac维护命令,2015年oracle rac日常基本维护命令.doc
  5. oracle的备份与恢复
  6. es6新特性中...的用法
  7. 支付宝开放生活频道 消费者可直达商家生活号、小程序
  8. SQL Server高级查询之子查询(多行子查询)
  9. WWDC2019最值得看的十个视频
  10. VMware下载(官网)
  11. UE4 4.13 VR FPS 继续优化
  12. 气味识别以及气味数字化存储技术
  13. 一味顺从的人没有好果子吃
  14. egret_eui容器
  15. Gitlab的安装及仓库创建
  16. 微派微营销智能服务平台:微信营销最佳搭档
  17. TridentNet
  18. 电子凸轮规划曲线算法
  19. 判断两个事件是不是独立事件
  20. 旅行时间和花费c语言编程,C语言顺序结构 -C语言计算旅行花费(附带源码)

热门文章

  1. 3、T5L迪文屏资源介绍
  2. ITUT-T recommendations G.168 标准回声模型
  3. 什么是pid控制算法_控制算法原理及实现之PID(以飞控为例)
  4. FPGAASIC开发流程
  5. C#编程总结(四)多线程应用(进度条的编程问题)——转自http://www.cnblogs.com/yank/p/3232955.html...
  6. python电子表格类_python合并同类型excel表格的方法
  7. 智能汽车域控制器的认识
  8. 移动游戏运营必备的数据分析指标
  9. 小程序数据分析工具:TalkingData
  10. 硅基生命之漫谈-1:天马行空