Oracle uses the old control file to back up and restore the new data file

Source: Internet
Author: User
Finally, if the system tablespace is corrupted and there is no backup, the database cannot be opened. If it is sysaux and there is no backup, the database can still be open. Of course, re-control is required.

Finally, if the system tablespace is corrupted and there is no backup, the database cannot be opened. If it is sysaux and there is no backup, the database can still be open. Of course, re-control is required.

Finally, if the system tablespace is corrupted and there is no backup, the database cannot be opened. If it is sysaux and there is no backup, the database can still be opened, of course, you must remove the corrupted data file when recreating the control file. Otherwise, the file cannot be created successfully, as shown in the following example:

SQL> CREATE CONTROLFILE REUSE DATABASE "SKYREAD" NORESETLOGS FORCE LOGGING ARCHIVELOG

2 MAXLOGFILES 20

3 MAXLOGMEMBERS 5

4 MAXDATAFILES 1000

5 MAXINSTANCES 8

6 MAXLOGHISTORY 2337

7. LOGFILE

8 GROUP 1'/database/oradata/skyread/redo01.log 'SIZE 512 M,

9 GROUP 2'/database/oradata/skyread/redo02.log 'SIZE 512 M,

10 GROUP 3'/database/oradata/skyread/redo03.log' SIZE 512 M,

11 GROUP 4'/database/oradata/skyread/redo04.log 'SIZE 512 M,

12 GROUP 5'/database/oradata/skyread/redo05.log 'SIZE 512 M

13. DATAFILE

14'/database/oradata/skyread/system01.dbf ',

15'/database/oradata/skyread/tbs_test.dbf ',

16'/database/oradata/skyread/sysaux01.dbf ',

17 '/database/oradata/skyread/users01.dbf ',

18 '/database/oradata/skyread/tbs_tbs.dbf ',

19 '/database2/oradata/skyread/tbs_mrpmusic01.dbf ',

20'/database/oradata/skyread/sf01.dbf ',

21 '/database2/oradata/skyread/undotbs02'

22 character set UTF8;

Create controlfile reuse database "SKYREAD" NORESETLOGS FORCE LOGGING ARCHIVELOG

*

ERROR at line 1:

ORA-01503: create controlfile failed

ORA-01565: error in identifying file '/database/oradata/skyread/sysaux01.dbf'

ORA-27037: unable to obtain file status

Linux-x86_64 Error: 2: No such file or directory

Additional information: 3

SQL> CREATE CONTROLFILE REUSE DATABASE "SKYREAD" NORESETLOGS FORCE LOGGING ARCHIVELOG

2 MAXLOGFILES 20

3 MAXLOGMEMBERS 5

4 MAXDATAFILES 1000

5 MAXINSTANCES 8

6 MAXLOGHISTORY 2337

7. LOGFILE

8 GROUP 1'/database/oradata/skyread/redo01.log 'SIZE 512 M,

9 GROUP 2'/database/oradata/skyread/redo02.log 'SIZE 512 M,

10 GROUP 3'/database/oradata/skyread/redo03.log' SIZE 512 M,

11 GROUP 4'/database/oradata/skyread/redo04.log 'SIZE 512 M,

12 GROUP 5'/database/oradata/skyread/redo05.log 'SIZE 512 M

13. DATAFILE

14'/database/oradata/skyread/system01.dbf ',

15'/database/oradata/skyread/tbs_test.dbf ',

16'/database/oradata/skyread/users01.dbf ',

17 '/database/oradata/skyread/tbs_tbs.dbf ',

18 '/database2/oradata/skyread/tbs_mrpmusic01.dbf ',

19 '/database/oradata/skyread/sf01.dbf ',

20'/database2/oradata/skyread/undotbs02'

21 character set UTF8;

Control file created.

SQL> alter database open;

Database altered.

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.