ORACLE 00257归档日志写满解决办法
首先是闪回日志写满,但是查了数据库以后发现我并没可有开启闪回日志,那么就是归档日志文件写满的缘故了。使用以下几个命令可以看出当前归档日志文件的使用情况:
1、select * from v
r
e
c
o
v
e
r
y
f
i
l
e
d
e
s
t
;
查
看
A
R
C
H
I
V
E
D
L
O
G
值
使
用
百
分
率
,
过
多
需
要
删
除
s
e
l
e
c
t
s
u
m
(
p
e
r
c
e
n
t
s
p
a
c
e
u
s
e
d
)
∗
3
/
100
f
r
o
m
v
recovery_file_dest; 查看ARCHIVED LOG值使用百分率,过多需要删除 select sum(percent_space_used)*3/100 from v
recoveryfiledest;查看ARCHIVEDLOG值使用百分率,过多需要删除selectsum(percentspaceused)∗3/100fromvflash_recovery_area_usage;
查看归档日志文件目录、最大值
select * from v
f
l
a
s
h
r
e
c
o
v
e
r
y
a
r
e
a
u
s
a
g
e
;
s
e
l
e
c
t
∗
f
r
o
m
v
flash_recovery_area_usage; select * from v
flashrecoveryareausage;select∗fromvversion;
所以进入rman程序删除归档日志
delete archivelog until time ‘sysdate’; --删除所有日志
delete expired archivelog all;–删除过期日志