Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 16507 invoked from network); 28 Jun 2007 17:45:16 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 28 Jun 2007 17:45:16 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A742570A9E3;
 Thu, 28 Jun 2007 18:43:13 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 19538-06; Thu, 28 Jun 2007 18:43:13 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 16B4F70A86C;
 Thu, 28 Jun 2007 18:43:13 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 28 Jun 2007 18:02:35 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E26DD70A01D
 for <oracle-l@freelists.org>; Thu, 28 Jun 2007 18:02:34 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 14232-02 for <oracle-l@freelists.org>;
 Thu, 28 Jun 2007 18:02:34 -0400 (EDT)
Received: from snorelbas01.asiapac.hp.net (snorelbas01.asiapac.hp.net [15.219.233.134])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2A263709456
 for <oracle-l@freelists.org>; Thu, 28 Jun 2007 18:02:33 -0400 (EDT)
Received: from snoexg11.asiapacific.cpqcorp.net (snoexg11.asiapacific.cpqcorp.net [16.176.6.30])
 by snorelbas01.asiapac.hp.net (Postfix) with ESMTP id 01D4532E3F;
 Fri, 29 Jun 2007 08:04:36 +1000 (EST)
Received: from snoexc04.asiapacific.cpqcorp.net ([16.176.6.85]) by snoexg11.asiapacific.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Fri, 29 Jun 2007 08:04:35 +1000
Received: from snoplahapla02.asiapacific.hpqcorp.net ([16.144.81.89]) by snoexc04.asiapacific.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Fri, 29 Jun 2007 08:04:35 +1000
From: Kanwar Plaha <kanwar.plaha@hp.com>
Organization: Hewlett-Packard Company
To: "Jordan Casey" <Casey.Jordan@brickstreet.com>
Subject: Re: Missing datafiles
Date: Fri, 29 Jun 2007 08:04:35 +1000
User-Agent: KMail/1.9.7
References: <34A1525E7603124D8AA357C6AEAD73CB0A542132@BMI-MAIL.brickstreet.local>
In-Reply-To: <34A1525E7603124D8AA357C6AEAD73CB0A542132@BMI-MAIL.brickstreet.local>
Cc: oracle-l@freelists.org
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Message-Id: <200706290804.35946.kanwar.plaha@hp.com>
X-OriginalArrivalTime: 28 Jun 2007 22:04:35.0589 (UTC) FILETIME=[505BFB50:01C7B9D0]
X-archive-position: 50309
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: kanwar.plaha@hp.com
Precedence: normal
Reply-to: kanwar.plaha@hp.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain

Hi Jordan,
Thanks for your reply. You are right. However, I do have the original datafiles on
disk. Its just that the first time they were not included in the controlfle.
I cannot do it right now but will this work:

Suppose I recreate the controlfile, this time with the missing files
Then, when it asks for an archivelog to apply for recovery (since there are new
files now), I can use the existing redo log to recover. I have done this in the past
in a slightly different situation where I had to recreate the controlfile when some
files were missed out. It works.

Maybe I will give it a go. In the meanwhile, if you have another hunch, do let me know.

Thanks,
Kanwar

On Fri, 29 Jun 2007 07:58:32 am you wrote:
> In my opinion you can not recover from this.  I have done this several
> times in the past(even today) and have not seen any way to restore the
> files.   The problem is that when you recreate the control file you must
> do a "alter database open resetlogs".   Once this is done any previous
> backups are invalid.
> 
> I could be wrong but I really don't think this can be fixed without
> restore the entire database again. You could drop the Tablespace used by
> the missing data files and recreate it.  Then do a export/import of the
> data from production.
> 
> 
> 
> 
> 
> -----Original Message-----
> From: oracle-l-bounce@freelists.org
> [mailto:oracle-l-bounce@freelists.org] On Behalf Of Kanwar Plaha
> Sent: Thursday, June 28, 2007 5:36 PM
> To: oracle-l@freelists.org
> Subject: Missing datafiles
> 
> Hi,
> A database was copied from another one and the controlfile to create it
> missed out couple of datafiles.
> The database now has missing datafiles listed in it. 
> Also, the fact that some datafiles are missing was not known until a few
> days when some changes to the
> database have taken place.
> My question is if its possible to 'restore' the database now? I can see
> the missing datafiles on disk although
> with an older timestamp than the ones that are online. 
> The database is in NOARCHIVELOG mode. However I checked v$log and found
> that since database build, no
> log switch has happened yet. Does this means shutting the database down
> and recreating the controlfile
> with the missing datafiles can bring the database to a consistent state?
> Can it use the current redo log for
> recovery, if required?
> 
> This is rather urgent, although not critical since its not a production
> environment.
> 
> Thank you,
> Kanwar
> --
> http://www.freelists.org/webpage/oracle-l
> 
> 
> "Notice of Confidentiality" The information contained in this e-mail
> message is intended for the use of the individual or entity named above.
>  If the reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution, or copy of the
> communication is strictly prohibited.
> 
> "Notice of Confidentiality" The information contained in this e-mail
> message is intended for the use of the individual or entity named above.
>  If the reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution, or copy of the
> communication is strictly prohibited.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
> 

--
http://www.freelists.org/webpage/oracle-l


