Total Pageviews

Friday 6 February 2015

To download oracle software or patch using Wget on Linux box

To download oracle software or patch directly on client’s Linux server you may use the below steps :

1. Add  Cookies.txt Extension in your crome browser. You can get is from crome web store  https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en
2. One extension  will be added to google crome on top right side of browser .
3. Go to the oracle download page , login using the metalink id and Accept License Agreement .and click on the software binary to start download on your machine .
4. Now capture the cookies by Clicking on Cookies.txt extension . It will show you something like below :

# HTTP Cookie File for domains related to oracle.com.
# This content may be downloaded or pasted into a cookies.txt file and used by wget
# Example:  wget -x --load-cookies cookies.txt http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-2240591.html
#
www.oracle.com FALSE   /technetwork/database/enterprise-edition/downloads      FALSE   0       testSessionCookie      Enabled
.oracle.com    TRUE    /       FALSE   1425008363     s_nr    1422416363929
.support.oracle.com    TRUE    /       FALSE   1580104749     mos.notifications        false
.oracle.com    TRUE    /       FALSE   1425097299.611 Order_MarketingInfluencer        WWOUSEOGOOGLECOIN
.oracle.com    TRUE    /       FALSE   1425097299.611054        Order_MarketingCampaignSuccess WWOUSEOGOOGLECOIN
.oracle.com    TRUE    /       FALSE   1425097299.611086      p_mcc        WWOUSEOGOOGLECOIN:NA:WWOUSEOGOOGLECOIN
.oracle.com    TRUE    /       FALSE   1737865303     optimizelyEndUserId        oeu1422505303647r0.8225775167811662


5. Just click on the “downloaded” link to download the cookies.txt file on your PC .
6. Copy the cookies.txt file to client’s linux server in the directory where you want to download the oracle software .
7. Issue the below command to download :


[root@linux12c grid_12c]# wget -x --load-cookies cookies.txt http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zip

--2015-02-05 13:39:44--  http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zip
Resolving download.oracle.com... 64.145.87.72, 64.145.87.11
Connecting to download.oracle.com|64.145.87.72|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/akam/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zip [following]
--2015-02-05 13:39:44--  https://edelivery.oracle.com/akam/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zip
Resolving edelivery.oracle.com... 23.76.230.140
Connecting to edelivery.oracle.com|23.76.230.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zip?AuthParam=1423161704_f18babafa52442c5aec7ead56289003a [following]
--2015-02-05 13:39:44--  http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zip?AuthParam=1423161704_f18babafa52442c5aec7ead56289003a
Reusing existing connection to download.oracle.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 1747043545 (1.6G) [application/zip]
Saving to: âdownload.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zipâ

100%[=========================================================================================================================================================>] 1,747,043,545 11.0M/s   in 2m 43s

2015-02-05 13:42:35 (10.2 MB/s) - âdownload.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_1of2.zipâ

[root@linux12c grid_12c]# wget -x --load-cookies cookies.txt http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zip
--2015-02-05 13:45:11--  http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zip
Resolving download.oracle.com... 64.145.87.72, 64.145.87.11
Connecting to download.oracle.com|64.145.87.72|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/akam/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zip [following]
--2015-02-05 13:45:11--  https://edelivery.oracle.com/akam/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zip
Resolving edelivery.oracle.com... 23.76.230.140
Connecting to edelivery.oracle.com|23.76.230.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zip?AuthParam=1423162031_de94d7ea4c7ca02b6a1986593b23227a [following]
--2015-02-05 13:45:11--  http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zip?AuthParam=1423162031_de94d7ea4c7ca02b6a1986593b23227a
Reusing existing connection to download.oracle.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 646972897 (617M) [application/zip]
Saving to: âdownload.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zipâ

100%[===========================================================================================================================================================>] 646,972,897 4.57M/s   in 2m 5s

2015-02-05 13:47:19 (4.93 MB/s) - âdownload.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_grid_2of2.zipâ

8. Verify the size of files downloaded and checksum : match the cksum with value from oracle website
 
Oracle Database 12c Release 1 Grid Infrastructure (12.1.0.2.0) for Linux x86-64
 
linuxamd64_12c_grid_1of2.zip (1,747,043,545 bytes) (cksum - 1194876808)
 
linuxamd64_12c_grid_2of2.zip (646,972,897 bytes) (cksum - 2519919927)


wget executes under directory /staging/grid_12c/ and Files will be downloaded under : /staging/grid_12c/download.oracle.com/otn/linux/oracle12c/121020

[root@linux12c 121020]# ls -lrth
total 2.3G
-rw-r--r--. 1 root root 1.7G Jul 11  2014 linuxamd64_12102_grid_1of2.zip
-rw-r--r--. 1 root root 618M Jul 11  2014 linuxamd64_12102_grid_2of2.zip
[root@linux12c 121020]#
[root@linux12c 121020]# cksum linuxamd64_12102_grid_1of2.zip
1194876808 1747043545 linuxamd64_12102_grid_1of2.zip
[root@linux12c 121020]# cksum linuxamd64_12102_grid_2of2.zip
2519919927 646972897 linuxamd64_12102_grid_2of2.zip
[root@linux12c 121020]# pwd
/staging/grid_12c/download.oracle.com/otn/linux/oracle12c/121020

Or we can use directly as below :

wget --http-user="myMetalinkID@xyz.com" --http-password="MyPassword" --output-document="p21419221_121020_Linux-x86-64_1of10.zip" "https://updates.oracle.com/Orion/Download/process_form/p21419221_121020_Linux-x86-64_1of10.zip?file_id=81606884&aru=19220015&userid=o-myMetalinkID@xyz.com&email=myMetalinkID@xyz.com&patch_password=&patch_file=p21419221_121020_Linux-x86-64_1of10.zip"


wget --http-user="myMetalinkID@xyz.com" --http-password="MyPassword" --output-document="p21419221_121020_Linux-x86-64_2of10.zip" "https://updates.oracle.com/Orion/Download/process_form/p21419221_121020_Linux-x86-64_2of10.zip?file_id=81606884&aru=19220015&userid=o-myMetalinkID@xyz.com&email=myMetalinkID@xyz.com&patch_password=&patch_file=p21419221_121020_Linux-x86-64_2of10.zip"

1 comment:

  1. Jadwal Cockfight SV388 2 Maret 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Judi Sabung Ayam - Sabtu, Aceh 2 Maret 2019 – Kami Selaku Agen Sabung Ayam 2018 Akan Memberikan Informasi Mengenai Jadwal Cockfight SV388 2 Maret 2019.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete