[Oracle]为何Archivelog 没有马上被删除
客户设置了 Archivelog 的 deletion policy 是 CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
所以,他认为只要在Standby 端提交了,就应该将此 Archivelog 自动删除。
但是,客户仍然发现 FRA 满了,所以提出了质疑。
经过调查,我认为,
删除不是马上发生的,只有当系统有需要时,才会进行。
Applied,只是保证这个Archivelog 成为了 删除的候选对象(reclaimable)
论据:
======================================================================
Oracle Database does not
delete eligible files from the flash recovery area
until the space must be reclaimed for some other purpose. ***1
......
Oracle Database automatically deletes eligible files to reclaim space in the recovery area as needed. ***2
...
- Archived redo logs are not eligible for deletion
until all the consumers of the logs have satisfied their requirements ( If Archived Redo Log Deletion Policy is set ) . ***4
论点:
======================================================================
上面的 ***4 说:
applied 之后,它们只是变成 eligible 。
上面的 ***1 和 ***2 说:
FRA有需要的时候,才会 删除的。
结论:
======================================================================
applied 了,也不是马上就删除的。有需要的时候,由系统自动来删除。
[Oracle]为何Archivelog 没有马上被删除
转载文章标签 Oracle deletion policy hive oracle 文章分类 代码人生
-
低代码为何这么“香”
带你熟悉低代码开发,实现应用的快速开发和上线。
开发者 数据 数据库 低代码 astro -
oracle数据文件被删除没备份恢复
说明:数据库开规档,没备份,数据文件被删除的恢复条件: 1.数据库开启归档 2.创建数据文件之后的
create datafile 数据文件丢失恢复 SQL 数据文件 oracle