Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to make offline datafile onlne again?

Re: How to make offline datafile onlne again?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Mon, 05 May 2003 09:24:40 +0800
Message-ID: <3EB5BD58.40FB@yahoo.com>


Peter wrote:
>
> I took a datafile offline but when I tried to take it online again, I
> got the following error. Why is that? I have the archivelog mode
> turned on already.
>
> SQL> alter database datafile 'c:\oracle\oradata\db\usr.dbf' online;
> alter database datafile 'c:\oracle\oradata\db\usr.dbf' online
> *
> ERROR at line 1:
> ORA-01113: file 8 needs media recovery
> ORA-01110: data file 8: 'c:\oracle\oradata\db\usr.dbf'

Because whilst it was offline it 'fell behind' the rest of the database. To bring it in sync it needs to be recovered (since obviously no changes were done to it the recovery will be pretty quick)

hth
connor

-- 
=========================
Connor McDonald
http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue"
Received on Sun May 04 2003 - 20:24:40 CDT

Original text of this message

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