首页 > 数据库 > Oracle > 9i升级到10g 执行catupgrd报错
想试验下9i的rman备份在10g下恢复,而后继续利用9i下的日志恢复,结果在open的时候提示需要upgrade打开,
SQL> startup upgrade pfile='/oracle10g/app/dbs/initora10g.ora';
ORACLE instance started.
Total System Global Area 968884224 bytes
Fixed Size 1277220 bytes
Variable Size 805307100 bytes
Database Buffers 159383552 bytes
Redo Buffers 2916352 bytes
Database mounted.
Database opened.
数据字典升级,报告以下错误
SQL> @catupgrd .......................
DOC>######################################################################
DOC>######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the user running this script. is not SYS. Disconnect
DOC> and reconnect with AS SYSDBA.
DOC>######################################################################
DOC>######################################################################
DOC>#
no rows selected
DOC>######################################################################
DOC>######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the database server version is not correct for this script.
DOC> Shutdown ABORT and use a different script. or a different server.
DOC>######################################################################
DOC>######################################################################
DOC>#
no rows selected
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>#
no rows selected
DOC>#######################################################################
DOC>#######################################################################
DOC> The following statements will cause an "ORA-01722: invalid number"
DOC> error if the SYSAUX tablespace does not exist or is not
DOC> ONLINE for READ WRITE, PERMANENT, EXTENT MANAGEMENT LOCAL, and
DOC> SEGMENT SPACE MANAGEMENT AUTO.
DOC>
DOC> The SYSAUX tablespace is used in 10.1 to consolidate data from
DOC> a number of tablespaces that were separate in prior releases.
DOC> Consult the Oracle Database Upgrade Guide for sizing estimates.
DOC>
DOC> Create the SYSAUX tablespace, for example,
DOC>
DOC> create tablespace SYSAUX datafile 'sysaux01.dbf'
DOC> size 70M reuse
DOC> extent management local
DOC> segment space management auto
DOC> online;
DOC>
DOC> Then rerun the catupgrd.sql script.
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SELECT TO_NUMBER('No SYSAUX tablespace') FROM dual
*
ERROR at line 1:
ORA-01722: invalid number
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
参考了Metalink的文档才搞定的,因为我现在是从9i恢复到10g的环境里,而10g是需要sysaux表空间的
ORA-01722: invalid number" During Upgrade/Downgrade [ID 435536.1] …
建立sysaux 表空间,再catupgrd 升级ok了!!!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/61604/viewspace-733283/ ,如需转载,请注明出处,否则将追究法律责任。