Downloading from oracle.com using wget is simple.
-First go to downloads.oracle.com and select the software to be downloaded
-Log in with your account and accecpt the license
-Copy the download link to your clipboard
-Find your cookies.txt in your $HOME
$ wget --load-cookies=$HOME/.mozilla/default/.../cookies.txt -c [your url]
-Now you should be able to download the software
-This should also work for other sites.