{"id":369,"date":"2017-04-14T11:46:08","date_gmt":"2017-04-14T07:16:08","guid":{"rendered":"http:\/\/www.enhisecure.com\/isecureblog\/?p=369"},"modified":"2017-04-14T11:46:08","modified_gmt":"2017-04-14T07:16:08","slug":"solved-http-proxy-setting-has-incorrect-value","status":"publish","type":"post","link":"https:\/\/www.enhisecure.com\/isecureblog\/2017\/04\/14\/solved-http-proxy-setting-has-incorrect-value\/","title":{"rendered":"Solved: &#8220;HTTP proxy setting has incorrect value&#8221;"},"content":{"rendered":"<p><strong>Environment:<\/strong><\/p>\n<p>OS: <a href=\"https:\/\/www.oracle.com\/linux\/index.html\">Oracle Linux 7.0<\/a><\/p>\n<p>Java: <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/8-whats-new-2157071.html\">jdk1.8<\/a><\/p>\n<p>DB: <a href=\"http:\/\/docs.oracle.com\/cd\/E11882_01\/index.htm\">Oracle Database 11G R2<\/a><\/p>\n<p>DB Installed mode: Single Instance Server<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Problem Statement:<\/strong><\/p>\n<p>A connection to an <a href=\"https:\/\/docs.oracle.com\/cd\/B19306_01\/server.102\/b14220\/intro.htm\">Oracle database<\/a>, via <a href=\"https:\/\/en.wikipedia.org\/wiki\/Command-line_interface\">CLI<\/a> mode, may be achieved using the following commands in a <a href=\"http:\/\/linuxcommand.org\/learning_the_shell.php\">Linux Shell<\/a>.<\/p>\n<p>Start the listener by typing below command:<\/p>\n<p><strong>&gt;lsnrctl start<\/strong><\/p>\n<p>Start the database by typing below command:<\/p>\n<p><strong>&gt;sqlplus sys as sysdba<\/strong><\/p>\n<p><strong>&gt;startup<\/strong><\/p>\n<p>Error:<\/p>\n<p><strong>Error 46 initializing SQL*Plus<br \/>\nHTTP proxy setting has incorrect value<br \/>\nSP2-1502: The HTTP proxy server specified by http_proxy is not accessible.<\/strong><\/p>\n<div id=\"attachment_370\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-370\" class=\"wp-image-370 size-large\" src=\"http:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic1-1024x583.jpg\" alt=\"HTTP proxy setting has incorrect value error\" width=\"640\" height=\"364\" srcset=\"https:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic1-1024x583.jpg 1024w, https:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic1-300x171.jpg 300w, https:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic1.jpg 1103w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><p id=\"caption-attachment-370\" class=\"wp-caption-text\">Error: HTTP proxy setting has incorrect value<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><strong>Reasoning:<\/strong><\/p>\n<p>In the above error message, \u201cHTTP proxy server specified by http_proxy variable\u201d, the specified value is incorrect.The error may have occurred because sqlplus uses the <a href=\"https:\/\/wiki.archlinux.org\/index.php\/proxy_settings\">http_proxy<\/a> and <a href=\"https:\/\/wiki.archlinux.org\/index.php\/proxy_settings\">no_proxy<\/a> environment variables to determine if proxy is used. To bypass the proxy settings, both these values need to be unset or exported.<\/p>\n<p>http_proxy: Specify the value to use as the HTTP proxy for all connections.<\/p>\n<p>For example: http_proxy=\u201chttp:\/\/proxy.mycompany.com:8080\u201d<\/p>\n<p>no_proxy: Determine hosts that should bypass the proxy.<\/p>\n<p>For example: no_proxy=localhost, mycompany.com, 192.168.0.10:80 so it can\u2019t access this proxy.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Solution<\/strong>&#8211;<\/p>\n<p>First check the proxy settings , it should be correct value or unset it if no proxy is needed. SQL*Plus may get the proxy name from the environment variable <a href=\"https:\/\/wiki.archlinux.org\/index.php\/proxy_settings\">http_proxy<\/a>.This problem could be resolved by using the following commands \u2013<\/p>\n<p><strong>&gt;unset http_proxy<\/strong><\/p>\n<p><strong>&gt;unset no_proxy<\/strong><\/p>\n<p>Or<\/p>\n<p><strong>&gt;export http_proxy=<\/strong><\/p>\n<p><strong>&gt;export no_proxy=<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-371 size-full\" src=\"http:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic2.jpg\" alt=\"HTTP proxy setting has incorrect value issue resolved\" width=\"898\" height=\"626\" srcset=\"https:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic2.jpg 898w, https:\/\/www.enhisecure.com\/isecureblog\/wp-content\/uploads\/2017\/04\/pic2-300x209.jpg 300w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Environment: OS: Oracle Linux 7.0 Java: jdk1.8 DB: Oracle Database 11G R2 DB Installed mode: Single Instance Server &nbsp; Problem Statement: A connection to an Oracle database, via CLI mode, may be achieved using the following commands in a Linux Shell. Start the listener by typing below command: &gt;lsnrctl start Start the database by typing [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[70,72],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-technology","tag-http-proxy","tag-http-proxy-setting-has-incorrect-value"],"_links":{"self":[{"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/comments?post=369"}],"version-history":[{"count":3,"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/posts\/369\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/media?parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/categories?post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.enhisecure.com\/isecureblog\/wp-json\/wp\/v2\/tags?post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}