ORA-01078:、LRM-00109:及ORA-32001:报错的解决方案

页面导航:首页 > 数据库 > oracle > ORA-01078:、LRM-00109:及ORA-32001:报错的解决方案

ORA-01078:、LRM-00109:及ORA-32001:报错的解决方案

来源: 作者: 时间:2016-01-20 09:41 【

SQL startup;ORA-01078: failure in processing system parametersLRM-00109: could not open parameter file u01 oracle product 11 2 db_1 dbs initorcl ora --解决方案[[email protected]
SQL> startup;

ORA-01078: failure in processing system parameters

LRM-00109: could not open parameter file '/u01/oracle/product/11.2/db_1/dbs/initorcl.ora'

--解决方案

[[email protected]]$ cp /u01/oracle/admin/orcl/pfile/init.ora.91120140367 $ORACLE_HOME/dbs

[[email protected]]$ cp init.ora.91120140367 init.ora.91120140367.bak

[[email protected]]$ mv init.ora.91120140367 initorcl.ora

SQL> startup

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

SQL> alter system set nls_date_format='YYYY-MM-DD HH24:MI:SS' scope=spfile;
alter system set nls_date_format='YYYY-MM-DD HH24:MI:SS' scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE is in use

可以通过以下语句来确认是否是用spfile来启动的,为空表示用pfile启动
SQL> show parameter spfile;

使用以下语句来修改oracle来使用spfile启动

SQL> create spfile from pfile;
File created.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup

 

Tags:

文章评论

最 近 更 新
热 点 排 行
Js与CSS工具
代码转换工具

<