Ask the Expert

Need help recovering db with no recent backup

My datafile was corrupted last week and I am trying to recover the db. Also, the last backup was a few years back. What can I do?

    Requires Free Membership to View

A backup a few years old is probably indicative of the need to revisit your backup and recovery strategy.

How was the backup taken? If the backup was a cold backup, then you can shutdown the database, restore all of the datafiles from the cold backup, and start it up. If you want to roll forward to a more current point in time, you will need all of the archived redo logs generated since that backup was taken. If you do not want to roll forward, or you cannot roll forward, then also replace the online redo logs and the control files from the backup before you attempt to start the database. In this case, the changes since the backup will be lost.

If the backup was a hot backup, then you'll need the archived redo logs that go with it. This way, you can resolve any inconsistencies in the datafiles while that backup was being performed. Replace the database datafiles, and restore the archived redo logs. Then STARTUP MOUNT the database and issue RECOVER DATABASE UNTIL CANCEL. Once you have applied the last archived redo log that you have, issue ALTER DATABASE OPEN RESETLOGS.

This was first published in July 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: