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
> [EMAIL PROTECTED]
> 
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
> 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: [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).
> 
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Igor Neyman
>   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).

-- 
Charlie Mengler                          Maintenance Warehouse  
[EMAIL PROTECTED]                         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: [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