一件奇怪的事,oracle明明用的spfile,启动时却非要pfile……
一件奇怪的事,今天修改数据库的最大连接数,重启时出现问题……
SQL> alter system set processes=400 scope=spfile;System altered
SQL> create pfile from spfile;File created.
【版權聲明】C:Documents and SettingsAdministrator>set oracle_sid=hs01C:Documents and SettingsAdministrator>sqlplus /nologSQL*Plus: Release 10.2.0.1.0 - Production on Tue Jun 29 08:47:06 2010Copyright (c) 1982, 2005, Oracle. All rights reserved.SQL> conn / as sysdbaConnected to an idle instance.SQL> startup nomountORA-01078: failure in processing system parametersLRM-00109: could not open parameter file 'E:ORACLEPRODUCT10.2.0DB_1DATABASEINITHS01.ORA'--提示找不到那个pfile……--没有办法,只好把最初的一个pfile改名为INITHS01.ORA,启动成功……SQL> startup nomountORACLE instance started.Total System Global Area 2550136832 bytesFixed Size 2153872 bytesVariable Size 429728368 bytesDatabase Buffers 2113929216 bytesRedo Buffers 4325376 bytes--但奇怪的是,系统使用的仍然是spfileSQL> show parameter pfileNAME TYPE VALUE------------------------------------ ----------- ------------------------------spfile string E:ORACLEPRODUCT10.2.0DB_1DBSSPFILEHS01.ORA--但很不明白,明明用的是spfile,为什么启动时非要找那个pfile……--只好先启动再说了!SQL> alter database mount;Database altered.SQL> alter database open;Database altered.