爱生活,爱分享


环境变量http_proxy sqlplus(SP2-1502)

haiten 2019-09-08 772浏览 0条评论
首页/正文
分享到: / / / /

原文链接:http://blog.itpub.net/267265/viewspace-1338581/

以前也遇到,就是在 linux 下设置代理上网会与 sqlplus 相冲突的问题。

现象

实际上我们设置一般如下:

nano /etc/profile
------------------------------------------------------
$ export http_proxy="proxy-server:port"
------------------------------------------------------
source /etc/profile

如果调用sqlplus会出现如下错误。

$ sqlplus sys as sysdba 
Error 46 initializing SQL*Plus 
HTTP proxy setting has incorrect value 
SP2-1502: The HTTP proxy server specified by http_proxy is not accessible

解决办法

方法1:

$ unset {http,https,ftp}_proxy

方法2: 实际上正确的定义http_proxy如下,加入开头http://.

$ export http_proxy="http://proxy-server:port" 
$ export https_proxy="https://proxy-server:port" 
$ export ftp_proxy="http://proxy-server:port"

或者:

$ export {http,https,ftp}_proxy="http://proxy-server:port"

这样就可以两者兼顾了。

最后修改:2019-09-08 13:13:27 © 著作权归作者所有
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付

上一篇

发表评论

说点什么吧~

评论列表

还没有人评论哦~赶快抢占沙发吧~