数据库启动报错 ORA-01078和LRM-00109

来源:互联网 发布:ubuntu开机只进入grub 编辑:程序博客网 时间:2024/04/29 09:22
[oracle@localhost ~]$ sqlplus / as sysdba

提示 Connected to an idle instance. 连接到一个空的实例。

SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/oracle/product/10g/dbs/initorc1.ora'


解决方法:

cp $ORACLE_BASE/admin/$ORACLE_SID/pfile/init.ora.10102009132131 /oracle/product/10g/dbs/initorc1.ora 注initora文件可能名字不一样

>lsnrctl start
>sqlplus /nolog 是不登陆到数据库服务器的模式

SQL*Plus: Release 10.1.0.3.0 - Production on Thu Jun 8 13:16:00 2006

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

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 167772160 bytes
Fixed Size 778212 bytes
Variable Size 57679900 bytes
Database Buffers 109051904 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.


问题解决!

注:Oracle在启动过程中,需要读取参数文件(pfile/spfile)来创建实例.Oracle在启动过程中,寻找参数文件的顺序为:spfile<sid>.ora,spfile.ora,init<sid>.ora.

spfile:服务器参数文件 是二进制格式,不能用记事本打开修改
pfile:参数文件 是文本文件格式,可以用记事本打开修改,
如果不指定用什么启动,则系统默认使用spfile,如果没有spfile,则使用pfile启动
--------------------------------------

 三. 使用pfile/spfile 启动数据库

  假如您想使用pfile 启动数据库,您能够在启动时指定pfile 或删除spfile.

  SQL> startup pfile=/opt\oracle\admin\orcl\pfile\init.ora.82720787887';


TechTarget中国原创内容,原文链接:http://www.searchdatabase.com.cn/showcontent_52304.htm

 

 

 

原创粉丝点击