oracle启动包找不到数据文件,ORA-01078,LRM-00109参数文件问题,导致数据库无法启动...

在oracle9i和oracle10g中,数据库默认将使用spfile启动数据库,如果spfile不存在,并且找不到静态参数文件或环境变量设置错误,则就会出现ORA-01078和LRM-00109错误。

这里介绍一种情况spfile不存在后的数据库启动。

实验前:

移走动态参数文件,并且没有静态参数文件。

[oracle@redhat4 dbs]$ ls

hc_jiagulun.dat  init.ora    orapwjiagulun      spfilejiagulun.ora

initdw.ora       lkJIAGULUN  snapcf_jiagulun.f

[oracle@redhat4dbs]mvspfilejiagulun.ora ../spfilejiagulun.ora

启动数据库,报错找不到静态参数文件initjiagulun.ora(因为数据库找不到动态参数文件之后就会去找静态参数文件)

SQL> startup;

ORA-01078: failure in processing system parameters

LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initjiagulun.ora'

解决方法:

1、复制并重命名:

[oracle@redhat4 pfile]$ cp /u01/app/oracle/admin/jiagulun/pfile/init.ora.1019201314446 /u01/app/oracle/product/10.2.0/db_1/dbs/initjiagulun.ora

2、成功启动数据库,注意此时只是用静态参数文件启动。

[oracle@redhat4 pfile]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Dec 27 19:37:48 2013

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

Connected to an idle instance.

SQL> startup;

ORACLE instance started.

Total System Global Area  285212672 bytes

Fixed Size                  1218992 bytes

Variable Size              92276304 bytes

Database Buffers          188743680 bytes

Redo Buffers                2973696 bytes

Database mounted.

Database opened.

SQL>

3、重新生成动态参数文件,再次启动时就会用动态参数文件启动数据。

SQL> create spfile from pfile ;

File created.

SQL> shutdown abort;

ORACLE instance shut down.

SQL>

SQL>

SQL>

SQL> startup;

ORACLE instance started.

Total System Global Area  285212672 bytes

Fixed Size                  1218992 bytes

Variable Size              92276304 bytes

Database Buffers          188743680 bytes

Redo Buffers                2973696 bytes

Database mounted.

Database opened.

SQL> show parameter spfile;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string      /u01/app/oracle/product/10.2.0

/db_1/dbs/spfilejiagulun.ora

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值