trying to change swap space

I want to setup  oracle10g express edition,but with error like:
"This system does not meet the minimum requirements for swap space.  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 space on the system and retry the installation."
So i try to change my swap space.
first:use the fdisk to expands swap space
#fdisk -l
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         130                              83  Linux swap
/dev/sda2   *         151        1305     9277537+  83  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         150     1204843+  83  Linux
/dev/sda2   *         151        1305     9277537+  83  Linux
then
#mkswap /dev/sda1
god ,only 949M swap space,  i failed to expand the swap space? anything problem?
i don't know ,what  can do is 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 space expands to 512*2=1024M
then i install ora10g express edition successfully

note:use parted instead of fdisk
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值