OXAR icon indicating copy to clipboard operation
OXAR copied to clipboard

Only expand swapspace if necessary

Open martindsouza opened this issue 10 years ago • 5 comments

martindsouza avatar Feb 01 '15 01:02 martindsouza

May provide some ideas on how: http://stackoverflow.com/questions/22407678/check-if-swap-space-exist-in-bash May also need to look at entire free memory issue.

martindsouza avatar Apr 17 '15 11:04 martindsouza

My opinion is that if the system has swap in place then skip the swap setup completely. Ideally this is optional and user defined location and size but probably too complicated for the value. My vote is to disable if the system has swap already since its not mandatory for xe.

GasparYYC avatar Dec 27 '15 02:12 GasparYYC

@GasparYYC I agree with you but we're looking for the right command to detect both that saw is enabled and that it meets the minimum requirement. If not XE will fail to install.

martindsouza avatar Dec 27 '15 02:12 martindsouza

@martindsouza My mistake, I did not find SWAP as a requirement for xe but I looked at the Windows document and not the Linux. I agree, some logic needs to be in place for that work properly. As per installation guide: https://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL103

2.1.2 Swap Space Requirements Minimum swap space required for Oracle Database XE is 2 GB or twice the size of RAM, whichever is lesser.

GasparYYC avatar Dec 27 '15 03:12 GasparYYC

Interesting workaround for the swap issue in this Oracle XE dockerfile setup

https://github.com/pmdevel/oracle-xe/blob/master/Dockerfile#L13

  1. create backup of free command
  2. replace with script that always echos 2048
  3. execute the Oracle XE install
  4. restore the original free

zhudock avatar May 12 '17 16:05 zhudock