因为调整32位系统的SGA区大小时不慎,超出可用内存,造成Oracle实例无法启动,报出ORA-01034、ORA-01078等错误。如下图
sqlplus /nolog
SQL> conn / as sysdba
Connected.
SQL> startup;
出现错误:ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora'
解决办法
sqlplus /nolog
SQL> conn / as sysdba
Connected.
SQL> create spfile from pfile='/oracle/product/10.2.0/admin/orcl/pfile/init.ora';
创建后,在/oracle/product/10.2.0/db_1/dbs/ 重新生成 spfileORCL.ora
OR
-- 先创建pfile到指定位置,例如“c:\initorcl.ora”。
SQL>create pfile='c:\initorcl.ora' from spfile;
-- 然后直接修改initorcl.ora文件中配置错误的值. 然后:
SQL> create spfile from pfile='c:\initorcl.ora';
SQL> startup
启动数据库
cmd> sqlplus /nolog
SQL> conn / as sysdba
Connected.
SQL> startup;
启动成功!