?
Solved

Control file 'file1' version 'xxx' is inconsistent with file 'file2' version 'xxy' error

Posted on 2013-02-04
4
Medium Priority
?
659 Views
Last Modified: 2013-02-04
I had 3 control files in my database in the same location:

/u01/oradata/DBName/control01.ctl, /u01/oradata/DBName/control02.ctl, and /u01/oradata/DBName/control03.ctl and since it is not a good practice, I have decided to move two of my control files to different locations.

So I modified PFILE CONTROL_FILES parameter to

CONTROL_FILES=('/u01/oradata/DBName/control01.ctl', '/u02/oradata/DBName/control02.ctl', '/u03/oradata/DBName/control03.ctl')

Then I copied the files:

cp /u01/oradata/DBName/control02.ctl /u02/oradata/DBName/control02.ctl

cp /u01/oradata/DBName/control03.ctl /u03/oradata/DBName/control03.ctl

Then I shutdown and started up my database and got an error:

ORA-00214: control file 'u01/oradata/DBName/control01.ctl' version 12659
inconsistent with file '/u02/oradata/DBName/control02.ctl' version 12655

I tried correcting it by modifying my PFILE to reflect only control01.ctl then deleted cotrol02.ctl and control03.ctl and re-created them from a copy of control01.ctl file:

cp /u01/oradata/DBName/control01.ctl /u02/oradata/DBName/control02.ctl

cp /u01/oradata/DBName/control01.ctl /u03/oradata/DBName/control03.ctl

and attempted to startup database again but gotten same error.

Can someone tell me why this is happening and how can I fix it?

P.S. Database is in NOARCHIVELOG mode and there is no autobackup of the control file
0
Comment
Question by:YZlat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38852358
>>Then I shutdown and started up my database and got an error:

Shut down first.

Shut down again, then copy the control files to their new location.
0
 
LVL 35

Author Comment

by:YZlat
ID: 38852450
It seems to work now but I'd appreciate if you explained why it happened on the first place
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 38852475
You copied a live control file.

When you shut down, the system performed a checkpoint.  Among other things, this updates the SCN in the header of every file.  This made the controlf files you copied live, 'old'.

When you started up, among other things, oracle checks for file integrity.  Part of this makes sure the SCN's of all files match.

If they don't, you have problems.
0
 
LVL 35

Author Closing Comment

by:YZlat
ID: 38852508
thank you!
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question