Oracle XE数据库配置失败

ana*_*dan 10 database vps oracle-xe oracle11g

我正在尝试在我的vps中创建一个oracle xe数据库.

VPS OS:Cent OS.

当试图运行

/etc/init.d/oracle-xe configure
Run Code Online (Sandbox Code Playgroud)

它会引发错误数据库容错失败并检查日志但日志只显示ORA-01034:ORACLE不可用

以下是历史......

[root@vmcx-43 Disk1]# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
Preparing...                ########################################### [100%]
/var/tmp/rpm-tmp.51363: line 186: bc: command not found
   1:oracle-xe              /var/tmp/rpm-tmp.51363: line 186: bc: command not fo                                        und########################################### [100%]
Executing post-install steps...

/var/tmp/rpm-tmp.97984: line 76: bc: command not found
/var/tmp/rpm-tmp.97984: line 77: bc: command not found
/var/tmp/rpm-tmp.97984: line 78: [: -gt: unary operator expected
/var/tmp/rpm-tmp.97984: line 82: bc: command not found

You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

[root@vmcx-43 Disk1]# /etc/init.d/oracle-xe configure

Oracle Database 11g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 11g Express
Edition.  The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts.  Press <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:

Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts.  Note that the same
password will be used for SYS and SYSTEM.  Oracle recommends the use of
different passwords for each database account.  This can be done after
initial configuration:
Password can't be null. Enter password:
Password can't be null. Enter password:
Confirm the password:

Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]: n

Starting Oracle Net Listener...Done
Configuring database...
Database Configuration failed.  Look into /u01/app/oracle/product/11.2.0/xe/config/log for details

[root@vmcx-43 Disk1]# cd /u01/app/oracle/product/11.2.0/xe/config/log
[root@vmcx-43 log]# ls
CloneRmanRestore.log  cloneDBCreation.log  postDBCreation.log  postScripts.log

[root@vmcx-43 log]# tail postScripts.log


commit
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0


[root@vmcx-43 log]# tail CloneRmanRestore.log


select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
Run Code Online (Sandbox Code Playgroud)

Jor*_*ido 22

将服务器名称和IP添加到/ etc/hosts文件中


小智 8

yum install bc
Run Code Online (Sandbox Code Playgroud)

然后再试一次.


小智 8

我有同样的问题.

我卸载了oracle-xe.请参见如何在Linux上重新配置Oracle 10g xe

然后跟着

yum install bc
rpm -i oracle-xe.rpm
/etc/init.d/oracle-xe configure
Run Code Online (Sandbox Code Playgroud)

一切都很顺利.


vat*_*sal 6

好的解决方案可能听起来很奇怪,但今天我在centos上安装Oracle Xe时遇到了完全相同的错误.我努力寻找答案但最终问题是我安装rpm的方式.

我初次使用了这个命令

$rpm -ivh oracle-xe.rpm
Run Code Online (Sandbox Code Playgroud)

并且它以某种方式给出了你得到的同样的错误.

之后我试过了

$rpm -i oracle-xe.rpm 
Run Code Online (Sandbox Code Playgroud)

它对我有用.不太确定为什么"h"标志,即哈希标志会引起问题,但它对我有用.