Problems installing Oracle Database Express Edition 11g

前端 未结 7 2155
感动是毒
感动是毒 2021-02-19 13:14

I\'m trying to install Oracle Database in (X)ubuntu 13.04 64-bit using this guide. Everything goed well until I get to the following step:

$ sudo /etc/init.d/ora         


        
7条回答
  •  爱一瞬间的悲伤
    2021-02-19 13:34

    I had this exact issue with Ubuntu 14.04. The issue came down to Oracle-XE expecting sufficient space at /dev/shm while ubuntu has changed to using /run/shm with a symlink from /dev/shm.

    The solution that worked for me was to create the file /etc/rc2.d/S01shm_load containing:

    #!/bin/sh
    case "$1" in
    start)
        mkdir /var/lock/subsys 2>/dev/null
        touch /var/lock/subsys/listener
        rm /dev/shm 2>/dev/null
        mkdir /dev/shm 2>/dev/null
        mount -t tmpfs shmfs -o size=2048m /dev/shm ;;
    *)
        echo error
        exit 1
        ;;    
    esac
    

    I got this from http://sysadminnotebook.blogspot.de/2012/10/installing-oracle-11g-r2-express.html which is similar to many other pages on installing XE but was the only one with this solution.

    PS. The file permissions are set at 755 so you will need to execute:

    sudo chmod 755 /etc/rc2.d/S01shm_load

    to set the permissions on this file.

提交回复
热议问题