ORA-01207: file is more recent than controlfile – old controlfile

I got ” ORA-01207: file is more recent than controlfile – old controlfile ”  error in Oracle database.

 

ORA-01207: file is more recent than controlfile – old controlfile

 

Details of error are as follows.

ORA-01207 file is more recent than controlfile - old controlfile

Cause: The control file change sequence number in the datafile is greater than the number
 in the control file. This implies that the wrong control file is being used. Note that 
repeatedly causing this error can make it stop happening without correcting the real problem. 
Every attempt to open the database will advance the control file change sequence number until 
it is great enough.

Action: Use the current control file or do BACKUP CONTROLFILE RECOVERY to make the control 
file current. Be sure to follow all restrictions on doing a BACKUP CONTROLFILE RECOVERY.
   

 

 

file is more recent than controlfile – old controlfile

This ORA-01207 error is related to the control file change sequence number in the datafile is greater than the number in the control file. This implies that the wrong control file is being used.

Note that repeatedly causing this error can make it stop happening without correcting the real problem. Every attempt to open the database will advance the control file change sequence number until it is great enough.

 

Use the current control file or do BACKUP CONTROLFILE RECOVERY to make the control file current. Be sure to follow all restrictions on doing a BACKUP CONTROLFILE RECOVERY.

1) dump controlfile to trace

SQL> alter database backup controlfile to trace as '/home/oracle/controlfile.sql';

 

 

2) startup database nomount

SQL> startup nomount

 

3) create the control file

SQL> @/home/oracle/controlfile.sql
Control file created.

SQL> recover database using backup controlfile;

SQL> recover database using backup controlfile ;
ORA-00279: change 1904510 generated at 12/11/2020 11:12:13 needed for thread 1
ORA-00289: suggestion : +DATA
ORA-00280: change 1904510 for thread 1 is in sequence #1453

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
+DATA/MSDB/onlinelog/group_1.224.492141654
ORA-00310: archived log contains sequence 24; sequence 1453 required
ORA-00334: archived log: '+DATA/MSDB/onlinelog/group_1.224.492141654'

 

 

If you got this error for standby, recreate the standby control file to fix this error.

 

Follow these Steps if you have to recreate the Physical Standby Controlfile:

 

Note:  If your datafiles are on ASM and/or using Oracle managed files, see Note 734862.1 Step By Step Guide On How To Recreate Standby Control File When Datafiles Are On ASM And Using Oracle Managed Files.

1. Stop Managed Recovery Process on the Standby Database (if still running):

SQL> alter database recover managed standby database cancel;

 

2. Shutdown the Standby Database:

SQL> shutdown immediate;

 

3. Connect to the Primary Database as SYS:

SQL> connect sys/<Password>@<Primary> as sysdba

 

4. Create a new Physical Standby Controlfile from the Primary:

SQL> alter database create standby controlfile as '<File-Specification>';

5. Copy the new created Standby Controlfile to the Standby Database using OS-Tools (eg. cp or ftp) and replace the current Standby Controlfile with the new created one.

6. Mount the Standby Database with the new Standby Controlfile:

Oracle 8i and 9i (8.x – 9.x):

SQL> startup nomount
SQL> alter database mount standby database;

Oracle 10g and 11g (10.x – 11.x):

SQL> startup mount

 

7. If the File-Structure is different between Primary and Standby Database,  you could either rename the File-Location(s) in the new Standby Controlfile:

SQL> alter database rename file '<old Filespecification or file#>' to '<new Filespecification>';

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *