Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: archive log curr v. switch logfile

RE: archive log curr v. switch logfile

From: Gene Sais <Gsais_at_co.palm-beach.fl.us>
Date: Tue, 02 Apr 2002 07:28:23 -0800
Message-ID: <F001.00438C61.20020402072823@fatcity.com>


I use Alter system archive log current. If your archiver process is caught up, you will get this error message when issuing Alter system archive log all:

SQL> alter system archive log all;
alter system archive log all
*
ERROR at line 1:
ORA-00271: there are no logs that need archiving

Just don't like error messages in the logs :). Lisa's method seems the safest, but never had an archiver not keeping up and if I did, that would be an issue to be resolved quickly.

Here's my hot backup model with help from list members and Velpuri/Adkoli's Backup/Recovery Book:

#       1) Alter system archive log current ;
#       2) Check backup status.
#       3) Generate datafile listing.
#       4) Alter tablespace <tablespace_name> begin backup ;
#       5) Some other process,script,legato,etc. will copy database files
#          to disk or to tape.
#       6) Alter tablespace <tablespace_name> end backup ;
#       7) Backup controlfile.
#       8) Alter system archive log current ;
#

Archives are backed up separately 2 x day to tape.

Gene

PS. Confident w/ hot backups, next to conquer RMAN cautiously.

>>> lisa.koivu_at_efairfield.com 03/29/02 12:13PM >>> Actually I use alter system archive log all. I saw that if the database was behind with archiving, this would ensure that all logs were written to the arc destination. archive log current only did the most recent.

Am I wrong? Please correct me if I am .

Lisa Koivu
Oracle Database Baby Oven
Fairfield Resorts, Inc.
954-935-4117

> -----Original Message-----
> From: Post, Ethan [SMTP:Ethan.Post_at_ps.net]
> Sent: Friday, March 29, 2002 11:48 AM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: archive log curr v. switch logfile
>
> I believe alter system archive log current will wait until archiver has
> successfully archived the file, thus this is the one you would want to use
> in any backup scripts.
>
> - Ethan
>
> -----Original Message-----
> Sent: Friday, March 29, 2002 10:24 AM
> To: Multiple recipients of list ORACLE-L
>
>
>
>
> Can anyone tell me the difference between
> alter system archive log current
> and
> alter system switch logfile
>
> (Seems they both perform checkpoint and both switch a log file).
> Is one preferred over the other for purposes of switching log files prior
> to
> applying to a standby database?
>
> Thanks for any insights.
>
> Barb
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Baker, Barbara
> INET: bbaker_at_denvernewspaperagency.com
>
> 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: ListGuru_at_fatcity.com (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).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Post, Ethan
> INET: Ethan.Post_at_ps.net
>
> 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: ListGuru_at_fatcity.com (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Koivu, Lisa
  INET: lisa.koivu_at_efairfield.com 

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: ListGuru_at_fatcity.com (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gene Sais
  INET: Gsais_at_co.palm-beach.fl.us

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: ListGuru_at_fatcity.com (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).
Received on Tue Apr 02 2002 - 09:28:23 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US