ORA-01722: invalid number" During Upgrade/Downgrade

"ORA-01722: invalid number" During Upgrade/Downgrade [ID 435536.1] 

 Modified 01-JUN-2010     Type PROBLEM     Status MODERATED 

In this Document
  Symptoms
  Cause
  Solution
  References


Platforms: 1-914CU;

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

 

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.7 to 11.2.0.1 - Release: 9.2 to 11.2
Information in this document applies to any platform.

Symptoms

You are getting following error while performing upgrade/downgrade of the database. 
This error appears when executing script in the following release only

catbkout.sql( Available on  9.2.0.7 and Above )
catbkout.sql(Available on 10.1.0.5 and Above )
catbkout.sql( 10.2.0.2 and Above )
catupgrd.sql (For 10g R2 Above)

SQL> @?/rdbms/admin/catupgrd.sql 


DOC>#######################################################################
DOC>#######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the database has not been opened for UPGRADE.
DOC>
DOC> Perform a "SHUTDOWN ABORT" and
DOC> restart using UPGRADE.
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SELECT TO_NUMBER('MUST_BE_OPEN_UPGRADE') FROM v$instance
*
ERROR at line 1:
ORA-01722: invalid number

Cause

Instance has not started with UPGRADE ( MIGRATE for 9.2) mode , which caused catupgrd.sql failed execute.

There can be multiple cause for the ORA-01722 error. Following are few listed

1. Database not started as UPGRADE or MIGRATE Mode.
2. SQL*PLUS session user running this script is not SYS.
3. Database server version is not correct for this script.
4. If the SYSAUX tablespace does not exist or is not ONLINE for READ WRITE, PERMANENT, EXTENT MANAGEMENT LOCAL, andSEGMENT SPACE MANAGEMENT AUTO.[Applicable Only For 10G]

Solution

1. Ensure you have followed the  following criteria

  •  Database as UPGRADE or MIGRATE Mode.
  • Logged on as SYS user when running this script.
  • Database server version  matches  for this script  i.e catupgrd.sql for 10.2 need to be executed for 10.2 database
  • If the SYSAUX tablespace  exist  and  is ONLINE for READ WRITE, PERMANENT, EXTENT MANAGEMENT LOCAL and SEGMENT SPACE MANAGEMENT AUTO.[Applicable Only For 10G]

2. If you are meeting above criteria , then  open the script from appropriate location %ORACLE_HOME%/rdbms/admin

3. Goto the SQL command which fails with error i.e in this case
SELECT TO_NUMBER('MUST_BE_OPEN_UPGRADE') FROM v$instance
and check you have performed the criteria mentioned above SQL command

While running the catbkout .sqlor catupgr.sql , you will also see the following appear on console . These are comments before SQL , which are for information purpose.

DOC 
######################################################################
######################################################################
The following statement will cause an "ORA-01722: invalid number"
error if the user running this script is not SYS. Disconnect
and reconnect with AS SYSDBA.
######################################################################
######################################################################

 



<<End_of_Article>> FOLDER:ST.Server.DBA.UpgradeAndMigration TOPIC:Miscellaneous DOCUMENT-ID:435536.1 ALIAS: SOURCE:AWIZ 6337004.994 DOCUMENT-TYPE:PROBLEM ZCXTECH TITLE:"ORA-01722: invalid number" During Upgrade/Downgrade IMPACT:LOW SKILL-LEVEL:NOVICE STATUS:MODERATED DISTRIBUTION:EXTERNAL ZCXPUBLIC ZCXCURRENT AUTHOR:DROUT.IN ERROR:ORA-1722 PRODID-5 COMPONENT:INSTALL MINVER:9.2.0.7 MAXVER:10.2.0.1 PORTID-0 FDRSEG-799 FDRSEG-788 FDRSEG-773 FDRSEG-465

References

NOTE:837570.1 - Complete Checklist for Manual Upgrades to 11gR2

Show Related Information Related


Products
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
MIGRATE; CATUPGRD.SQL; UPGRADE
Errors
ORA-1722; 501722 ERROR; 01722 ERROR
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值