Two solutions to SWAP insufficiency when installing Oracle in Linux

Source: Internet
Author: User

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

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.