【问题标题】:Oracle APEX not working on CentOS 7Oracle APEX 无法在 CentOS 7 上运行
【发布时间】:2016-04-22 20:16:46
【问题描述】:

我刚刚在带有 Oracle XE 的 VM 中安装了 CentOs 7 最低版本的服务器。

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

我已经配置了远程访问,如下:

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

我如何知道 APEX 服务正在运行?

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

【问题讨论】:

  • 尝试127.0.0.1:8080/apex 的 wget 以查看它是否可以从 localhost 获得。您可能有不同的端口号。您可以在数据库中查询 SELECT dbms_xdb.gethttpport FROM dual;

标签: oracle oracle-apex oracle-xe


【解决方案1】:

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

即没有为 apex 运行的侦听器

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

检查是否设置:

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

【讨论】:

    猜你喜欢
    • 2018-12-05
    • 1970-01-01
    • 2015-06-13
    • 2015-06-08
    • 2020-06-08
    • 2014-10-25
    • 1970-01-01
    • 2018-11-25
    • 1970-01-01
    相关资源
    最近更新 更多