无法在 Ubuntu 13.04 上启动 Oracle XE 11gR2 Net Listener 和数据库

无法在 Ubuntu 13.04 上启动 Oracle XE 11gR2 Net Listener 和数据库

我一直按照设置步骤进行本文用于在 Ubuntu 13.04 上安装 Oracle XE 11g R2。环境变量 PATH、ORACLE_HOME、ORACLE_SID、NLS_LANG ORACLE_BASE 均已正确设置。

simongao:~ 06:16:38$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/simongao/adt-bundle-linux-x86_64-20130219/sdk/platform-tools:/u01/app/oracle/product/11.2.0/xe/bin
simongao:~ 06:18:36$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/xe
simongao:~ 06:23:29$ echo $ORACLE_SID
XE
simongao:~ 06:23:35$ echo $ORACLE_BASE
/u01/app/oracle
simongao:~ 06:23:37$ sudo echo $LD_LIBRARY_PATH
/u01/app/oracle/product/11.2.0/xe/lib
simongao:~ 06:23:48$ echo $NLS_LANG
/u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh

但是,当我尝试启动该服务时,收到以下错误信息。

simongao:~ 06:18:40$ sudo service oracle-xe start
Starting Oracle Net Listener.
Starting Oracle Database 11g Express Edition instance.
Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle Express Database using /u01/app/oracle/product/11.2.0/xe/bin/sqlplus.

答案1

我在虚拟盒中运行的 Ubuntu 13 上遇到了同样的问题。

尝试先创建一个名为 oracle 的系统用户

这为我解决了上述问题,但我无法运行“sqlplus sys as sysdba”。即便如此,我还是能够使用“sqlplus tns-user/password@remote-address”连接到远程主机

相关内容