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

Amit Bansal

Experienced professional with 16 years of expertise in database technologies. In-depth knowledge of designing and implementation of Disaster Recovery / HA solutions, Database Migrations , performance tuning and creating technical solutions. Skills: Oracle,MySQL, PostgreSQL, Aurora, AWS, Redshift, Hadoop (Cloudera) , Elasticsearch, Python

This Post Has 12 Comments

  1. jametong

    Very good tips, so many times, I have to use links (a text based url browser to download something on linux command line. thx.

  2. Bradd Piontek

    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).

  3. inoideas

    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

    1. Amit

      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..


  4. Deepak

    Thanks a lot Amit. Very useful doc. Please update something more like this.

  5. Koushik

    Only 3 kb of zip file is downloaded…not full zip file is getting downloaded…..

    1. Amit Bansal


      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.