ORA-01078:failure in processing system parameters的問題

genweihua發表於2012-10-06
轉載:
參考:

故障現象:ORA-01078: failure in processing system parameters 
 
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initorcl10g.ora'
 
原理:在oracle9i和oracle10g中,預設將使用spfile啟動資料庫,如果spfile不存在,則就會出現上述錯誤。
   
解決辦法:
 
方法一:將$ORACLE_BASE/admin/orcl/pfile目錄下的init.ora.0212012125517形式的檔案 copy到$ORACLE_HOME/dbs目錄下initoracl.ora即可。(注:initoracl.ora中的oracl為你的例項名 ORACLE_SID,這裡我的SID為:orcl10g)
 
方法二:將$ORACLE_HOME/dbs目錄下spflieoracl.ora改名為spfileorcl10g.ora即可。(注:spfileorcl10g.ora中的orcl10g為環境變數中設定的SID,我的是orcl10g)
---------------------------------------------------------------------------------------
 
故障: 
[root@RHEL5 ~]# su – oracle 
[oracle@RHEL5 ~]$ sqlplus "/as sysdba"
 
SQL*Plus: Release 10.2.0.1.0 Production on Sat Jan 21 13:10:47 2012
 
Copyright (c) 1982, 2009, .  All rights reserved.
 
Connected to an idle instance.
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/initorcl10g.ora'
 
解決: 
[oracle@RHEL5 ~]$ find /u01  -name pfile    //檢視pfile位置 
/u01/ora/admin/orcl/pfile 
[oracle@RHEL5 ~]$ ls -l /u01/app/admin/orcl/pfile   
total 4 
-rw-r----- 1 oracle oinstall 1909 Jan 21 12:45 init.ora.0212012125517 
[oracle@RHEL5 ~]$  
cp /u01/ora/admin/orcl/pfile/init.ora.0212012125517  /u01/app/oracle/product/10.2.0/db_1/dbs/          //把pfile下的init.ora.0212012125517
 
複製/u01/app/oracle/product/10.2.0/db_1/dbs/initorc1.ora並改名為initorc1.ora 
[oracle@RHEL5 ~]$ cp /u01/app/admin/orcl/pfile/init.ora.0212012125517  /u01/app/oracle/product/10.2.0/db_1/dbs/initorc1.ora
註釋:修改檔案可以用:mv  init.ora.0212012125517 initorc1.ora
[oracle@RHEL5 ~]$ ls -l  /u01/app/oracle/product/10.2.0/db_1/dbs 
total 32 
-rw-r--r-- 1 oracle oinstall 2851 May 15  2009 init.ora 
drwx------ 2 oracle oinstall 4096 Jan 21 12:45 peshm_orcl_0 
-rw-rw---- 1 oracle oinstall 1544 Jan 21 12:45 hc_orcl.dat 
-rw-r----- 1 oracle oinstall   24 Jan 21 12:49 lkORCL 
-rw-r----- 1 oracle oinstall 1536 Jan 21 12:56 orapworcl 
-rw-r----- 1 oracle oinstall 2560 Jan 21 13:16 spfileorcl.ora 
-rw-r----- 1 oracle oinstall 1909 Jan 21 13:18 initorc1.ora
[oracle@RHEL5 ~]$ sqlplus "/as sysdba"
 
SQL*Plus: Release 10.2.0.1.0 Production on Sat Jan 21 13:26:28 2012
 
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
 
Connected to an idle instance.
 
作者 aaron8219

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22275400/viewspace-745793/,如需轉載,請註明出處,否則將追究法律責任。

相關文章