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: Starting up Oracle with "missing" datafiles

RE: Starting up Oracle with "missing" datafiles

From: Ferris, Shawn <Shawn.Ferris_at_twtelecom.com>
Date: Mon, 15 Jan 2001 12:56:43 -0700
Message-Id: <10742.126712@fatcity.com>


This is completely untested. I'm fairly confident this is the correct way. I may have left something out however. At the least this should get you looking in the right direction.

For each file in the tablespace(s):

alter database datafile '/path/to/filename' offline drop;

Then:
alter database open;

drop tablespace tbsp_name including contents cascade constraints;

(I would probably rebuild the controlfiles after this. This begs the question.. Why not just create a new database?)

HTH
Shawn M Ferris
Oracle DBA - Time Warner Telecom

> -----Original Message-----
> From: Charlie Mengler [mailto:charliem_at_mwh.com]
> Sent: Monday, January 15, 2001 11:56 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Starting up Oracle with "missing" datafiles
>
>
> After a clean DB shutdown, I want to grap a copy of
> just the single file holding the SYSTEM tablespace
> and the controlfiles associated with an instance;
> let's call it "PROD".
>
> I move these files onto another system and now I
> want to start this instance WITHOUT any of the
> associated "data files" containing all the data.
>
> After I
> svrmgrl
> connect internal
> startup mount
>
> What do I do for each of the tablespace I wish to eliminate
> from this instance
> before issuing the following command
>
> alter database open
>
> TIA!
>
> --
> Charlie Mengler Maintenance Warehouse
> charliem_at_mwh.com 10641 Scripps Summit Ct
> 858-831-2229 San Diego, CA 92131
> HOME DEPOT - The Big Boy's Toy store!!!!!!!!!!!!!!!!!
> --
> 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).
Received on Mon Jan 15 2001 - 13:56:43 CST

Original text of this message

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