zoukankan      html  css  js  c++  java
  • Linux安装Oracle调整tmpfs以突破1.7G的限制

    调整/dev/shm的大小

    ---------------------------------------------------------
    1、查看大小
    df -h /dev/shm


    [@more@]2、修改大小(修改fstab文件以便重启生效)
    vi /etc/fstab
    tmpfs /dev/shm tmpfs defaults,size=4096M 0 0

    3、重新挂载
    mount -o remount,size=4096M /dev/shm

    4、查看修改后的大小
    df -h /dev/shm
    ---------------------------------------------------------

    如果是Oracle Enterprise Linux 6.0及以上版本系统,还需要修改:/etc/rc.d/rc.sysinit

    1、注释如下语句

    #mount -f /dev/shm >/dev/null2>&1

    2、在rc.sysinit 中找到如下内容

    # Mount all other filesystems (except forNFS and /proc, which is already

    # mounted). Contrary to standard usage,

    # filesystems are NOT unmounted in singleuser mode.

    if [ "$READONLY" !="yes" ] ; then

    action $"Mounting local filesystems: " mount -a -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev

    else

    action $"Mounting local filesystems: " mount -a -n -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev

    fi

    =====> 在该处添加如下部分内容tmpfs

    if [ "$READONLY" !="yes" ] ; then

    action $"Mounting local filesystems: " mount -a -t tmpfs,nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev

    else

    action $"Mounting local filesystems: " mount -a -n -t tmpfs,nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -Ono_netdev

    fi

    3、重新启动系统

    :转

  • 相关阅读:
    Sobel边缘检测(2)-matlab
    Sobel边缘检测(1)
    FPGA-高斯滤波
    MySQL 常用30种SQL查询语句优化方法
    探索测试
    下拉菜单的选取
    163邮箱登录账号密码定位的问题
    python编码
    selenium python 如何控制网页内嵌div中滚动条的滚动
    Chrome正收到自动测试软件的控制 怎么去掉
  • 原文地址:https://www.cnblogs.com/monogem/p/9802686.html
Copyright © 2011-2022 走看看