Question: I have been backing-up my
archived redo log files bit the files are not being removed
from the archived redo log directory. What is the RMAN
command to delete archived redo log files after they have
been backed-up?
Answer: In RMAN there is no need to
manually go to the OS and delete archived redo log files
after they have been backed up, RMAN will do this for you.
You can use the "delete all input" or "delete input"
commands to delete archived redo log files after they have
been backed-up.
Be careful using the "delete all"
command because this deletes all archived redo logs files
from all archived redo log file destimations.
For
example, Oracle docs offer this example of the difference
between "delete all input" and "delete input":
"Assume that you archive to /arc_dest1
, /arc_dest2
,
and /arc_dest3
, and you run the following
command:
BACKUP DEVICE TYPE sbt
ARCHIVELOG ALL
DELETE ALL INPUT;
In this case RMAN backs up only one copy
of each log sequence number in these directories, and then
deletes all copies of any log
that it backed up from the archiving destinations. If you
had specified DELETE
INPUT
rather
than DELETE
ALL
INPUT
,
then RMAN would only delete the specific archived redo log
files that it backed up (for example, it would delete the
archived redo log files in /arc_dest1
if those
were the files used as the source of the backup, but it
would leave the contents of the /arc_dest2
and
/arc_dest3
intact) ."
|
|
|
Burleson is the American Team

Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright © 1996 - 2020
All rights reserved by
Burleson
Oracle ®
is the registered trademark of Oracle Corporation.
|
|