系統版本:CentOS 5.5 x64
資料庫版本:Oracle 11G R2 11.2.0
報錯如下:
- [oracle@server253 ~]$ sqlplus / as sysdba
-
- SQL*Plus: Release 11.2.0.1.0 Production on 1 17:38:49 2012
-
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
-
-
-
- SQL> startup
- ORA-01078: failure in processing system parameters
- LRM-00109: ???????????????? '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initmander.ora'
- SQL>
解決過程如下:
- [oracle@server253 pfile]$ cat init.ora.6212012171120 >/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initmander.ora
- [oracle@server253 pfile]$ pwd
- /u01/app/oracle/admin/benguo/pfile
- [oracle@server253 pfile]$
這是因為在oracle9i和oracle10g中,資料庫預設將使用spfile啟動資料庫,如果spfile不存在,則就會出現上述錯誤。
解決方案:(過程代碼上——)
將$ORACLE_BASE/admin/資料庫名稱/pfile目錄下的init.ora.012009233838形式的檔案copy到$ORACLE_HOME/dbs目錄下initoracle.ora即可。(註:initoracle.ora中的oracle為你的執行個體名 ORACLE_SID)
- SQL> startup
- ORA-01078: failure in processing system parameters
- LRM-00109: ???????????????? '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initmander.ora'
- SQL>
- SQL>
- SQL> e^Hs
- SP2-0042: δ֪ "s" -
-
- SQL>
- SQL>
- SQL> startup
- ORACLE
-
- Total System Global Area 417546240 bytes
- Fixed Size 2213936 bytes
- Variable Size 268437456 bytes
- Database Buffers 142606336 bytes
- Redo Buffers 4288512 bytes
-
-
-
-
- SQL>