Oracle control file backup recovery resetlogs Method

Source: Internet
Author: User
Alterdatabasebackupcontrofiletotraceas

Alter databasebackup controfile to trace

Alter databasebackup controfile to trace as '/bk/col. SQL ';

Consistency database stop destroys log files and Control Files

Start Database

SQL> startup

Oracle instancestarted.

Total SystemGlobal Area 314572800 bytes

Fixed Size 1219136 bytes

VariableSize 113247680 bytes

DatabaseBuffers 192937984 bytes

RedoBuffers 7168000 bytes

ORA-00205: errorin identifying control file, check alert log for more info

Because no control file exists, a 205 error occurs.

We re-create the control file based on the backup control file information.

Createcontrolfile reuse database "ORCL2" RESETLOGS ARCHIVELOG

MAXLOGFILES 16

MAXLOGMEMBERS 3

MAXDATAFILES 100

MAXINSTANCES 8

# MAXLOGHISTORY 292

LOGFILE

GROUP 1'/u01/tiger/oradata/orcl2/redo01.log' SIZE 50 M,

GROUP 2'/u01/tiger/oradata/orcl2/redo02.log 'SIZE 50 M,

GROUP 3 '/u01/tiger/oradata/orcl2/redo03.log' SIZE 50 M

DATAFILE

'/U01/tiger/oradata/orcl2/system01.dbf ',

'/U01/tiger/oradata/orcl2/tiger. dbf ',

'/U01/tiger/oradata/orcl2/sysaux01.dbf ',

'/U01/tiger/oradata/orcl2/users01.dbf ',

'/U01/tiger/oradata/orcl2/undotbs02.dbf ',

'/U01/tiger/oradata/orcl2/undotbs01 ',

'/U01/tiger/oradata/orcl2/tiger01.dbf'

CHARACTER SETZHS16GBK

;

Because no redo log file exists, the resetlogs parameter is used to restart the database.

Alter databaseopen resetlogs

,

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.