Oracle XE Database Configuration failed

前端 未结 9 1942
离开以前
离开以前 2020-12-31 14:08

I am trying to create an oracle xe database in my vps.

VPS OS : Cent OS.

When try to run

/etc/init.d/oracle-xe configure

i

相关标签:
9条回答
  • 2020-12-31 14:48

    After googling 'oracle sucks' in frustration over the lack of logging from the installation I managed to resolve the issue that caused the configuration to fail on a docker container running the Hortonworks HDP 2.6 Sandbox:

    Oracle XE requires 1 Gb of shared memory and fails otherwise (I didn't try 512 mb) according to https://blogs.oracle.com/oraclewebcentersuite/implement-oracle-database-xe-as-docker-containers.

    vi /etc/fstab
    

    change/add the line to:

    tmpfs    /dev/shm     tmpfs   defaults,size=1024m 0 0
    

    Then reload the configuration by:

    mount -a
    

    Keep in mind that if you later restart the docker container you might have to do 'mount -a' once more as it starts with the default set on the container ~ 65 mb.

    Normally the failed configuration will have succeeded in creating a listener and you will have to kill this before rerunning configuration.

    ps -aux | grep tnslsnr
    kill {process identified in the step above}
    
    0 讨论(0)
  • 2020-12-31 14:50

    Lost a full day to this one as none of the other answers on this page worked for me (Ubuntu).
    Proper instructions where here

    The main trick missing from other tutorials was to execute

    sed -i 's,/var/lock/subsys,/var/lock,' /etc/init.d/oracle-xe
    

    before

    /etc/init.d/oracle-xe configure
    
    0 讨论(0)
  • 2020-12-31 14:53

    Ok the solution may sound weird but today i got the exactly same error while installing Oracle Xe on centos. I struggled a lot to find the answer but in the end the problem was the way i was installing the rpm.

    Initailly i used the command

    $rpm -ivh oracle-xe.rpm
    

    and somehow it was giving the same error which you are getting.

    After that i tried

    $rpm -i oracle-xe.rpm 
    

    and it worked for me. Not very sure why will the "h" flag, which is the hash flag cause an issue but it worked for me.

    0 讨论(0)
  • 2020-12-31 14:54

    check the permissions for: /u01/

    In my case these were set to root:root I changed this to oracle:dba and it worked for me.

    But before that I tried the following:

    1. Setting up the IP/hostname in the /etc/hosts
    2. installing bc and reinstalling oracle

    both the steps did not work for me but I uninstalled and reinstalled oracle-xe, changed permissions and then ran the command for configure.

    0 讨论(0)
  • 2020-12-31 14:55
    yum install bc
    

    Then try again.

    0 讨论(0)
  • 2020-12-31 14:56

    for debian ... how to install oracle-XE from rpm

    Configuring database... Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details

    nano /u01/app/oracle/product/11.2.0/xe/config/scripts/init.ora
    

    comment # memory_target=100663296

    /etc/init.d/oracle-xe configure // will work 
    
    0 讨论(0)
提交回复
热议问题