Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1099656
  • 博文数量: 159
  • 博客积分: 3063
  • 博客等级: 中校
  • 技术积分: 2703
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-01 01:51
文章分类

全部博文(159)

文章存档

2013年(48)

2012年(111)

分类: Oracle

2013-07-06 09:47: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.ora,spfile.ora,init.ora.

spfile:服务器参数文件   是二进制格式,不能用记事本打开修改   
pfile:参数文件   是文本文件格式,可以用记事本打开修改,   
如果不指定用什么启动,则系统默认使用spfile,如果没有spfile,则使用pfile启动
阅读(11545) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~