zoukankan      html  css  js  c++  java
  • ORA01078: failure in processing system parameters 启动oracle数据库时报错

    启动Oracle数据库报错,如

    [oracle@localhost ~]$ sqlplus / as sysdba

    SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 16 19:43:43 2013

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

    Connected to an idle instance.

    SQL> startup
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/initorcl.ora'

    原理:oracle9ioracle10g中,数据库默认将使用spfile启动数据库,如果spfile不存,则就会出现上述错误。

    第一步:验证启动实例是否正确

    我们数据启动的候是启动icpdb实例,发现文件却为initorcl.ora(本应该为initicpdb.ora文件)说明实例未导入进来,则可输入:echo $ORACLE_SID真的是orcl不是test;

    则可发现问题症结所了。所以可以再次export ORACLE_SID=test,注意不是“export $ORACLE_SID=test”很多候会粗心犯这种低级错误。最后数据库启动成功。

    若上面问题是打不开文件inittest.ora的话,则表示此文件不存,则可通过第二步来解决问题:

    第二步:将$ORACLE_BASE/admin/$ORACLE_SID/pfile目录init.ora.0312013174228形式的文件copy/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/目录inittest.ora即可。(注:inittest.ora中的icpdb为你的实例名ORACLE_SID,这里我的SID为:test

    [oracle@localhost pfile]$ cp /home/oracle/app/admin/test/pfile/init.ora.0312013174228 /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/inittest.ora

    然后再次 sqlplus / as sysdba 进入,启动数据库startup,最后成功。

  • 相关阅读:
    浅谈Python常用英文单词
    python web框架 Django的APP以及目录介绍 2
    Python中的enumerate函数
    python web框架 django wsgi 理论
    python web框架 django 工程 创建 目录介绍
    python web框架 django工程的创建
    mysql c 终止 mysql输入语句模式
    前端 html input标签 placeholder属性 标签上显示内容
    img 标签注意 默认img标签,有一个1px的边框 img{ border: 0; }
    前端 html input标签 disable 属性
  • 原文地址:https://www.cnblogs.com/sherlockhomles/p/3089190.html
Copyright © 2011-2022 走看看