---
title: "Oracle 快速清理归档文件"
author: "xuxujing"
date: "2013-09-11T12:02:36Z"
tags: []
categories: ["行业应用"]
slug: "oracle"
draft: false
lastmod: "2013-09-12T08:39:35Z"
id: 1940711
url: "https://xujava.iteye.com/blog/1940711"
---

1.查看

```
sqlplus /nolog
conn /as sysdba

select * from v$flash_recovery_area_usage;
```

 

 2.清理

```
rman target /

delete archivelog until time 'sysdate';
或
delete archivelog until time 'sysdate-1'; 
```

 3.出现ORA-09817: Write to audit file failed，说明磁盘空间满了

 

```
df -lh 查看磁盘空间，清理后就可以登录Oracle
```