Problems installing Oracle Database Express Edition 11g

前端 未结 7 2233
感动是毒
感动是毒 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:37

    nano /etc/init.d/oracle-shm
    

    add text

    #! /bin/sh 
    # /etc/init.d/oracle-shm 
    # 
    case "$1" in 
    start) 
    echo "Starting script /etc/init.d/oracle-shm" 
    # Run only once at system startup  
    if [ -e /dev/shm/.oracle-shm ]; then 
    echo "/dev/shm is already mounted, nothing to do" 
    else 
    rm -f /dev/shm 
    mkdir /dev/shm 
    mount --move /run/shm /dev/shm 
    mount -B /dev/shm /run/shm 
    touch /dev/shm/.oracle-shm 
    fi 
    ;; 
    stop) 
    echo "Stopping script /etc/init.d/oracle-shm" 
    echo "Nothing to do" 
    ;; 
    *) 
    echo "Usage: /etc/init.d/oracle-shm {start|stop}" 
    exit 1 
    ;; 
    esac 
    # 
    ### BEGIN INIT INFO 
    # Provides: oracle-shm 
    # Required-Start: $remote_fs $syslog 
    # Required-Stop: $remote_fs $syslog 
    # Default-Start: 2 3 4 5 
    # Default-Stop: 0 1 6 
    # Short-Description: Bind /run/shm to /dev/shm at system startup. 
    # Description: Fix to allow Oracle 11g use AMM. 
    ### END INIT INFO
    

    make the file executable

    chmod 755 /etc/init.d/oracle-shm
    /etc/init.d/oracle-shm start
    

    At this stage reboot, then check

    df -kh /dev/shm
    

    further proceed to emulate chkconfig and continue with rest of configuration and install

    dpkg -i oracle-xe-11.2.0-1.0.x86_64.deb
    

    Check the environment variables and ORACLE_HOME and start database

提交回复
热议问题