SQL> show parameter db_block_buffers
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_block_buffers integer 0
SQL> alter system set db_block_buffers=300 scope=spfile;
系統已更改。
SQL> show parameter db_block_buffers
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_block_buffers integer 0
SQL> shutdown immediate;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
SQL> startup
ORA-00381: cannot use both new and old parameters for buffer cache size specification
SQL>
SQL> create pfile from spfile;
文件已創建。
在os下邊修改INIToic.ORA刪除*.db_block_buffers=300
SQL> startup pfile=D:/oracle/ora92/database/INIToic.ORA;
ORACLE 例程已經啓動。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
數據庫裝載完畢。
數據庫已經打開。
SQL> create spfile from pfile;
文件已創建。
db_block_buffers is deprecated in 9i. The new parameter is db_cache_size.
You have encountered a bug wherein oracle allows you to set both the parameters .. however, database will not come up because both of them cannot be defined.
To fix this:
export your spfile to a pfile:
create pfile from spfile;
Fix the problem by removing the entry for db_block_buffers.
and then recreate spfile by:
create spfile from pfile;