- 论坛徽章:
- 0
|
今天发现的两个问题,也许这个问题是许多人都碰到过的,也许很多人已经解决过的,也许..............
SQL> startup
ORA-00821: Specified value of sga_target 200M is too small, needs to be at least 208M
SQL> startup force
ORA-00093: _shared_pool_reserved_min_alloc must be between 4000 and 0
OS:
SQL> !uname -a
SunOS ORACLE 5.10 Generic_118855-33 i86pc i386 i86pc
DB:
SQL> select * from v$version where rownum<3;
BANNER
--------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
由于错误是提示sga_target太小了,我的第一反映就是去尝试查找spfile的sga_target,发现这个值是很大的,在经过一番努力查询后,最后发现是spfile文件有问题,最后尝试用pfile启动系统
SQL> startup pfile='/export/home/oracle/product/10.2/dbs/initora10g.ora'
ORACLE instance started.
Total System Global Area 511705088 bytes
Fixed Size 1281068 bytes
Variable Size 201327572 bytes
Database Buffers 301989888 bytes
Redo Buffers 7106560 bytes
Database mounted.
Database opened.
SQL>
SQL> show parameter sga_target;
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
sga_target big integer
488M
最后,干脆重新创建spfile,
SQL> alter system set sga_target=308666624 scope=both
初步断定第二个错误是由于第一个错误引起的,把那个问题搞定后就全部ok了,
SQL> startup force
SQL> create spfile from pfile;
这个问题是基本的知识,应该强化基本功. |
|