gpt4 book ai didi

windows - Oracle 在没有设置 http_proxy 变量的地方抛出 SP2-1502

转载 作者:可可西里 更新时间:2023-11-01 09:40:49 36 4
gpt4 key购买 nike

我在尝试通过 sqlplus 连接到 Oracle 数据库时遇到问题。

命令行如下所示:

C:\oracle\product\11.2.0\client_1>sqlplus
Error 46 initializing SQL*Plus
HTTP proxy setting has incorrect value
SP2-1502: The HTTP proxy server specified by http_proxy is not accessible

C:\oracle\product\11.2.0\client_1>http_proxy
'http_proxy' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.

根据 this blog post !它似乎在提示 http_proxy 变量的值,但这个变量甚至不存在于客户端机器中。

有人在 Windows 上遇到过同样的问题吗?


编辑:

对不起各位。我将 http_proxy 设置为用户变量。我只是想以错误的方式看待它。

错误:

C:\Users\ilson.bolzan>http_proxy

右:

C:\Users\ilson.bolzan>echo %http_proxy%

最佳答案

我在 Linux 上遇到了同样的问题。

当我取消设置 'http_proxy' 环境变量时

unset http_proxy
or
export http_proxy=

问题重复出现。

我发现,“no_proxy”环境变量破坏了这个案例。

我为 http_proxy 设置了正确的值

http_proxy=http://localhost:3128/

但是我也有 no_proxy=localhost,127.0.0.0/8,::1

我取消了“no_proxy”环境变量的设置,sqlplus 开始按预期工作。

关于windows - Oracle 在没有设置 http_proxy 变量的地方抛出 SP2-1502,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19929691/

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