Dynamically Changing Db_cache_size Fails With Ora-02097 And Ora-00384 Errors.

太阳 发表于 2007-09-02 11:55:56

Symptoms

Dynamically changing DB_CACHE_SIZE fails with ORA-02097 and ORA-00384 errors.

SQL> alter system set db_cache_size=250m;
alter system set db_cache_size=250m
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00384: Insufficient memory to grow cache

Cause

There is  no  SGA_MAX_SIZE parameter set explicitly in init.ora and hence its default value at the time of startup is set to sum of the total memory parameters plus some overhead.

SGA given by show sga is same as SGA_MAX_SIZE --> 1142918704

SQL> show sga
Total System Global Area 1142918704 bytes
Fixed Size 732720 bytes
Variable Size 1006632960 bytes
Database Buffers 134217728 bytes
Redo Buffers 1335296 bytes


SQL> show parameter sga;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 1142918704
SQL> exit

So, if you so a alter system to increase the DB_CACHE_SIZE , this will fail as it cannot grow beyond SGA_MAX_SIZE . Thus, the errors which your are seeing is expected.

Solution

As SGA_MAX_SIZE specifies the maximum size of SGA for the lifetime of the instance, please set SGA_MAX_SIZ to some higher value - ( higher than sum of current sga memory parameters ) to which you expect the memory growth of this instance.

As SGA_MAX_SIZE is a static parameter, you need to set it and re-start the instance once. Thereafter you can  dynamically alter your memory parameters - SHARED_POOL_SIZE, DB_CACHE_SIZE etc to higher values but not exceeding beyond SGA_MAX_SIZE as defined in init.ora.
关键词(Tag): error ora-02097 ora-00384


收藏: QQ书签 del.icio.us 订阅: Google 抓虾

最新评论

发表评论

* 昵称

已经注册过? 请登录

新用户请先注册 以便能显示头像及追踪评论回复

Email
网址
* 评论
表情
 
 

分类小组论坛
杂谈, 娱乐、八卦, 文学、艺术, 体育, 旅游、同城, 象牙塔, 情感, 时尚、生活, 星座, 科技

请注意遵守中华人民共和国法律法规, 如威胁到本站生存, 将依法向有关部门报告, 同时本站的相关记录可能成为对您不利的证据.

相关法律法规
全国人大常委会关于维护互联网安全的决定
中华人民共和国计算机信息系统安全保护条例
中华人民共和国计算机信息网络国际联网管理暂行规定
计算机信息网络国际联网安全保护管理办法
计算机信息系统国际联网保密管理规定