一件奇怪的事,oracle明明用的spfile,启动时却非要pfile……
---
来源:TTT BLOG [ http://www.taoyoyo.net/ttt/ ]
地址:http://www.taoyoyo.net/ttt/post/428.html
---
一件奇怪的事,oracle明明用的spfile,启动时却非要pfile……
一件奇怪的事,今天修改数据库的最大连接数,重启时出现问题……
SQL> alter system set processes=400 scope=spfile;System altered
SQL> create pfile from spfile;File created.
C:\Documents and Settings\Administrator>set oracle_sid=hs01C:\Documents and Settings\Administrator>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:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\INITHS01.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:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEHS01.ORA--但很不明白,明明用的是spfile,为什么启动时非要找那个pfile……--只好先启动再说了!SQL> alter database mount;Database altered.SQL> alter database open;Database altered.
--本文来源于[TTT BLOG]:http://www.taoyoyo.net/ttt/post/428.html
(提示:转载时请务必保留此版权信息或者注明来源。)

