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: Rant

Re: Rant

From: Don Granaman <granaman_at_cox.net>
Date: Mon, 22 Jul 2002 21:53:20 -0800
Message-ID: <F001.0049F006.20020722215320@fatcity.com>


What Ruth describes is "tablespace point in time recovery" or incomplete recovery. I believe the question was about performing complete recovery on a single tablespace while the rest of the database is in use. (I could be wrong in this assumption.)

If a single tablespace (other than SYSTEM!) needs complete recovery, then:

  1. SQL> alter tablespace BAD_ONE offline;
  2. restore corrupted tablespace datafile(s) from backup
  3. restore archive log(s) from backup if necessary
  4. SQL> recover tablespace BAD_ONE;
  5. SQL> alter tablespace BAD_ONE online;

While this is happening, object in other tablespaces are fully accessible, except that there may be some issues with objects in other tablespaces that reference objects in the BAD_ONE tablespace (e.g. foreign key constraints referencingtables in BAD_ONE, tables in other tablespaces with CLOBs stored out-of-line in BAD_ONE, tables with primary or unique key constraint indexes in BAD_ONE, etc.). There are a few variations on the theme for step 5 - for example, "recover datafile" perhaps if all the datafiles for the tablespace are not corrupted.

Don Granaman
[certifiable OraSaurus]

You have to restore the tablespace with the datafile you want to restore to a clone database and export the datafile's contents from the clone and import it into the database with the bad datafile.

HTH,
R
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Monday, July 22, 2002 12:13 PM

I read your rant, and I agree with you. But I do have one little itsy bitsy question...

> I also asked them how they'd put a tablespace in
> backup mode. Simple enough, right? Not one of them
> got it right. Not even close. Didn't have clue as to
> what I was talking about. Fair enough, you don't
> know. Well how about a simple recovery scenario. I
> asked every candidate how they would do an online
> recover of a datafile while the database was still in
> use. No ideas. Not even close.

How DO you do an online recovery of a datafile while the database is still in use? I've had to do recoveries before, but never this scenario.

Thanks,
Mike

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Vergara, Michael (TEM)
  INET: mvergara_at_guidant.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: Ruth Gramolini
  INET: rgramolini_at_tax.state.vt.us

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: Don Granaman
  INET: granaman_at_cox.net

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 Tue Jul 23 2002 - 00:53:20 CDT

Original text of this message

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