技术改变生活

博客园 首页 新随笔 联系 订阅 管理

方法一:sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.3.0 - Production on Wed Dec 15 10:54:03 2010

Copyright (c) 1982, 2007, 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 '/oracle/app/oracle/product/11.2.0/db_1/dbs/initicare1.ora '

 

原来打不开initicare1.ora,于是进入/oracle/app/oracle/product/11.2.0/db_1/dbs/目录,

cd /oracle/app/oracle/product/11.1.0/db_1/dbs/

  ls

  hc_orcl.dat   init.ora  lkORCL  orapworcl  spfileorcl.ora

原来是没有initicare1.ora文件,解决方法 cd /data/app/oracle/admin/orcl/pfile/,将ora.xxxx复制到dbs目录下:

cp init.ora.xxxx  /data/app/oracle/product/11.2.0/dbs/initicare1.ora

 

方法二:原因分析:

首先查看节点下的/data/app/oracle/product/11.2.0/dbs目录,发现没有/initorcl1.ora文件。我的环境变量为ORCL为更改和数据库实例的SID=“orcl”一致(区分大小写)。

解决方案:修改环境变量vim .bash_profile

ORACLE_SID=orcl

source .bash_profile

reboot

posted on 2020-09-22 23:58  小阿峰  阅读(1336)  评论(0编辑  收藏  举报