Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: lost datafile and checkpoing
Gene,
I presume you are running on unix. I have encountered a similar situation several times. When the database is opened, several background processes, including CKPT, acquire locks on each datafile. Even though you moved/renamed the file, the file handle is kept by the background process. It now points to the new file, since you did not close the file. Try to query against data in the datafile and you will get an error, because the foreground process attempts to open the file, which it cannot find.
-- Daniel W. Fink http://www.optimaldba.com Gurelei wrote:Received on Thu May 08 2003 - 16:23:35 CDT
>Hi all:
>
>I have been testing backups against Oracle9 db.
>I have renamed a datafile from file.dbf to file.dbf2.
>Then I ran a checkpoint expecting it to fail, but it
>didn't. I have done that several time without getting
>any warning from checkpoint. I though that checkpoint
>should 'touch" all the datafile and notice that one
>of them is missing. am I wrong?
>
>thanks
>
>Gene
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
>http://search.yahoo.com
>
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Daniel W. Fink INET: optimaldba_at_yahoo.com 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).