我按照此链接link1和link2在Ubuntu 14.04上安装Oracle 11g XE。完成所有步骤后,仍显示以下问题:
~$ sudo /etc/init.d/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.
每当我尝试在网络浏览器上打开oracle时,oracle仍然无法安装。
http://localhost:8081/apex/f?p=4950
BTW我也在我的电脑上安装了XAMPP。
更新:安装完成后我做了这个,但仍然是oracle不行。
usr@pc: cd /u01/app/oracle/product/11.2.0/xe/bin
usr@pc:/u01/app/oracle/product/11.2.0/xe/bin$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 01-JAN-2016 13:03:31
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/usr-pc/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=usr_pc)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 01-JAN-2016 13:03:31
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/usr-pc/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=usr-pc)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
usr@pc:/u01/app/oracle/product/11.2.0/xe/bin$ sqlplus
Error 46 initializing SQL*Plus
HTTP proxy setting has incorrect value
SP2-1502: The HTTP proxy server specified by http_proxy is not accessible
usr@pc:/u01/app/oracle/product/11.2.0/xe/bin$ echo $http_proxy
localhost
请建议我,我该如何修复它。如果需要任何进一步的信息,请告诉我。 谢谢:))
答案 0 :(得分:1)
我为您提供了从link章节“使用Docker安装Oracle XE”中提取的步骤。这是我向你保证的最简单的方式。祝你好运!
1 - 在Linux机器上安装Docker。您可以在http://docs.docker.io/en/latest/installation/ubuntulinux找到相关说明。但仅此而已:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker
2 - 将图像拉到您的机器上:
docker pull alexeiled/docker-oracle-xe-11g
3 - 运行图像:
docker run -d -p 49160:22 -p 49161:1521 -p 49162:8080 alexeiled/docker-oracle-xe-11g