ORA-00257----Oracle如何删除归档日志?

Microsoft Windows [版本 6.1.7601]
版权所有 © 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on 星期一 1月 13 16:28:14 2020

Copyright © 1982, 2013, Oracle. All rights reserved.

连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shutdown immediate
ORA-01109: 数据库未打开

已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount
ORACLE 例程已经启动。

Total System Global Area 1.0255E+10 bytes
Fixed Size 2290120 bytes
Variable Size 6710890040 bytes
Database Buffers 3523215360 bytes
Redo Buffers 18817024 bytes
数据库装载完毕。
SQL> recover database
完成介质恢复。

数据库已更改。

SQL> select * from v$recovery_file_dest;

进入oracle的rman模式:rman target /

使用删除语句进行删除:delete archivelog until time ‘sysdate-7’;

其中sysdate-7代表保留近七天的归档日志,如需保留近十天的,则需将sysdate-7修改为sysdate-10即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值