Oracle Upgrade Catupgrd.sql failed: with SELECT TO_NUMBER('MUST_BE_11_2_0_3') FROM v$instance

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World

Error Description
During the oracle upgrade from Oracle 11.2.0.1 to 11.2.03(windows), the catupgrd.sql failed with following error.
SELECT TO_NUMBER('MUST_BE_11_2_0_3') FROM v$instance
                 *
ERROR at line 1:

ORA-01722: invalid number

Solution description:
Disclaimer: This would be the one of the reason which I faced during the upgrade.
As part of the upgrade you have to drop the Oracle database service (Eg: OracleServiceORCL) for the older/ source version of the database using the following commands.
NET STOP OracleServiceORCL – Stopping the service
ORADIM -DELETE -SID ORCL   - Dropping the service.

ORACLE_HOME=D:\app\product\11.2.0\dbhome_1

D:\>NET STOP OracleServiceORCL
The OracleServiceORCL service is stopping.................
The OracleServiceORCL service was stopped successfully.


D:\>
D:\>NET STOP OracleServiceORCL
The OracleServiceORCL service is stopping........
The OracleServiceORCL service was stopped successfully.


D:\>ORADIM -DELETE -SID ORCL
Instance deleted.

Make sure you have properly deleted the source version service.
Open up the services.msc from the cmd run prompt and verify it is deleted properly.

Before executing the catupgrd.sql you should start the new service for the target version database using the new ORACLE_HOME(11.2.0.3) ORADIM executables.
ORADIM -NEW -SID SID -SYSPWD PASSWORD -STARTMODE AUTO -PFILE %ORACLE_HOME%\DATABASE\INIT<SID>.ORA



Again you can verify the service properties by opening the services.msc. Please see the screen shot below.

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer