Ask the Expert

Circumstances for error after removing data file and shutting down

When the database is open and I remove the data file from the operating system and then shutdown the database, it gives an error, which is correct. But when I add a data file to the database and then remove this file and then shutdown the database, it does not give the error. Can you please let me know why this is happenning?

    Requires Free Membership to View

The reason that adding the data file, removing it, and shutting down the database does not give an error is because the database does not need to update this data file header on database close. Therefore, it does not see it as missing. When you start the database, it will notice that the data file is missing and report an error back to you.

This was first published in November 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: