ITPub博客

首页 > 数据库 > Oracle > [20141119]环境变量http_proxy与sqlplus

[20141119]环境变量http_proxy与sqlplus

原创 Oracle 作者:lfree 时间:2014-11-19 10:26:54 0 删除 编辑

[20141119]环境变量http_proxy与sqlplus.txt

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

实际上我们设置一般如下:
$ export http_proxy="proxy-server:port"

--如果调用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"

--这样就可以两者兼顾了。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-1338581/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7969584