Oracle 11.2.0.4在RHEL6.9系统安装过程报错
swap空间不足
解决方式
进入/tmp目录下,创建一个2G的swapfree文件
[root@Orcl ~]# cd /tmp
[root@Orcl tmp]# dd if=/dev/zero of=swapfree bs=32k count=65515
65515+0 records in
65515+0 records out
2146795520 bytes (2.1 GB) copied, 63.6355 s, 33.7 MB/s
将swapfree设置为Swap交互空间
[root@Orcl tmp]# mkswap swapfree
mkswap: swapfree: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 2096476 KiB
no label, UUID=3b81e907-1d7a-4f40-be8a-13d9ae8ec5f7
开启交换空间
[root@Orcl tmp]# swapon swapfree
swapon: /tmp/newdisk: insecure permissions 0644, 0600 suggested.
[root@linux-01 ~]# chmod 0600 /tmp/swapfree //更改newdisk权限为0600
[root@linux-01 ~]# swapoff /tmp/newdisk
[root@Orcl tmp]# swapon swapfree
4、卸载新增加的swap:使用swapoff命令:
[root@linux-01 ~]# swapoff /tmp/newdisk
查看Swap空间
[root@Orcl tmp]# free
total used free shared buffers cached
Mem: 8193176 2647068 5546108 2536 20140 2249576
-/+ buffers/cache: 377352 7815824
Swap: 2096476 0 2096476
设置交换分区开机启动
[root@Orcl tmp]# vi /etc/fstab
添加以下内容
/tmp/swapfree swap swap defaults 0 0
如果需要重新设置swap空间大小,需要swapoff swapfree
然后重复上述步骤