Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Datafile needs media recovery
Hi
Since ur database in in archive log mode you can go
for following method also
just move your datafile to some other place. This is
just for backup. Now create a new datafile based on
existing datafile using following command
alter database create datafile'old_datafile_name+path'
as 'new_datafile_name+path'
where old_datafile_name+path will be the path and name
of ur orginal datafile which u have renamed and
new_datafile_name+path will be the name and path u
desire
Then perform media recovery for that new datafile
using
recover datafile 'new_datafile_name+path'
This method is basically used to recreate and recover
damaged datafile
However for this u must have all archive log files
since orginal datafile was created
Hope so this may help u
Brijesh
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Brijesh Lal INET: lal_brijesh_at_yahoo.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 Sat Apr 21 2001 - 09:01:53 CDT
![]() |
![]() |