oracle 系统管理员账号密码Oracle11g删除归档日志

Oracle11g删除归档日志。

操作步骤

$ bin/sqlplus / as sysdbaRMAN> delete archivelog all completed before 'sysdate-1';

具体操作及输出

$ bin/rman target /Recovery Manager: Release 11.2.0.1.0 - Production on Fri Apr 28 10:53:28 2017Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORCL (DBID=1451205847, not open)RMAN> list expired archivelog all;specification does not match any archived log in the repositoryRMAN> delete expired archivelog all;using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=5 device type=DISKspecification does not match any archived log in the repositoryRMAN> delete archivelog all completed before 'sysdate-1';released channel: ORA_DISK_1allocated channel: ORA_DISK_1channel ORA_DISK_1: SID=5 device type=DISKList of Archived Log Copies for database with db_unique_name ORCL=====================================================================Key     Thrd Seq     S Low Time ------- ---- ------- - ---------1       1    45      A 09-MAR-17        Name: /home/kylin/app/kylin/flash_recovery_area/ORCL/archivelog/2017_03_09/o1_mf_1_45_dd2qz3wo_.arc...100     1    144     A 26-APR-17        Name: /home/kylin/app/kylin/flash_recovery_area/ORCL/archivelog/2017_04_27/o1_mf_1_144_dj2py4mv_.arcDo you really want to delete the above objects (enter YES or NO)? YESdeleted archived logarchived log file name=/home/kylin/app/kylin/flash_recovery_area/ORCL/archivelog/2017_03_09/o1_mf_1_45_doracle账号d2qz3wo_.arc RECID=1 STAMP=938210404...deleted archived logarchived log file name=/home/kylin/app/kylin/flash_recovery_area/ORCL/archivelog/2017_04_27/o1_mf_1_144_dj2py4mv_.arc RECID=100 STAMP=942403653Deleted 100 objects
此条目发表在oracle metalink账号分类目录,贴了标签。将固定链接加入收藏夹。