This post is  about how to take RMAN Backup With Archivelog

RMAN> run
{
allocate channel c1 type disk;
backup database;
backup(archivelog all);
}
RMAN> backup archivelog all delete input;

Note: This will backup all archivelog file and delete those from a target location.

If we physically delete some archivelog file before backup then we have to execute the following command before backup-

RMAN> change archivelog all crosscheck;
RMAN> backup archivelog all delete input;

Some other Options:

RMAN> BACKUP ARCHIVELOG FROM TIME 'SYSDATE-2' UNTIL TIME 'SYSDATE';
D:\>set nls_date_format=YYYY-MM-DD hh24:mi:ss
RMAN> run
{
allocate channel c1 type disk;
set until time='2009-05-21 13:08:11';
backup(archivelog all);
}

Today’s thought

Positive thinking will let you do everything better than negative thinking will. Zig Ziglar

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

About The Author

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.