在内存中如何锁定SGA

在AIX4.3.3及以上版本中,共享内存中的分页可利用-虚拟内存管理程序(VMM)来固定,为支持此项工作,
 必需设置两项:       1.在Oracle数据库的init.ora文件中指定 LOCK_SGA=TRUE 来打开“pin”标记。
                                    2.在AIX操作系统中设置v_pinshm=1.
                                    3.使用到的命令vmtune(vmo)、IPCS.
 以下为实际操作前后的情况:
 一、设置前的系统状态:                          
    A.Oracle SGA 状态
              SQL*Plus: Release 10.1.0.2.0 - Production on Sat May 19 21:03:27 2007
              Copyright (c) 1982, 2004, Oracle.  All rights reserved.
              Connected to:
              Oracle Database 10g Release 10.1.0.2.0 - 64bit Production
              SQL> select to_char(sysdate,'YYYY-MM-DD HH:MI:SS') from dual;
              TO_CHAR(SYSDATE,'YY
              -------------------
              2007-05-19 09:04:13
              SQL> show parameter lock_sga
              NAME                                 TYPE        VALUE
              ------------------------------------ ----------- ------------------------------
              lock_sga                             boolean     FALSE
    B.AIX操作系统关于“内存锁定SGA”开启状态〔v_pinshm〕:
                  # /usr/samples/kernel/vmtune   |grep pin
                                                      maxpin = 1677722
                                                              maxpin% = 80
                                    pinnable_frames = 1862687
                                                                v_pinshm = 0
##########################################################################################
Metalink上给出修改参考三步骤:
      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
##########################################################################################                                                                   

一、设置后的系统状态:

你可能感兴趣的:(oracle,sql,C++,c,AIX)