我刚刚在带有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服务正在运行?
如何启动它并从远程计算机访问?
答案 0 :(得分:0)
您在端点摘要中缺少“(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;