Ora­cle doesn't give direct down­loads to the Ora­cle soft­ware. You gen­er­ally forced to go through a few web pages to login to your Ora­cle account, then accept a license agree­ment, then finally get the files. With remote servers you would be forced to down­load the file locally then push it to the server. Ora­cle 11 is upwards of 1 GB, so this isn't fea­si­ble. Bet­ter yet is to down­load directly to your server. That said, it is really quite sim­ple — just use wget with authen­ti­ca­tion credentials.

This works as of Novem­ber 7, 2010. Future changes will break the links and pos­si­bly the authen­ti­ca­tion mech­a­nism, such as with a cookie-based authen­ti­ca­tion. If you really need to fake the down­load, do a packet cap­ture of a work­ing down­load and fig­ure out what authentication/cookies/headers are being exchanged. If you mock those up, you should be set.

Updated Jan­u­ary 24, 2010: Com­menter pointed out the double-dashes in the command-line argu­ments were being col­lapsed to 1, which makes it incor­rect. I fixed the HTML to force keep­ing the — where needed.

Updated July 21, 2011: This doesn't seem to work any­more. It looks like the have added another step which requires some extra authen­ti­ca­tion tokens. I might redo this some­time, but no guar­an­tees. You can try this, but don't expect it to work. Sorry!

How to use

change the user­name and pass­word below! Also, make sure wget is actu­ally installed and on your path. For Solaris it isn't, for some damn rea­son that always dri­ves me nuts.

Expla­na­tion of arguments

-c --tries=2 -O filename --user=; --password=

-v ver­bose
-c try to con­tinue if it fails and you restart
--tries=2 retry 2 times if it fails
-O <filename> save to a def­i­nite spe­cific filename
--user=<oracle_login_email@whatever.com> Ora­cle username
--password=<password> Ora­cle password

Linux 32-bit:

wget -v -c --tries=2 -O linux.x64_11gR2_database_1of2.zip --user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux_11gR2_database_1of2.zip

wget -v -c --tries=2 -O linux.x64_11gR2_database_2of2.zip --user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux_11gR2_database_2of2.zip

Linux 64-Bit:

wget -v -c --tries=2 -O linux.x64_11gR2_database_1of2.zip --user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zip

wget -v -c --tries=2 -O linux.x64_11gR2_database_2of2.zip --user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_2of2.zip

Solaris 64-Bit (x64 Intel):

wget -v -c --tries=2 -O linux.x64_11gR2_database_1of2.zip --user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/solaris/oracle11g/R2/solaris.x64_11gR2_database_1of2.zip

wget -v -c --tries=2 -O linux.x64_11gR2_database_2of2.zip --user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/solaris/oracle11g/R2/solaris.x64_11gR2_database_2of2.zip