问题总结
当浏览到Oracle 12c EM Express Web界面时,使用以下URL时页面超时:
- http(s)://主机名:5500 / em
- http(s)://hostname.domain:5500 / em
当使用包含IP地址或本地主机的url时,页面会加载,但加载速度非常慢(最多5分钟)。
- http(s):// ip地址/ em
- http(s):// localhost / em
使用主机名时,侦听器日志显示错误(多个错误):
03-DEC-2015 11:25:33 * http * (ADDRESS=(PROTOCOL=tcps)(HOST=<ip address>%14)(PORT=52925)) * handoff * http * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
使用IP地址或localhost时,侦听器日志未显示任何错误:
03-DEC-2015 11:23:39 * http * (ADDRESS=(PROTOCOL=tcps)(HOST=<ip address>)(PORT=52902)) * handoff * http * 0
这个问题在整个网络上都会出现(请参阅页脚中的参考资料),而且似乎没有人能够找到原因。我已尝试-可以找到所有建议,并在下面列出结果。我会让这个强大的社区对此有所帮助,然后由Oracle支持...
平台资讯
- Windows Server 2012 R2 x64
- 甲骨文12.1.0.2.0
- 具有两个可插拔数据库(PDB)的多租户容器数据库(CDB)
- 没有使用自动存储管理(ASM)
- 在完全禁用防火墙的情况下在服务器本地执行测试
测试已经执行
emctl
很多人会建议出于习惯检查“ emctl”。12c不存在此功能,因为它使用EM Express而不是数据库控制。
http / https
我已经设置,并针对http和https进行了测试。没有不同。
浏览器
我已经在IE 11,chrome和firefox的原始安装中对此进行了测试。没有启用附加组件。
数据库访问
CDB和PDB均可通过SQLPlus进行访问和查询
Telnet
打开到端口(例如5500)的telnet连接。
警报日志
Oracle警报日志不包含任何错误消息。
我的假设
- 与主机名查找有关,因为它在使用IP地址而不是主机名时工作-slighty-。
- 与证书有关的内容,尽管http也会出现相同的问题。
- 与XDB或侦听器服务的配置有关的内容。
- 是否包含与主机名的域部分有关的内容。因为这是大多数配置文件中添加的,但可能不是到处都存在?
详细的平台信息
注意:在这些代码段中,我始终将实际主机名替换为“ HOSTNAME”,并将实际域替换为“ domain”。如果使用“ HOSTNAME”,则表示该域名未尾随该域名。该案例代表显示主机名的实际案例。
SYS_CONTEXT('USERENV','SERVER_HOST')
主机名
CMD
HOSTNAME中的主机名变量
SYS_CONTEXT('USERENV','DB_DOMAIN')
域
dbms_xdb_config.gethttpsport()
5500
dbms_xdb_config.gethttpport()
2200
“ lsnrctl状态”输出
LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on 03-DEC-2015 15:33:12
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname.domain)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias listener
Version TNSLSNR for 64-bit Windows: Version 12.1.0.2.0 - Production
Start Date 03-DEC-2015 12:27:51
Uptime 0 days 3 hr. 5 min. 21 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\ORACLE\HOME\network\admin\listener.ora
Listener Log File C:\ORACLE\diag\tnslsnr\HOSTNAME\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOSTNAME.domain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOSTNAME.domain)(PORT=2200))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=HOSTNAME.domain)(PORT=5501))(Security=(my_wallet_directory=C:\ORACLE\admin\ecoomdb\xdb_wallet))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=HOSTNAME.domain)(PORT=5500))(Security=(my_wallet_directory=C:\ORACLE\admin\ecoomdb\xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "bibliodb.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Service "ecoomdb.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Service "ecoomdbXDB.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Service "technodb.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
The command completed successfully
“ lsnrctl服务”输出
LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on 03-DEC-2015 15:34:22
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HOSTNAME.domain)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "bibliodb.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:9 refused:0 state:ready
LOCAL SERVER
Service "ecoomdb.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:9 refused:0 state:ready
LOCAL SERVER
Service "ecoomdbXDB.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:8 refused:21 current:0 max:1022 state:ready
DISPATCHER <machine: HOSTNAME, pid: 4040>
(ADDRESS=(PROTOCOL=tcp)(HOST=HOSTNAME.domain)(PORT=49179))
Service "technodb.domain" has 1 instance(s).
Instance "ecoomdb", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:9 refused:0 state:ready
LOCAL SERVER
The command completed successfully
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\ORACLE\HOME)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\ORACLE\HOME\bin\oraclr12.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOSTNAME.domain)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
init.ora (已修剪,还包含其他设置...)
db_domain=domain
db_name="ecoomdb"
dispatchers="(PROTOCOL=TCP) (SERVICE=ecoomdbXDB)"
local_listener=LISTENER*
netstat -a
(相关选择)
TCP 0.0.0.0:1521 ECONECOOMDB1:0 LISTENING
TCP 0.0.0.0:5500 ECONECOOMDB1:0 LISTENING
TCP 0.0.0.0:5501 ECONECOOMDB1:0 LISTENING
TCP [::]:5500 ECONECOOMDB1:0 LISTENING
TCP [::]:5501 ECONECOOMDB1:0 LISTENING
Windows主机文件
(此文件为空)
环境变量
- PATH包含C:\ ORACLE \ HOME \ bin
- ORACLE_HOME = C:\ ORACLE \ HOME
- ORACLE_SID = ecoomdb
注册表 HKEY_LOCAL_MACHINE \ SOFTWARE \ ORACLE \ KEY_OraDB12Home1
- ORACLE_HOME = C:\ ORACLE \ HOME
- ORACLE_SID = ecoomdb
相关和重复(未回答)的问题/文档
在线资源
Stackexchange问题
- 无法打开/连接到Oracle 12c Enterprise Manager Express
- Oracle 12c企业管理器数据库Express的“无法显示页面”
- 在Windows 7中启动Oracle 12c企业管理器
- 如何运行ORACLE 12C EM?
- 无法访问Centos 6.5上的Oracle 12c Express企业管理器
Reddit线程
https://www.reddit.com/r/oracle/comments/2pq7wz/oracle_12c_express_enterprise_manager/
https://www.reddit.com/r/oracle/comments/29npk2/having_trouble_getting_enterprise_manager_express/
Oracle社区
- https://community.oracle.com/thread/3595774?start=0&tstart=0
- https://community.oracle.com/thread/2590962?start=0&tstart=0
- https://community.oracle.com/thread/3730316?start=0&tstart=0
- https://community.oracle.com/thread/3739356?start=0&tstart=0
- https://community.oracle.com/thread/3682977?start=0&tstart=0