做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
查找系统中存在的Pfile参数文件。
[root@localhost ~]# find / -name "*.ora.*"
/u01/app/oracle/admin/orcl/pfile/init.ora.992011144136
/u01/app/oracle/product/11.2.0/dbhome_1/ldap/admin/ldap.ora.sample
/u01/app/oracle/product/11.2.0/dbhome_1/hs/admin/listener.ora.sample
/u01/app/oracle/product/11.2.0/dbhome_1/hs/admin/tnsnames.ora.sample
/u01/app/oracle/product/11.2.0/dbhome_1/inventory/Templates/hs/admin/listener.ora.sample
/u01/app/oracle/product/11.2.0/dbhome_1/inventory/Templates/hs/admin/tnsnames.ora.sample
就用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.