gpt4 book ai didi

oracle10g - Oracle Express 11g 上的 "Get Started"错误

转载 作者:行者123 更新时间:2023-12-04 06:25:31 25 4
gpt4 key购买 nike

这是我的第一篇文章,所以我会尽量做到描述性。如果有什么遗漏,请告诉我:

所以我尝试安装 Oracle Express 11g,在我下载 zip 文件“OracleXE112_Win32”之后 - 我解压它,然后打开磁盘 1 然后安装。我完成了整个安装过程,没有任何问题。但是,当我打开“入门”时,遇到以下错误:

“Windows 找不到 'http:/.127.0.0.1:%HTTPPORT%/apex/f?p=4950'。确保您输入的名称正确,然后再试一次。-- 谷歌搜索后,我被告知要更改%HTTPPORT% 到 8080。

如果我在单击“开始使用”时执行此操作,则会显示以下错误:
“Firefox 无法与位于 127.0.0.1:8080 的服务器建立连接。”

我需要它来工作,以便我迟早可以将它连接到我的 eclipse ,以便我可以开始为我的 Java 编程类(class)做作业。非常感谢任何帮助,非常感谢!

最佳答案

我已经找到了解决这个问题的方法。为了解释我的解决方案,我使用了一些别名来指代我的真实参数。这些是:

[ME] = my user name
[MYHOST] = my current workstation hostname (netbios name as well)
[MYHOST.mycompany.com] = my worksation's fully qualified domain name

一开始我遇到了和上面提到的一样的情况:即使安装成功,我也无法连接到apex服务。

首先,我使用了 tnsping oracle 实用程序:
C:\Users\ME>tnsping MYHOST

这是答案:
TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=
(PROTOCOL=TCP)(HOST=fe80::5d34:78a:5862:64%20)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=fe80::c27:54a4:1600:86a4%26)(PORT=1521))(ADDRESS=
(PROTOCOL=TCP)(HOST=fe80::38ab:cdb4:dd77:7ed9%12)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)
(HOST=10.9.32.208)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.1)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.106)(PORT=1521)))

TNS-12541: TNS:no listener

您可以在上面看到许多当前处于事件状态的不同 IP 地址。只有最重要的 127.0.0.1 丢失了。我在笔记本电脑上工作,所以网络“几乎总是”在变化(WLAN、3G、HSDPA、以太网等),只有本地主机是固定的。这就是麻烦的真实情况。 (当我在连接到办公网络的办公环境中工作时,它也在工作。)

当我遇到这种情况时,我也开始使用 lsnrctl oracle 实用程序。
我看到了以下内容:
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Default Service XE
Listener Parameter File /oraclexe/app/oracle/product/11.2.0/server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\MYHOST\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MYHOST.mycompany.com)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

可以看到8080端口的apex服务丢失了!!!
我也试过正常的 ping,它工作得很好:

C:\Users\ME>ping MYHOST.mycompany.com

结果是:
MYHOST.mycompany.com [fe80::c27:54a4:1600:86a4%26] ping
response fe80::c27:54a4:1600:86a4%26: time<10 ms
...

你可以意识到IPv6地址也存在于我的tnsping试验中。

所以我决定直接在我的本地主机文件中定义 MYHOST:
127.0.0.1       localhost MYHOST MYHOST.mycompany.com

现在用 ping 测试:
C:\Users\ME>ping MYHOST

答案是:
MYHOST.mycompany.com [127.0.0.1] ping:
response 127.0.0.1: byte=32 time<10 ms. TTL=128
...

在这一点上,我已经重新启动(停止并再次启动)两个正在运行的 Oracle 服务(只是肯定的):
OracleServiceXE
OracleXETNSListener

看看奇迹:
C:\Users\ME>lsnrctl

LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production

LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Default Service XE
Listener Parameter File /oraclexe/app/oracle/product/11.2.0/server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\MYHOST\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MYHOST.mycompany.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MYHOST.mycompany.com)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>

您可以看到带有 PORT=8080 和 service XE instance 的重要行。
所以我很高兴入门 URL 又可以使用了。

关于oracle10g - Oracle Express 11g 上的 "Get Started"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7941118/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com