Posts Tagged ‘woesOfDba’

Oracle User ICX:Session Timeout Increase In E-Business Suite 12.1/12.2

August 20th, 2025, posted in Oracle EBS Application
Share
Share

Delete Expired Or Obsolete Archvielog Files By RMAN

August 10th, 2025, posted in Oracle Queries
Share
C:\Users\user>rman target /
Recovery Manager: Release 12.1.0.1.0 - Production on Wed Oct 11 17:19:15 2017
Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.
connected to target database: DEV (DBID=4027486540)
RMAN>
RMAN> list expired archivelog all;
using target database control file instead of recovery catalog
specification does not match any archived log in the repository
RMAN>
Before crosscheck its shows like this.
RMAN> crosscheck archivelog all;
RMAN> backup archivelog until time 'sysdate-2' delete input;
To crosscheck all backups use:
RMAN> CROSSCHECK BACKUP ;
To list any expired backups detected by the CROSSCHECK command use:
RMAN> LIST EXPIRED BACKUP ;
To delete any expired backups detected by the CROSSCHECK command use:
RMAN> DELETE EXPIRED BACKUP ;
To crosscheck all archive logs use:
RMAN> CROSSCHECK ARCHIVELOG ALL ;
To list all expired archive logs detected by the CROSSCHECK command use:
RMAN> LIST EXPIRED ARCHIVELOG ALL ;
To delete all expired archive logs detected by the CROSSCHECK command use:
RMAN> DELETE EXPIRED ARCHIVELOG ALL ;
To crosscheck all datafile image copies use:
RMAN> CROSSCHECK DATAFILECOPY ALL ;
To list expired datafile copies use:
RMAN> LIST EXPIRED DATAFILECOPY ALL ;
To delete expired datafile copies use:
RMAN> DELETE EXPIRED DATAFILECOPY ALL ;
To crosscheck all backups of the USERS tablespace use:
RMAN> CROSSCHECK BACKUP OF TABLESPACE USERS ;
To list expired backups of the USERS tablespace:
RMAN> LIST EXPIRED BACKUP OF TABLESPACE USERS ;
To delete expired backups of the USERS tablespace:
RMAN> DELETE EXPIRED BACKUP OF TABLESPACE USERS ;
Share