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: rman fun :), nightmare and long

Re: rman fun :), nightmare and long

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Fri, 04 Oct 2002 00:53:21 -0800
Message-ID: <F001.004E06B8.20021004005321@fatcity.com>


What follows might be all hogwash, you could have tried this:

DECLARE
  devtype varchar2(256);
  done boolean;
BEGIN
  devtype := dbms_backup_restore.deviceallocate('', params=>'');
  dbms_backup_restore.restoresetdatafile;  

dbms_backup_restore.restorecontrolfileto('/tmp/foo.bar');  

dbms_backup_restore.restorebackuppiece('wherever_my_backups_are',done=>done); END;
/

which drags a copy of the control file that was included in the backup into /tmp/foo.bar. (Obviously this has to be run against a different ie "up" database).

Then startup nomount the db to be recovered, rman the 'replicate controlfile' and then restore/recover in the normal way. I think this functionality came in when they allowed a no-catalog mechanism, so if you lost everything, you could still make use of a backup.

hth
connor


Connor McDonald
http://www.oracledba.co.uk
http://www.oaktable.net

"Remember amateurs built the ark - Professionals built the Titanic"



Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc_at_yahoo.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Fri Oct 04 2002 - 03:53:21 CDT

Original text of this message

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