Trying to change swap spaces

Source: Internet
Author: User
Tags oracle database
I want to the Setup oracle10g Express edition,but with the error like:
"This system does not meet the minimum requirements for swap spaces. Based on
The amount of physical memory available on the system, Oracle Database 10g
Express Edition requires 1008 MB of swap space. This system has 949 MB
of swap space. Configure more swap spaces on the system and retry the installation.
So I try to change my swap space.
First:use the Fdisk to expands swap spaces
#fdisk-L
Device Boot Start End Blocks Id System
/DEV/SDA1 1 130 Linux Swap
/DEV/SDA2 * 151 1305 9277537+ Linux

#swap off
#shutdown-R Now
Enter into failsafe mode,and I don ' t use swap off again
Then
#fdisk/DEV/SDA
DELETE/DEV/SDA1 then RECREATE/DEV/SDA1
#fdisk-L
Device Boot Start End Blocks Id System
/DEV/SDA1 1 1204843+ Linux
/DEV/SDA2 * 151 1305 9277537+ Linux
Then
#mkswap/dev/sda1
God, only 949M swap spaces, I failed to expand the swap spaces? Anything problem?
I don ' t know, what can do are trying to expand the swap space using/swapfile.
After Reboot.use
# Cat/proc/swaps
Filename Type Size Used Priority
/DEV/SDA1 Partition 971892 0-1
#dd If=/dev/zero of=/swapfile bs=1024 count=76800
#mkswap/swapfile
#swapon/swapfile
#free
Total used free shared buffers Cached
mem:516400 442116 74284 0 36372 299932
-/+ buffers/cache:105812 410588
swap:1048684 0 1048684

My swap spaces expands to 512*2=1024m
Then I install ora10g Express Edition successfully

Note:use parted instead of Fdisk
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.