[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/ ,如需转载,请注明出处,否则将追究法律责任。