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: Igor Neyman <ineyman_at_perceptron.com>
Date: Fri, 29 Mar 2002 10:43:24 -0800
Message-ID: <F001.00436D70.20020329104324@fatcity.com>


That's exactly, what I meant (besides the fact, that "alter system archive log current" will return only after Archiver is done archiving "current" log).

Igor Neyman, OCP DBA
ineyman_at_perceptron.com

>
>
> SQL> alter system archive log current;
> alter system archive log current
> *
> ERROR at line 1:
> ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
>
>
> 1* alter system archive log current to '/tmp/dummy.log'
> SQL> /
> alter system archive log current to '/tmp/dummy.log'
> *
> ERROR at line 1:
> ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
>
>
> SQL> !oerr ora 258
> 00258, 00000, "manual archiving in NOARCHIVELOG mode must identify log"
> // *Cause: The database is in NOARCHIVELOG mode and a command to manually
> // archive a log did not specify the log explicitly by sequence
> // number, group number or filename.
> // *Action: Specify log by filename, by group number or by thread and
> // sequence number.
>
>
>
> SQL> select * from v$log;
> #:-)
>
> GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
> ---------- ---------- ---------- ---------- ---------- --- ---------------
-
> FIRST_CHANGE# FIRST_TIM
> ------------- ---------
> 4 1 9006 67108864 1 NO CURRENT
> 1262712302 29-MAR-02
>
> 5 1 9004 67108864 1 YES INACTIVE
> 1262692183 29-MAR-02
>
> 6 1 9005 67108864 1 YES INACTIVE
> 1262692291 29-MAR-02
>
>
> SQL> alter system archive log group 4 to '/tmp/dummy.log';
> alter system archive log group 4 to '/tmp/dummy.log'
> *
> ERROR at line 1:
> ORA-00259: log 4 of open thread 1 is the current log, cannot archive
> ORA-00312: online log 4 thread 1: '/db02/oracle/oradata/CCC/redo04.log'
>
>
> SQL> alter system archive log group 5 to '/tmp/dummy.log';
> alter system archive log group 5 to '/tmp/dummy.log'
> *
> ERROR at line 1:
> ORA-16013: log 5 sequence# 9004 does not need archiving
> ORA-00312: online log 5 thread 1: '/db02/oracle/oradata/CCC/redo05.log'
>
>
> Igor Neyman wrote:
> >
> > Will "alter system archive log current" work, if the database is not in
> > "archive" mode?
> >
> > Igor Neyman, OCP DBA
> > ineyman_at_perceptron.com
> >
> > ----- Original Message -----
> > To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> > Sent: Friday, March 29, 2002 11:23 AM
> >
> > >
> > >
> > > 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: Igor Neyman
> > INET: ineyman_at_perceptron.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).
>
> --
> Charlie Mengler Maintenance Warehouse
> charliem_at_mwh.com 10641 Scripps Summit Ct.
> 858-831-2229 San Diego, CA 92131
> Lead, follow, or at least have the courtesy to get out of my way!
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Charlie Mengler
> INET: charliem_at_mwh.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: Igor Neyman
  INET: ineyman_at_perceptron.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).
Received on Fri Mar 29 2002 - 12:43:24 CST

Original text of this message

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