Solution to insufficient swap space during oracle11g Installation

Source: Internet
Author: User

Adding virtual memory in linux solves the problem of insufficient swap space

Add a SWAP file:

1. view the current virtual memory

[Root @ ora11gr2 ~] # Free-m

Total used free shared buffers cached
Mem: 2026 217 1809 0 11 126
-/+ Buffers/cache: 78 1947
Swap: 2047 0 2047
[Root @ ora11gr2 ~] #

[Root @ ora11gr2 ~] #

[Root @ ora11gr2 mapper] # ll
Total 0
Crw ------- 1 root 10, 63 Mar 19 control
Brw-rw ---- 1 root disk 253, 0 Mar 19 VolGroup00-LogVol00
Brw-rw ---- 1 root disk 253, 1 Mar 19 VolGroup00-LogVol01
[Root @ ora11gr2 mapper] #

[Root @ ora11gr2 mapper] #

2. Increase the current swap space from 3047 mb to 1024 mb. Add a mb swap file.

[Root @ ora11gr2 mapper] # dd if =/dev/zero of =/home/swap bs = 1024 count = 1024000
1024000 + 0 records in
1024000 + 0 records out

1048576000 bytes (1.0 GB) copied, 29.5369 seconds, 35.5 MB/s

3. Run the following command to add and enable the virtual memory.

[Root @ ora11gr2 mapper] # mkswap/home/swap

Setting up swapspace version 1, size = 1048571 kB
[Root @ ora11gr2 mapper] # swapon/home/swap
[Root @ ora11gr2 mapper] # cd/home/
[Root @ ora11gr2 home] # ll
Total 1025008
Drwx ------ 3 oracle oinstall 4096 Mar 18 oracle
-Rw-r -- 1 root 1048576000 Mar 19 00:14 swap

[Root @ ora11gr2 home] # free-m
Total used free shared buffers cached
Mem: 2026 1232 793 0 13 1127
-/+ Buffers/cache: 92 1934
Swap: 3047 0 3047

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.