August 13, 2009 by oraclue
I was doing manual upgrade from version 10.2.0.3 to 11.1.0.7 .Really did not expect any big issues since I did it many times.So after doing all pre-upgrade steps ( or I taught I did all of them)
I started database in upgrade mode and fired catupgrd.sql :
SQL> startup upgrade
ORACLE instance started.
Total System Global Area 6413680640 bytes
Fixed Size 2160112 bytes
Variable Size 1946159632 bytes
Database Buffers 4429185024 bytes
Redo Buffers 36175872 bytes
Database mounted.
Database opened.
SQL> @catupgrd.sql
DOC>#######################################################################
DOC>#######################################################################
DOC>
DOC> The first time this script is run, there should be no error messages
DOC> generated; all normal upgrade error messages are suppressed.
DOC>
DOC> If this script is being re-run after correcting some problem, then
DOC> expect the following error which is not automatically suppressed:
DOC>
DOC> ORA-00001: unique constraint (<constraint_name>) violated
DOC>#
FROM registry$database
*
ERROR at line 2:
ORA-00942: table or view does not exist
Upgrade failed! Since I hit same error in the past I knew where is the problem and expected to fix it quickly.
This error is related to timezone file which must be version 4 for Oracle version 11g.If timezone is not version 4 than patch needs to be applied.
Query to check timezone file is:
SQL> select * from v$timezone_file;
FILENAME VERSION
———— ———-
timezlrg.dat 4
so I pointed database to old oracle home and started it:
-sh-3.2$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 – Production on Tue Aug 11 11:12:41 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 6442450944 bytes
Fixed Size 2082376 bytes
Variable Size 1577060792 bytes
Database Buffers 4848615424 bytes
Redo Buffers 14692352 bytes
ORA-00201: control file version 11.0.0.0.0 incompatible with ORACLE version
10.2.0.3.0
ORA-00202: control file:
‘/oracle/demo/control/copy_1/control01.ctl’ Read more of this post
Recent Comments