From oracle-l-bounce@freelists.org  Tue Oct 12 08:41:53 2004
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air189.startdedicated.com (root@localhost)
 by orafaq.com (8.11.6/8.11.6) with ESMTP id i9CDfrI20977
 for <oracle-l@orafaq.com>; Tue, 12 Oct 2004 08:41:53 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i9CDfqI20969
 for <oracle-l@orafaq.com>; Tue, 12 Oct 2004 08:41:52 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id 0E5AB72CB52; Tue, 12 Oct 2004 08:47:59 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 26608-84; Tue, 12 Oct 2004 08:47:58 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id 60F9972CB40; Tue, 12 Oct 2004 08:47:58 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Subject: RE: RMAN: backup archivelog until time 'sysdate-2' delete input
Date: Tue, 12 Oct 2004 09:41:11 -0400
Message-ID: <7B51890723365F4591B1B2319985D0121831C5@EXCHSERV2.Limited.brands.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: RMAN: backup archivelog until time 'sysdate-2' delete input
Thread-Index: AcSwWr5LoAQ9TvfwRoi9hLfuklAO+AAA97dg
From: "Spears, Brian" <BSpears@Limitedbrands.com>
To: <DWILLIAMS@LIFETOUCH.COM>, <roger_xu@dp7uptx.com>,
   "Oracle-L@Freelists. Org (E-mail)" <oracle-l@freelists.org>
X-OriginalArrivalTime: 12 Oct 2004 13:41:16.0440 (UTC) FILETIME=[25B8C980:01C4B061]
X-archive-position: 10958
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: BSpears@Limitedbrands.com
Precedence: normal
Reply-To: BSpears@Limitedbrands.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new at freelists.org

I did backup archivelogs to disk Roger.  I did find that the same
confusion you have found.=20

I used  select to_char(sysdate-2,'DD-MON-YY:HH.MM.SS') from dual; when
it was run to make sure it was the time range I expected.

Note: before you do that command ...make sure you do this one..

sql 'alter system archive log current';

Brian

-----Original Message-----
From: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org] On Behalf Of DENNIS WILLIAMS
Sent: Tuesday, October 12, 2004 8:52 AM
To: roger_xu@dp7uptx.com; Oracle-L@Freelists. Org (E-mail)
Subject: RE: RMAN: backup archivelog until time 'sysdate-2' delete input


Roger - I don't see where you mentioned your Oracle version. RMAN has
been notorious for being picky about the date format. I've generally
heard of this in terms of recovery times and with Oracle 8i. Since I
back up RMAN to disk, I don't use RMAN to backup the archive logs, so I
haven't encountered this specific problem. Looking at Freeman's great
Oracle9i Backup and Recovery, he uses the syntax:
	'backup archivelog from time 'sysdate - 1';

Dennis Williams
DBA
Lifetouch, Inc.

-----Original Message-----
From: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org]
On Behalf Of Roger Xu
Sent: Monday, October 11, 2004 4:55 PM
To: Oracle-L@Freelists. Org (E-mail)
Subject: RMAN: backup archivelog until time 'sysdate-2' delete input

Hi list,
=20
It was "Mon Oct 11 16:12:07 CDT 2004" and I ran the following
=20
RMAN> run {
2>      backup
3>       format '/oback/obckp/redo-logs/DV2_%s_%p.logs'
4>       archivelog until time 'sysdate-2' delete input;
5>     }
=20
Since I specified "sysdate-2", I expected it only archive/delete up to
"Oct 09 16:12:06". Was I right? But the truth is it archived/deleted
redo file "1_1440.dbf", which was created=20
between "Mon Oct 11 00:12:40 2004" and "Mon Oct 11 00:42:39 2004". WHY?
=20
My last three redo files was:
.. .. ..
Sat Oct  9 06:23:22 2004
.. .. ..
Creating archive destination LOG_ARCHIVE_DEST_1:
'/oracle/DV2/saparch/DV2arch/1_1439.dbf'
Sat Oct  9 06:23:34 2004
.. .. ..
Mon Oct 11 00:12:40 2004
.. .. ..
Creating archive destination LOG_ARCHIVE_DEST_1:
'/oracle/DV2/saparch/DV2arch/1_1440.dbf'
.. .. ..
Mon Oct 11 00:42:39 2004
.. .. ..
Mon Oct 11 15:39:37 2004
.. .. ..
Creating archive destination LOG_ARCHIVE_DEST_1:
'/oracle/DV2/saparch/DV2arch/1_1441.dbf'
Roger Xu=20
Database Administrator=20
Dr Pepper Bottling Company of Texas=20
(972)721-8337=20
=20

This e-mail is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information.
Any review, dissemination, copying, printing or other use of this e-mail
by persons or entities other than the addressee is prohibited. If you
have received this e-mail in error, please contact the sender
immediately and delete the material.=20
____________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. Any questions please call 972-721-8257 or email your
request to tech_support@dp7uptx.com.
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l

