Create Swap Space on Amazon EC2 ImagePosted: February 4, 2012
I am creating an Oracle XE database server in Amazon, I know that Amazon has Oracle RDS but I need an inexpense solution for this particular application.
Upon downloading the oracle-xe rpm and trying to install it discovered that you need a swap file space. How therefore do you create a swap file space ?????
dd if=/dev/zero of=/swapfile bs=1024 count=1048576
( this should give you 1024MB but in the Amazon world it registers 1023MB AAAARRRGGGHHHH !!!!!) I therefore used the following
Please note to delete a swap file use
dd if=/dev/zero of=/swapfile bs=1536 count=1572864
I found this on a site burried away and thought I would add this to post to bolster the chances of you finding something 🙂