2016-01-17 35 views
2

我刚刚在装有Oracle XE的VM中安装了CentOs 7最小服务器。Oracle APEX无法在CentOS 7上工作

所有安装都很顺利,但我无法从远程IP(我的主机)访问APEX。 CentOS是最小的,我没有GNOME尝试从本地主机浏览器访问。

从来就配置远程访问,如下:

SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE); 

这里是侦听器的状态:

$ lsnrctl status 

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 17-JAN-2016 12:22:15 

Copyright (c) 1991, 2011, Oracle. All rights reserved. 

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    17-JAN-2016 11:48:31 
Uptime     0 days 0 hr. 33 min. 44 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/localhost/listener/alert/log.xml 
Listening Endpoints Summary... 
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE))) 
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))) 
Services Summary... 
Service "PLSExtProc" has 1 instance(s). 
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... 
Service "XE" has 1 instance(s). 
    Instance "XE", status READY, has 1 handler(s) for this service... 
Service "XEXDB" has 1 instance(s). 
    Instance "XE", status READY, has 1 handler(s) for this service... 
The command completed successfully 

我怎样才能知道顶点服务正在运行?

如何启动并从远程计算机访问?

+2

尝试http://127.0.0.1:8080/apex的wget来看看它是可用从本地主机。您可能有不同的端口号。你可以在数据库中查询SELECT dbms_xdb.gethttpport FROM dual; –

回答

0

您在Endpoint摘要中缺少“(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))”。

即没有监听器运行顶点

begin 
    dbms_xdb.sethttpport ('8080'); 
end; 

要检查它的设置:

select dbms_xdb.gethttpport as "HTTP-Port" from dual;