免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8636 | 回复: 8

关于32位linux下ORACLE 最大可用内存的疑问 [复制链接]

论坛徽章:
0
发表于 2007-10-19 16:40 |显示全部楼层
10可用积分
请问在32位的suse 9下安装ORACLE 10G后,ORACLE最大所能使用的内存是否为4G?
为服务器配置了16G内存,现在却仅仅用了一点点,郁闷啊

论坛徽章:
0
发表于 2007-10-19 16:56 |显示全部楼层
刚才查了查,很多资料称32位操作系统 ORACLE只支持2G内存,不知道是否属实??

论坛徽章:
0
发表于 2007-10-19 17:27 |显示全部楼层
还是用64位吧,32位OS上的Oracle,除非采用特殊的技术,一般sga只能达到1.7G

论坛徽章:
0
发表于 2007-10-19 21:04 |显示全部楼层
建议使用x86-64 Linux, 如果必须使用32位Linux, 可参考Metalink note  260152.1        Summary About the Large SGA & Address Space on RH Linux
我摘录重点部分给你:

Configuration 5

    * RedHat Advanced Server (RHAS) 2.1 (shmfs/tmpfs)
    * RedHat Enterprise Linux (RHEL) 3.0 (shmfs/tmpfs, ramfs)
    * Configuration : VLM mode + in-memory filesystem (shmfs/tmpfs, ramfs)
    * SGA MAX Size 62GB
    * Details in Note 211424.1, Note 262004.1

Since shmfs/tmpfs, ramfs is a memory file system, its size canbe as high as the maximum allowable VM size which is 64GB. SGA MAX Size 62GB theoretic (depending on block size) Only the buffer cache part of the SGA can take advantage of the additional memory. For RHEL3/4 to use the VLM option to create a very large buffercache, you have two options (details in Note 262004.1):

    * Use shmfs/tmpfs much as you would in RHAS2.1:

    mountNote 262004.1):

        * Use shmfs/tmpfs much as you would in RHAS2.1:

        mount a shmfs with a certain size to /dev/shm, and set the correct permissions. Keep in mind that in RHEL3, shmfs allocate memory is pageable. Better to use tmpfs since there is no need to specify size.

        Mount shmfs:

                    # mount -t
    shm shmfs -o size=20g /dev/shm
                   
                    Edit /etc/fstab:
                    shmfs                /dev/shm        shm        size=20g        0        0
                           
                            ---- OR ----                       

        Mount tmpfs:

                    # mount –t tmpfs tmpfs /dev/shm
                                           
                    Edit /etc/fstab:
                    none                /dev/shm        tmpfs        defaults        0        0
           

        * Use ramfs (Ref. Note 262004.1, Note 259772.1)

        ramfs is similar to shmfs, except that pages are not pageable/swappable. This approach provides the commonly desired effect. Ramfs is created by:

                    # mount -t ramfs ramfs /dev/shm (unmount /dev/shm first).        

        The only difference here is that the ramfs pages are not backed by big pages.

        * When the shmfs/tmpfs,ramfs is available, Oracle server should know whether to use it or not. Need to use the parameter 'use_indirect_data_buffers=true' remains the same;

        If any one of DB_CACHE_SIZE, DB_xK_CACHE_SIZE are set, convert them to DB_BLOCK_BUFFERS

            * How to use the memory file system shmfs in short,for details see Note 211424.1:

                *  Mount the shmfs file system as root using command:

                        # mount -t shm shmfs -o nr_blocks=8388608 /dev/shm

                * Set the shmmax parameter to half of RAM size at most 4294967295

                        # echo 4294967295 >/proc/sys/kernel/shmmax                    

            * Set the init.ora parameter use_indirect_data_buffers=true

            * Startup oracle.

            * How to use the memory file system ramfs in short, for details see Note 262004.1:

                * Mount the shmfs file system as root using command:

                        % umount /dev/shm
                        % mount -t ramfs ramfs /dev/shm
                        % chown oracle:dba /dev/shm

                * Increase the "max locked memory" ulimit (ulimit -l)

                Add the following to /etc/security/limits.conf:

                          oracle           soft    memlock         3145728
                          oracle           hard    memlock         3145728

                (in case of ssh see details on Note 262004.1)

            * Set the init.ora parameter use_indirect_data_buffers=true

            * Startup oracle.

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
发表于 2007-10-20 11:53 |显示全部楼层
直接用64BIT多方便

论坛徽章:
0
发表于 2007-10-22 14:53 |显示全部楼层
俺也遇到过类似问题,suse9下给swap 6G然后系统就启动不起来了,不知道什么原因,好像跟Oracle没关系吧?

论坛徽章:
0
发表于 2007-11-10 23:44 |显示全部楼层
也尝试在用64位的SUSE 9上安装ORACLE,一切很顺利,但是不知道为什么在创建数据库的,总提示pmon进程无法启动:em11: :em11: :em11:
由于系统急,只好改回32位的SUSE 9。。。。。

论坛徽章:
0
发表于 2007-11-10 23:45 |显示全部楼层
不过64位的性能真的比32位的好很多啊,以后看看要慢慢的转到64位了:

论坛徽章:
0
发表于 2007-11-12 11:07 |显示全部楼层
在suse 9 X86_64上安装,是不是在建立数据库时报ora-27125错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP