ORA-00201

SQL> alter database mount;
alter database mount
*
ERROR at line 1:
ORA-00201: controlfile version 10.1.0.2.0 incompatible with ORACLE version
10.0.0.0.0
ORA-00202: controlfile: 'E:ORACLEPRODUCT10.1.0ORADATAORCLCONTROL01.CTL'

sqlplus /nolog 连接的时候显示的版本都是10.1.0.2.0

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production

为什么会出现那个错误呢?

问题出在这

SQL> show parameter compatible

NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
compatible string
10.0.0

我的参数文件丢失,新建的参数文件只配置了db_name和control_files两个必要参数,其余默认,10.0.0是compatible的默认值,在参数文件中改为 10.1.0.2.0,startup force;即可

请使用浏览器的分享功能分享到微信等