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: Delete Datafile and Recover DB Without Using Backup?

Re: Delete Datafile and Recover DB Without Using Backup?

From: mkb <mkb125_at_yahoo.com>
Date: Thu, 24 Feb 2005 18:56:27 -0800 (PST)
Message-ID: <20050225025627.58275.qmail@web41306.mail.yahoo.com>

> What a great question.
>
> Here's an untested idea:
>
> 1) Find a running session (SQL*Plus?) that has the
> deleted datafile open (Unix lsof <file>), or if you
> are running Shared Server (MTS) just log in and hope
> to get a server process that has the file open.
>
> 2) In that session, run:
> declare
> a varchar2;
> b number;
> c number;
> begin
> sys.dbms_backup_restore.copydatafile (
> DFNUMBER=>file#,
> FNAME=>'datafile copy name',
> FULL_NAME=>a,
> RECID=>b,
> STAMP=>c
> );
> end;
>

Interesting. Hopefuly when I get my hands on a unix box, I can try this out.

You've also got me wondering if RMAN is doing something simliar as referenced in article 246325.1, at least conceptually.

In any case it seems, in theory at least, there should be ways to recover a file if accidently deleted from a unix filesystem without resorting to any sort of backup.

Now all we need to do is test it out. Can anyone out there try these out on one of your production systems please ;).

--
mohammed


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 24 2005 - 21:59:30 CST

Original text of this message

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