Oracle XE Database Configuration failed

元气小坏坏 提交于 2019-11-30 09:03:02

Add your servers name and IP to the /etc/hosts file

Blazer
yum install bc

Then try again.

user3682840

I had same issues.

I uninstalled oracle-xe. See How to reconfigure Oracle 10g xe on Linux

Then followed

yum install bc
rpm -i oracle-xe.rpm
/etc/init.d/oracle-xe configure

Everything went fine.

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.

I too faced the similar issue on Linux Mint 17.3. Fortunately, I found the solution sooner. The issue is simply that your shared memory file is not where Oracle expects it to be i.e. /dev/shm but you'd be having it at /run/shm with /dev/shm linking to it.

So, to resolve this issue, before configuring the database, you must perform the below steps in order

$ sudo rm -rf /dev/shm
$ sudo mkdir /dev/shm
$ sudo mount -t tmpfs shmfs -o size=2048m /dev/shm

I have tested it, works perfect.

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 

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}

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
Siddharth Singh Bisht

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!