Archivelog Delete Until time in Oracle Database

Hi,

I will explain Archivelog Delete Until time in Oracle Database in this post.

 

 

Archivelog Delete

Oracle database is archiving redo log group files if database is in archivelog mode.

 

When redo log files are archived, then redo log files are overwritten with new redo data. But archivelogs are not deleted or automatically if you don’t schedule any deletion job.

 

You need to delete archivelog periodically, otherwise you will get archiver errors.

 

 

Delete Archivelog

You can delete all archivelogs with following query.

RMAN>  delete archivelog all;

 

Delete Archivelog Until Time

You can delete archivelogs until spesific time ( until time 1 day ago ) like following query.

RMAN>  delete archivelog until time 'sysdate -1';

 

You can delete all archivelog without prompt ( yes or no question ) and with force option.

RMAN>  delete noprompt force archivelog all;

 

You can delete archivelog which is backed up 1 times to Tape. you can change 1 times with 2 or 3.

RMAN>  delete archivelog all backed up 1 times to SBT_TAPE;

 

 

You can delete archivelog which is backed up 1 times to Disk.

RMAN>   delete archivelog all backed up 1 times to DISK;

 

You can delete archivelog until spesific sequence option.

RMAN>   delete archivelog until sequence 9310 thread 1;









If you want to learn more details about Archivelog in Oracle database, read the following post.

Oracle Database Enable Archivelog Mode and Archivelog Deletion and Generation Frequency

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 958 views last month,  3 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience. I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource. I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks. I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients. If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress mehmetsalih.deveci@outlook.com. -                                                                                                                                                                                                                                                 - Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  mehmetsalih.deveci@outlook.com a mail atabilirsiniz.

Check Also

Alter System Flush Buffer Cache in Oracle

Hi, I will explain Alter System Flush Buffer Cache in Oracle in this post.  3,650 views …

Leave a Reply