The prompt "SWAPSIZEFAILED" is displayed when Oracle11gR2RAC is installed.

Source: Internet
Author: User
When ORACLE11gR2 is installed, the following message is displayed: SWAPSIZEFAILED. The size of SWAP space is smaller than that required by ORACLE.

When installing ORACLE 11g R2, the following message is displayed: swap size failed. The SIZE of SWAP space is smaller than that required by ORACLE.

When installing Oracle 11g R2, the following message is displayed: swap size failed. The SIZE of SWAP space is smaller than the SIZE of SWAP space required by ORACLE. You do not want to repartition the SWAP partition. Therefore, create a SWAP file and add 2 GB of file space.

1. Create a swap file. For example, create a swapfree file under/tmp as the swap file. Create # dd if =/dev/zero f = swapfree bs = 32 k count = 65515 (bs = 32 k indicates that each slice occupies 32 KB and reads 65515 + 0 segments, output 65515 + 0 segments) Note: The goal of the bs parameter is to specify the number of bytes read and input each time. Because the minimum disk access unit is sector, therefore, setting bs is equal to setting the size of each slice, while the count is used to specify how many slice can be used. therefore, the available hard disk space is equal to bs * count. the above example shows that the available hard disk space is 32*65515 = 2098532 (KB), or 2048 MB .) after the preceding command is executed, a MB swapfree file is created in the/tmp directory.

2. Run the mkswap command to format the myswap file and format it into the s file system before the system can use it. Switch to the/tmp directory and run the following command: # mkswap swapfree (# format the file as a swap file) setting up swapspace version 1, size = 262144 KB # swapon/tmp/swapfree (# Start swap partition) to stop using the newly created swap file, you only need to run the swapoff/tmp/swapfree command. If the swap file is no longer used, you can delete it.

3. Check swap # swapon-s. 4. automatically start the newly added swap partition at startup. If you need to execute the swapon command to start the swap partition or file after each boot, this is too troublesome. you can use the text editor to add a line to the/etc/fstab file so that swap partitions and files can be automatically started at startup: /dec/hdb5 swap defaults 0 0 (start this swap partition at boot)/tmp/swapfree swap defaults 0 0 (start this swap file at boot ).

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.