Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

In SQL*Plus, I try to run a script that is stored at a certain URL.

From where I am currently, I can http(s) connect with the internet only via a proxy.

So, if in SQL*Plus, I try

@https://here.is.url/script.sql

SQL*Plus won't find the script (as SQL*Plus doesn't seem to know about the proxy).

Is there a way to indicate what proxy to use and how to authenticate with that proxy?

share|improve this question
    
The usual way (at least for Unix) to set a proxy is to set the environment variable HTTP_PROXY. So try setting HTTP_PROXY=username:password@proxyhost - I imagine it'll work the same for windows –  Phil Mar 13 '14 at 8:51
    
Stupid comment system... You need http:// after the equals sign –  Phil Mar 13 '14 at 9:12
    
@Phil if you make your comment an answer, I can accept it. –  René Nyffenegger Mar 15 '14 at 9:40
    
Done, thanks René –  Phil Mar 15 '14 at 10:46

1 Answer 1

up vote 0 down vote accepted

Set the environment variable HTTP_PROXY.

HTTP_PROXY=http://username:password@proxyhost
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.