我有CentOS6.5,并安装了Oracle 12c。正如dbca实用程序所述,在配置新db之后,Express应该在https://hostname:5500/em上可用--实际上,它不是。无论是在本地主机上还是在ip上。我还做了SQL> EXEC dbms_xdb_config.sethttpport(5501);,因为DBMS_XDB.GETHTTPPORT()显示了"0",而设置5500是不可能的,因为错误- 5500似乎很忙。在那之后,我尝试了端口和不同的主机名-没有任何工作。
DB正在运行,下面是lsnrctl status的输出(我删除了listener.ora以确保它没有错误,但输出是相同的):
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 18-JAN-2015
10:27:42
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the
LISTENER
------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production Start Date
18-JAN-2015 10:27:20 Uptime 0 days 0 hr. 0 min. 21
sec Trace Level off Security ON: Local
OS Authentication SNMP OFF Listener Log File
/u01/app/oracle/diag/tnslsnr/hpsa/listener/alert/log.xml Listening
Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hpsa)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hpsa)(PORT=5501))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=hpsa)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/main/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary... Service "main" has 1 instance(s). Instance
"main", status READY, has 1 handler(s) for this service... Service
"mainXDB" has 1 instance(s). Instance "main", status READY, has 1
handler(s) for this service... The command completed successfully另外,这里是我的/etc/主机:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain
localhost6 localhost6.localdomain6
192.168.56.101 hpsa hpsa.hpsa hpsa.localdomain node1主机名:
[root@hpsa ~]# hostname
hpsa.hpsa我现在对https://192.168.56.101:5501/em所拥有的一切:浏览器显示它们连接到主机并试图检索数据,但几分钟后我就会得到连接重置。火狐还显示了ssl_error_rx_record_too_long
我做错了什么?
发布于 2015-01-20 08:06:21
如果没有配置,则需要检查企业经理速递经理并对其进行配置:
SELECT DBMS_XDB_CONFIG.gethttpport FROM dual; -- check the HTTP port number
GETHTTPPORT
------------------
port number
SELECT DBMS_XDB_CONFIG.gethttpsport FROM dual; -- check the HTTPS port number
GETHTTPSPORT
------------
5500
EXEC DBMS_XDB_CONFIG.sethttpsport(5500);
PL/SQL procedure successfully completed. --the expected result在此之后,您需要确保端口已启用(如果存在,则通过iptables和外部防火墙打开),然后尝试使用URL,如下所示:
https://<hostname>:<port>/em/如果没有修复它,请尝试重新加载侦听器,然后再试一次。
发布于 2019-05-10 01:55:32
centos7几乎关闭了所有端口,检查防火墙关闭的端口,例如:
firewall-cmd --get-active-zones如果你的非军事区是S“公众”,试试这个:
firewall-cmd --zone=public --add-port=5500/tcp --permanent对我来说,我的工作是在防火墙规则中打开5500端口。
https://dba.stackexchange.com/questions/89574
复制相似问题