Solved

Oracle Upgrade issue

Posted on 2009-05-08
12
810 Views
Last Modified: 2013-12-18
I had upgraded oracle databases from 10.2.0.3 to 10.2.0.4.  Everything completed correctly.  Prior to the upgrade the compatibilty parameter was set to 10.2.0.2.  I needed to put back some 'custom' parameters and at the same time changed the compatibily parameter to 10.2.0.
When bringing up the database i received the following error:
ORA-00201: control file version 10.2.0.2.0 incompatible with ORACLE version
10.2.0.0.0    ORA-00202: control file:

I put back the compatibility to 10.2.0.2 and it came up fine.  Any idea as to why this error occurred?
0
Comment
Question by:sqlnewbie08
  • 4
  • 3
  • 3
  • +1
12 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24336501
You cannot change it backwards, on the fly like that. You must set it prior to creating a database.

The compatibility param controls what Oracle can not only support in the instance, but also what it writes to disk, and it is the disk that is important in this case, it tracks it in the control file as well. Once the database is created, you cannot go backwards because Oracle might have written structures to disk that are incompatibile.

You can move it forward, but not backwards, without an export and import.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 24336507
10.2.0.
is not a legal Oracle version
0
 

Author Comment

by:sqlnewbie08
ID: 24336696
The compatible parameter in our production databases is set to: '10.2.0', which based on documentation is valid.

I was upgrading an existing database from 10.2.0.3 to 10.2.0.4.  The database prior to the upgrade had compatible set to 10.2.0.2.  Afterwards, in order to gain the functionality of the new version, changed it to 10.2.0     That's when the error occurred.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 35

Expert Comment

by:johnsone
ID: 24336877
10.2.0 is less than 10.2.0.2.  As stated already, you cannot go backward.  To get all the functionality possible, compatible should be set to the database version, 10.2.0.4.
0
 

Author Comment

by:sqlnewbie08
ID: 24336907
Ok.. then why in our production envirnment is 10.2.0 working when the version is 10.2.0.3... just a little confused.  thanks!
0
 
LVL 35

Expert Comment

by:johnsone
ID: 24336923
Did you change your it from 10.2.0.2 to 10.2.0 in production?
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24337038
>>then why in our production envirnment is 10.2.0 working when the version is 10.2.0.3..

Likely because it was 10.2.0 when you created your database, or either it was previously an even earlier version (8i or 9i perhaps) that was also upgraded and set to 10.2.0

Just because it runs with 10.2.0 in production is irrelevant, what is relevant is that you _changed_ a later version to 10.2.0.

The use of the compatible parameter is clear, it directs Oracle to or not to make use of certain features as well as _disk structures_ based on compatibility, so by definition moving _backwards_ is a problem, just like trying to open a 10.2.0.4 database with a 10.1.0 binary is also a problem.
0
 

Author Comment

by:sqlnewbie08
ID: 24338229
Regarding production... yes it was an earlier version 9i, that was upgraded to 10g.  I apparently misunderstood the setting.  I was understood it that 10.2.0 would apply to all versions and not that it would be 'downgraded' version.  So, bottom-line, change it to 10.2.0.4 to match the version that is running to get use of any new features...
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24338308
I typically never set it except at database creation, or major version upgrade. Not during patches, so I recommend you leave it as it was.
0
 
LVL 35

Accepted Solution

by:
johnsone earned 500 total points
ID: 24338431
Personally, I set it to whatever version of the database is running.  In your case, I would set it to 10.2.0.4.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 24339206
Mr. johnsone is absolutly correct.
This parameter is set only when you expect version conflicts
with some components and would like the installation to
function like the version you mention.
But I do not have evidence you need something like this.
There are more then 300 init parameters, but we change only a couple of them
and do major changes when we need to change the behavior of the DB.
0
 

Author Closing Comment

by:sqlnewbie08
ID: 31579445
thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle Insert not working 10 48
SQL query for highest sequence 4 64
looking for guidance on Oracle Sql Formatting standards 9 30
how to tune the query 17 59
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

726 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