aix 5.3l 中 10.2.0.4 中 sga_lock 设置

一般来说设置LOCK_SGA需要以下的步骤
1.$ /usr/sbin/vmo -r -o v_pinshm=1
2.$ /usr/sbin/vmo -r -o maxpin%=percent_of_real_memory
percent_of_real_memory = ((size of SGA / size of physical memory) *100) + 3
3.Set LOCK_SGA parameter to TRUE in the init.ora .

 

但是10.2.0.4还需要如下额外的操作:
Solution
1. Add the CAP_BYPASS_RAC_VMM and CAP_PROPAGATE capabilities to "oracle" user
    # chuser capabilities=CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oracle

2. Configure the AIX large page pool by calculating the number of large pages required for the SGA:    
  num_of_large_pages = INT((total_SGA_size-1)/16MB)+1

 

Note that although we are dealing with integer values, some rounding up must be considered, since rounding down makes no sense when trying to fit things into memory. For example, take an SGA size of 9999220736:

9999220736-1/(16*1024*1024)=595.99999994

Here, the integer calc will end up with a result of 595, but given the actual figure is higher, we would need to round up to 596 rather than accept the base figure of 595.

Or preferably change the int function to Round function.


3. Configure the number and size of large pages:
    # vmo -p -o lgpg_regions=num_of_large_pages -o lgpg_size=16777216

Now login as "oracle" user and try database startup
   SQL> connect / as sysdba
   SQL> STARTUP UPGRADE
After enabling large page capabilities they may not be actually used by Oracle. Large pages may be allocated at the OS level but Oracle still uses normal memory. This is due to Bug 7226548. Please apply the Patch 7226548 to avoid this issue.


可能还涉及:Bug 7226548,需要安装补丁。

10.2.0.4BUG真多。尼玛

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7728585/viewspace-741516/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7728585/viewspace-741516/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值