Downloading Oracle Fusion Middleware Repository in AWS instance.
Oracle acknowledged the need of implementers and provided the wget.sh script to download software in AWS instance.
Simply following these steps I was able to easily download oracle softwares in AWS instance.
- goto https://edelivery.oracle.com/ and sign in (signup if not have account already) and accept the agreement
- check Programs and search for Oracle Identity and Access Management Suite Plus for Oracle Applications*, Select Platform x86 64 bit and click Continue
- Select Alternate Release…
- from dropdown menu Oracle Identity and Access Management Suite Plus 11.1.2.1 for linux x86-64* and click Continue
- I have reviewed and accept the terms of the Commercial License, Special Programs License, and/or Trial License. click Continue
- click WGET Options and download wget.sh
- Edit wget.sh file and remove un-related files that you dont want to download, for example i need 12 zip file for oracle fusion middleware for linux x86-64, i removed all other wget commands from wget.sh file. My wget.sh file look like following:
#####################################################################
################## wget.sh starts #######################################
#!/bin/sh
#
# Generated onMon Jan 25 12:24:14 PST 2016# Start of user configurable variables
#
LANG=C
export LANG
# SSO username and password
read -p 'SSO User Name:' SSO_USERNAME
read -sp 'SSO Password:' SSO_PASSWORD
# Path to wget command
WGET=/usr/bin/wget
# Location of cookie file
COOKIE_FILE=/tmp/$$.cookies
# Log directory and file
LOGDIR=.
LOGFILE=$LOGDIR/wgetlog-`date +%m-%d-%y-%H:%M`.log
# Output directory and file
OUTPUT_DIR=.
#
# End of user configurable variable
#
if [ "$SSO_PASSWORD " = " " ]
then
echo "Please edit script and set SSO_PASSWORD"
exit
fi
# Contact osdc site so that we can get SSO Params for logging in
SSO_RESPONSE=`$WGET --user-agent="Mozilla/5.0" --no-check-certificate https://edelivery.oracle.com/osdc/faces/SearchSoftware 2>&1|grep Location`
# Extract request parameters for SSO
SSO_TOKEN=`echo $SSO_RESPONSE| cut -d '=' -f 2|cut -d ' ' -f 1`
SSO_SERVER=`echo $SSO_RESPONSE| cut -d ' ' -f 2|cut -d '/' -f 1,2,3`
SSO_AUTH_URL=/sso/auth
AUTH_DATA="ssousername=$SSO_USERNAME&password=$SSO_PASSWORD&site2pstoretoken=$SSO_TOKEN"
# The following command to authenticate uses HTTPS. This will work only if the wget in the environment
# where this script will be executed was compiled with OpenSSL. Remove the --secure-protocol option
# if wget was not compiled with OpenSSL
# Depending on the preference, the other options are --secure-protocol= auto|SSLv2|SSLv3|TLSv1
$WGET --user-agent="Mozilla/5.0" --secure-protocol=auto --post-data $AUTH_DATA --save-cookies=$COOKIE_FILE --keep-session-cookies $SSO_SERVER$SSO_AUTH_URL -O sso.out >> $LOGFILE 2>&1
rm -f sso.out
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76184-01_1of4.zip&token=TlNMemNnVW5OcHdsRXZmbjhOZlNzUSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MDU2OSZhcnU9MTg4OTM4NDcmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDM" -O $OUTPUT_DIR/V76184-01_1of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76184-01_2of4.zip&token=ZTI5WUp1WFhOd1FvTlgxZy95c2xnUSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MDU3MiZhcnU9MTg4OTM4NDcmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDM" -O $OUTPUT_DIR/V76184-01_2of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76184-01_3of4.zip&token=UHNQeUluK3NJclVZeXpEeURWT0tkdyE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MDU3NiZhcnU9MTg4OTM4NDcmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDM" -O $OUTPUT_DIR/V76184-01_3of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76184-01_4of4.zip&token=Wk9hMUc2bUxJaGxyVjBKc3p0TGEzUSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MDc5NCZhcnU9MTg4OTM4NDcmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDM" -O $OUTPUT_DIR/V76184-01_4of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76185-01_1of4.zip&token=b0FnYlZzNGM5Qk9UZHhRWWFCVkwydyE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTA3OSZhcnU9MTg4OTM4NDgmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDQ" -O $OUTPUT_DIR/V76185-01_1of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76185-01_2of4.zip&token=YWVrUmZwa0RvdGQ0aVBVSFQvYXBpUSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTE2MCZhcnU9MTg4OTM4NDgmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDQ" -O $OUTPUT_DIR/V76185-01_2of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76185-01_3of4.zip&token=VmRxQ3FNRDBHMEkzQ2NvaXRIQmxTUSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTE5NyZhcnU9MTg4OTM4NDgmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDQ" -O $OUTPUT_DIR/V76185-01_3of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76185-01_4of4.zip&token=NTF2OGpiZFRueTkySDJiRkRVcDQ4USE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTMzOCZhcnU9MTg4OTM4NDgmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MDQ" -O $OUTPUT_DIR/V76185-01_4of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76186-01_1of4.zip&token=YWpxcmQ4aFRaNXFxK1lXYThPbkcrQSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MDgxNiZhcnU9MTg4OTM4NDkmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MTM" -O $OUTPUT_DIR/V76186-01_1of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76186-01_2of4.zip&token=K2YyZ0VtNzFiQ0FzMm1wOVlTNnc5ZyE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTA3NyZhcnU9MTg4OTM4NDkmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MTM" -O $OUTPUT_DIR/V76186-01_2of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76186-01_3of4.zip&token=NExlNkZpM09FYUc1MmpDN0NrTW1aQSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTA3OCZhcnU9MTg4OTM4NDkmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MTM" -O $OUTPUT_DIR/V76186-01_3of4.zip >> $LOGFILE 2>&1
$WGET --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V76186-01_4of4.zip&token=eUdXYUlPbEZsaUorb1ljY01MZWo3QSE6OiF1c2VybmFtZT1FUEQtRU5HUi5NSUFOQFlBSE9PLkNPTSZ1c2VySWQ9NzA3MTI5MCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVBLJmVtYWlsQWRkcmVzcz1lbmdyLm1pYW5AeWFob28uY29tJmZpbGVJZD03OTU0MTA4MCZhcnU9MTg4OTM4NDkmYWdyZWVtZW50SWQ9OTM5Mjg2JnNvZnR3YXJlQ2lkcz05OTU4NyZwbGF0Zm9ybUNpZHM9MzUmcHJvZmlsZUluc3RhbmNlQ2lkPTM3MzQ4MiZtZWRpYUNpZD0zNTk0MTM" -O $OUTPUT_DIR/V76186-01_4of4.zip >> $LOGFILE 2>&1
#################################################################################
########## wget.sh ends############################################################
8- chmod 777 wget.sh
9- ./wget.sh
enter your oracle account credentials
10- open new session, tail the log files to see the progress.
Itsss too Fast...!