Oracle 11gORA-00845: MEMORY_TARGET not supported on this system 说明
[INS-35172]Target database memory (XXMB) exceeds the systems available shared memory({0}MB) 解决方法
tmpfs /dev/shm tmpfs defaults,sysfs iis7站长之家=3G 0 0
tmpfs 的值默认情况是为系统内存的一半,这种配置放在,在RedHat 系统下可以正常使用,但是我在Oracle Linux 6.1 下测试,发现这个参数不能生效,即使这里设成3G,OS 启动完毕后,查看tmpfs 的大小还是会变成内存的一半。
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 14G 11G 2.4G 83% /
tmpfs 3.0G 0 3.0G 0% /dev/shm
/dev/sda1 194M 46M 139M 25% /boot
tmpfs 3.0G 0 3.0G 0% /dev/shm
#
# /etc/fstab
# Created by anaconda on Tue Nov 2213:02:55 2011
#
# Accessible filesystems, by reference, aremaintained under '/dev/disk'
# See man pages fstab(5), findfs(8),mount(8) and/or blkid(8) for more info
#
UUID=b1d2de8e-de31-4deb-b4e8-755c0ed01616/ ext4 defaults 1 1
UUID=4df5aa5f-8ef0-473a-931a-51d11e21aa53/boot ext4 defaults 1 2
UUID=82085104-5021-4aaf-8e85-f213998107b6swap swap defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
[root@rac1 ~]#
因此如果我们只修改/etc/fstab,在Oracle Linux6.1 下没有影响。
#mount -f /dev/shm >/dev/null2>&1
# 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 -tnonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
action $"Mounting local filesystems: " mount -a -n -tnonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
fi
if [ "$READONLY" !="yes" ] ; then
action $"Mounting local filesystems: " mount -a -tnonfs,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 -Ono_netdev
fi
[root@rac1 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 14G 11G 2.4G 83% /
/dev/sda1 194M 46M 139M 25% /boot