Downloading Oracle Software directly to Server

This article is based on Pythian’s aricle DOWNLOADING FROM OTN DIRECTLY TO YOUR DATABASE SERVER.

Article tell’s about using lynx (text based web browser available on linux) to generate the cookies file which can be then used with wget to download software. But when I tried to use lynx , it repeatedly gave error for javascript.  On searching net , I found a firefox extension “Export Cookies” which creates wget compatible cookies.

You can find the extension at

After you install the extension, clear your cookies and then login to and sign in. After you have done this,  go to Tools -> Export cookies and save the file.

Then you can copy the file to your server and use wget to download the software. Syntax is

wget –load-cookies=cookies.txt <otn_url>

E.g To download 11gr2 Grid infrastructure software for linux x86-64 bit

wget --load-cookies=cookies.txt

12 thoughts on “Downloading Oracle Software directly to Server

  1. Great update to Pythian’s blog. I had been meaning to write something similar for downloading from and My oracle Support (no cookies involved, and is much simpler , works like a champ. We’ll see how my June shapes up for blogging).

  2. Pingback: Log Buffer #191, A Carnival of the Vanities for DBAs | The Pythian Blog

  3. I tried but got the below error msg

    wget .load-cookies=cookies.txt –user-agent Mozilla/4.0
    –06:03:49– http://.load-cookies=cookies.txt/
    => `index.html’
    Resolving .load-cookies=cookies.txt… failed: Name or service not known.
    => `’
    Connecting to||:80… connected.
    HTTP request sent, awaiting response… 400 Bad Request
    06:03:49 ERROR 400: Bad Request.

    where do i need to upload cookies.txt

    • Upload the cookies.txt file in same directory from where you are running the wget command.
      Did you try downloading from OTN site ? Not sure if it works on the above site..


    • Koushik,

      I think most likely you have not generated cookies file correctly. Send me mail on amit.bansal [at] with your output. Remove at with @.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.