如何清除掉归档日志文件?

xcwwebmaster 2005-11-30 02:35:48
昨天因归档日志过大,超过了最大值导致数据库报错,根据文档提示,我增大了DB_RECOVERY_FILE_DEST_SIZE的值,请问一下,我能否清除掉归档日志,该如何清除?文档提示,要用rman清除,我该怎样操作?
ORA-19809: limit exceeded for recovery files
Cause: The limit for recovery files specified by the DB_RECOVERY_FILE_DEST_SIZE was exceeded.
Action: The error is accompanied by 19804. See message 19804 for further details.
ORA-19804: cannot reclaim string bytes disk space from string limit
Cause: Oracle cannot reclaim disk space of specified bytes from the DB_RECOVERY_FILE_DEST_SIZE limit.
Action: There are five possible solutions: 1) Take frequent backup of recovery area using RMAN. 2) Consider changing RMAN retention policy. 3) Consider changing RMAN archivelog deletion policy. 4) Add disk space and increase DB_RECOVERY_FILE_DEST_SIZE. 5) Delete files from recovery area using RMAN.

...全文
281 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lcai000 2006-02-04
  • 打赏
  • 举报
回复
请问我自动归档打开了,路径也设好了,为什么看不到归档文件呀?
ashzs 2005-11-30
  • 打赏
  • 举报
回复
如果已经有当前的完整备份了,就把归档日志删掉(直接删除文件即可)!

如果想备份:

下面的脚本备份归档日志:

RMAN> run {
2> allocate channel dev1 type disk;
3> backup
4> format '/ora/backups/log_t%t_s%s_p%p'
5> (archivelog all);
6> release channel dev1;
7> }

  下面的脚本归档日志从# 90 to 100:

RMAN> run {
2> allocate channel dev1 type disk;
3> backup
4> format '/ora/backups/log_t%t_s%s_p%p'
5> (archivelog from logseq=90 until logseq=100 thread 1);
6> release channel dev1;
7> }

  下面的脚本备份在两天内产生的归档日志,在备份完成后会自动删除归档日志。如果备份失败,归档日志不会被删除。

RMAN> run {
2> allocate channel dev1 type disk;
3> backup
4> format '/oracle/backups/log_t%t_s%s_p%p'
5> (archivelog from time 'sysdate-2' all delete input);
6> release channel dev1;
7> }

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧