博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
10gR1中ora-00201,ora-01103错误的解决办法
阅读量:4176 次
发布时间:2019-05-26

本文共 3335 字,大约阅读时间需要 11 分钟。

今天刚到公司,有个网友发了ip与密码过来让我帮你启动数据库,进去后发现数据库安装的比较乱,启动数据库时报00201的错误,很久不摸这些安装方面的东西啦,有点生,忙完了一些例行工作,然后就静下心来测试,很快就启动数据库啦.

 

[oracle@rdas3 log]$ sqlplus "/ as sysdba"

SQL*Plus: Release 10.1.0.3.0 - Production on Tue Dec 6 10:37:26 2005

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> alter system set control_files='/opt/app/oracle/oradata/orcl/control01.ctl' scope=spfile;

alter system set control_files='/opt/app/oracle/oradata/orcl/control01.ctl' scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE specified at startup

SQL> create spfile from pfile;

File created.

SQL> shutdown immediate

ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 88080384 bytes

Fixed Size 777812 bytes
Variable Size 87040428 bytes
Database Buffers 0 bytes
Redo Buffers 262144 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> alter system set control_files='/opt/app/oracle/oradata/orcl/control01.ctl' scope=spfile;

System altered.

SQL> shutdown immediate

ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 88080384 bytes

Fixed Size 777812 bytes
Variable Size 87040428 bytes
Database Buffers 0 bytes
Redo Buffers 262144 bytes
ORA-00201: controlfile version 10.1.0.2.0 incompatible with ORACLE version
10.0.0.0.0
ORA-00202: controlfile: '/opt/app/oracle/oradata/orcl/control01.ctl'

SQL> show parameter com

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------
commit_point_strength integer 1
compatible string 10.0.0
max_commit_propagation_delay integer 700
nls_comp string
plsql_compiler_flags string INTERPRETED, NON_DEBUG
plsql_v2_compatibility boolean FALSE
SQL> alter system set compatible='10.1.0.3.0' scope=spfile;

System altered.

SQL> shutdown immediate

ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 88080384 bytes

Fixed Size 777812 bytes
Variable Size 87040428 bytes
Database Buffers 0 bytes
Redo Buffers 262144 bytes
ORA-01103: database name 'ORCL' in controlfile is not 'DEFAULT'

SQL> oerr ora 1103
SP2-0734: unknown command beginning "oerr ora 1..." - rest of line ignored.
SQL> host oerr ora 1103
01103, 00000, "database name '%s' in controlfile is not '%s'"
// *Cause: The database name in the controlfile does not match your
// database name.
// *Action: Either find the correct controlfile or change your database name.

SQL> show parameter db_name

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------
db_name string DEFAULT
SQL> alter system set db_name=ORCL scope=spfile;

System altered.

SQL> alter database mount;

alter database mount
*
ERROR at line 1:
ORA-01103: database name 'ORCL' in controlfile is not 'DEFAULT'

SQL> shutdown immediate
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 88080384 bytes

Fixed Size 777812 bytes
Variable Size 87040428 bytes
Database Buffers 0 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL> exit

 

FROM:

转载地址:http://lutai.baihongyu.com/

你可能感兴趣的文章
ListCtrl插入大量数据时,发现缓慢有问题,QT里有数据和显示分开,MFC也有比较戳的虚拟表,古老的技术
查看>>
MFC如何复制多个文件到剪贴板
查看>>
MFC 高精度计时器
查看>>
大量调用函数,里CImage局部变量 并使用Load函数,会导致大量的线程退出现象解决办法
查看>>
线程的优先级应用场景 - 算法分析计算时间
查看>>
MFC ListCtrl 设置某行没效果解决办法
查看>>
MFC自定义搜索编辑框CEdit,得到焦点提示文本消失,失去焦点,提示文本显示
查看>>
MFC 复制文本到剪贴板
查看>>
CImage 缩放图片
查看>>
树莓派3B+和windows主机方便互传的办法 - 安装samba软件
查看>>
Android调试高德SDK,如何获取SHA1?
查看>>
安卓遇到蓝牙设备发送bug,使用lock加condition解决
查看>>
getScanResults一直为空的解决办法
查看>>
树莓派VNC Viewer连接失败 The connection was refused by the computer
查看>>
linux精确分析函数运行时间
查看>>
QtChart x坐标轴是时间坐标
查看>>
QT QByteArray一个不小心的坑 char转int
查看>>
Linux 使用system不安全,有时触发,有时不触发,替代函数如下
查看>>
QT 中文乱码的解决方案
查看>>
linux程序设计 socket本地客户端连本地服务器一直报找不到文件
查看>>