做Oracle试验时,改了一个spfile参数文件的数值,具体是哪个数值记不清了,重新打开数据库时如下提示:
SQL> startup;
ORA-01078: failure in processing system parameters
ORA-00824: cannot set SGA_TARGET or MEMORY_TARGET due to existing internal settings
ORA-00842: DB_BLOCK_BUFFERS cannot be set with SGA_TARGET or MEMORY_TARGET  \\应该就是修改的DB_BLOCK_BUFFERS的值导致冲突
查找系统中存在的Pfile参数文件。
就用Pfile文件试着打开数据库。
SQL> startup nomount pfile='/u01/app/oracle/admin/orcl/pfile/init.ora.992011144136';
ORACLE instance started.
Total System Global Area  233861120 bytes
Fixed Size                  2212088 bytes
Variable Size             159387400 bytes
Database Buffers           67108864 bytes
Redo Buffers                5152768 bytes
加载数据库至mount状态。
SQL> alter database mount;
Database altered.
打开数据库。
SQL> alter database open;
Database altered.

重新创建spfile文件

SQL> create spfile from pfile='/app/oracle/admin/allmedia/pfile/init.ora.0282013103440';   
 
File created.
 
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
 
Total System Global Area  655556608 bytes
Fixed Size                  2216224 bytes
Variable Size             390074080 bytes
Database Buffers          260046848 bytes
Redo Buffers                3219456 bytes
Database mounted.
Database opened.
SQL>