Two solutions to SWAP insufficiency when installing Oracle in Linux
The current disk partition and SWAP partition are as follows:
[Root @ bys3 ~] # Fdisk-l
Disk/dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 2078 16587112 + 83 Linux
/Dev/sda3 2079 2600 4192965 82 Linux swap/Solaris
[Root @ bys3 ~] # Free-m
Total used free shared buffers cached
Mem: 2013 1850 163 0 131 1274
-/+ Buffers/cache: 444 1568
Swap: 4094 0 4094
There are two ways to add SWAP partitions: for the usage of tmpfs, see http://blog.csdn.net/haibusuanyun/article/details/17199617click to open the link
1. Run the dd command to create a file and mount it as SWAP.
2. Add a new swap Partition
The added steps are as follows:
1. free --- view the memory status command to display the size and usage of memory, swap, and buffer cache;
2. dd --- read, convert, and output data commands; fdisk splits new partitions
3. mkswap --- set the swap Zone
4. swapon --- enable the swap area, which is equivalent to mount; swapoff --- disable the swap area, which is equivalent to umount
5. Set automatic mounting at startup/etc/fstab
######################################## ################# For more details, please continue to read the highlights on the next page: swap is insufficient when Oracle is installed in Linux