Oracle 10 Gb control file (1) -- restoration of partial control file loss

Source: Internet
Author: User


In oracle, the content of each control file is the same. A control file records the physical structure of the entire database. It contains the following information: 1. database Name 2. file Name and path of the data file and redo log file 3. for the sake of security, oracle usually sets 3-5 control files, which are specified in pfile or spfile, you can also specify some new control files in pfile or spfile. If some of the control files are lost, that is, if one or more of them are missing, the database cannot be enabled. Therefore, we can use the copy control file method to solve this problem. This process will be simulated below. When the database is opened, you can view the usage of the current control file in the v $ controlfile view: SQL> select name from v $ controlfile;

According to the above query results, we have used a total of three control files. Next we will delete part of the control03.ctl simulated control file in the/u01/app/oracle/oradata/orcl directory. Www.2cto.com $ rm control03.ctl

When the database is shut down and the database is restarted, a control file verification error is returned.

At this time, we can restore the control file by copying the control file, run the following command in the directory/u01/app/oracle/oradata/orcl where the control file is stored to copy a control file named control03.ctl. $ Cp control01.ctl control03.ctl

Therefore, the control file is restored. At this time, we try to open the database again. At this time, the database will certainly be able to be enabled successfully. As shown in:

Through the above steps, we can solve the problem that the database cannot be enabled due to the loss of some Database Control files. Author SkyWorld

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.