Dear DBAs,

I found this RMAN command on Oracle8i Backup Recovery documentation. This is
used to backup all data files and controlfiles.

run {
allocate channel ch1 type disk;
backup database;
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT'; # archives current redo log
sql 'ALTER SYSTEM ARCHIVE LOG ALL'; # archives all un-archived redo logs
}

My question is, why they put sql commands to archives current redo log and
unarchived redo logs, after the "backup database" command? Why not before
the "backup database" command? Will RMAN execute it as a transaction for all
commands in curly bracket?

TIA

Yustiono

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Yustiono
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to