Q
Problem solve Get help with specific problems with your technologies, process and projects.

The USING BACKUP CONTROLFILE clause in Oracle commands

An Oracle user asks how a command with the USING BACKUP CONTROLFILE clause works.

Can you explain how the following query works?

"alter database recover automatic using backup control file until cancel;"

This really isn't a query but rather a command. Basically, the command above will recover from a situation where you lost your control files and have to use a backup control file, which is out of sync with the database. The USING BACKUP CONTROLFILE clause instructs Oracle that recovery of the database will be performed with incomplete information. If you had a current control file, it would know the last transaction number (SCN) and stop recovery once that transaction has been reached. Since you do not know the last SCN, Oracle does not know when to stop. So it is up to the DBA to tell Oracle when to cancel the application of recovery, hence the UNTIL CANCEL clause.
This was last published in May 2008

Dig Deeper on Oracle database administration

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close