Search This Blog

Total Pageviews

Sunday, 10 March 2019

Oracle Patch download Script

Oracle Patch download Script..


from 
https://blog.pythian.com/getmospatch-sh-downloading-patches-from-my-oracle-support/


mkdir -p /home/grid/PATCH

cd /home/grid/PATCH
-bash-4.2$ ls -ltr
total 0
To download the script 
-bash-4.2$ wget --no-check-certificate -nv https://raw.github.com/MarisElsins/TOOLS/master/Shell/getMOSPatch.sh
2019-03-10 11:07:05 URL:https://raw.githubusercontent.com/MarisElsins/TOOLS/master/Shell/getMOSPatch.sh [6818/6818] -> "getMOSPatch.sh" [1]

-bash-4.2$ ls -ltr
total 8
-rw-r--r-- 1 grid oinstall 6818 Mar 10 11:07 getMOSPatch.sh


-bash-4.2$ chmod u+x getMOSPatch.sh

-bash-4.2$ ./getMOSPatch.sh reset=yes

This version of getMOSPatch is obsolete
Download getMOSPatch V2 from: https://github.com/MarisElsins/getMOSPatch/raw/master/getMOSPatch.jar
Check the README for the new version here: https://github.com/MarisElsins/getMOSPatch/blob/master/README.md
Read my blog post about it here: http://bit.ly/getMOSPatchV2

Oracle Support Userid: anuj@kumarsingh.com
Oracle Support Password:

Getting the Platform/Language list
Available Platforms and Languages:
537P - Acme Packet 1100
529P - Acme Packet 3820
540P - Acme Packet 3900
530P - Acme Packet 4500
538P - Acme Packet 4600
534P - Acme Packet 6100
531P - Acme Packet 6300
551P - Acme Packet 6350
527P - Acme Packet OS
512P - Apple iOS
293P - Apple Mac OS X (Intel) (32-bit)
522P - Apple Mac OS X (Intel) (64-bit)
421P - Apple Mac OS X (PowerPC)
516P - Embedded Linux ARM
521P - Embedded Linux on cnMIPS
519P - Embedded Linux on POWER e500v2
517P - Embedded Linux on POWER Systems
515P - Embedded Linux x86
228P - FreeBSD - x86
361P - Fujitsu BS2000
312P - Fujitsu BS2000/OSD (SQ series)
285P - Fujitsu BS2000/OSD (SX series)
504P - Fujitsu MSP-EX
513P - Google Android
549P - HP NonStop (Guardian) on x86
548P - HP NonStop (OSS) on x86
304P - HP NonStop Itanium (Guardian)
308P - HP NonStop Itanium (OSS)
303P - HP NonStop S-series (Guardian)
89P - HP OpenVMS Alpha
243P - HP OpenVMS Itanium
1P - HP OpenVMS VAX
87P - HP Tru64 UNIX
197P - HP-UX Itanium
278P - HP-UX Itanium (32-bit)
999P - HP-UX PA-RISC (32-bit)
59P - HP-UX PA-RISC (64-bit)
299P - ia64
319P - IBM AIX on POWER Systems (32-bit)
212P - IBM AIX on POWER Systems (64-bit)
43P - IBM i on POWER Systems
211P - IBM S/390 Based Linux (31-bit)
30P - IBM z/OS on System z
314P - IBM z/VM on System z
227P - IBM: Linux on POWER Big Endian Systems
542P - IBM: Linux on POWER Little Endian Systems
209P - IBM: Linux on System z
297P - iTron
528P - Linux ARM 32-bit VFP HardFP ABI
523P - Linux ARM 32-bit VFP SoftFP ABI
541P - Linux ARM 64-bit
214P - Linux Itanium
525P - Linux SPARC
46P - Linux x86
226P - Linux x86-64
99999P - Metadata-Only Patch
912P - Microsoft Windows (32-bit)
208P - Microsoft Windows Itanium (64-bit)
539P - Microsoft Windows Phone
233P - Microsoft Windows x64 (64-bit)
276P - Monta Vista x86
277P - Monta Vista x86-64
536P - Net-Net 4250
533P - Net-Net 9200
547P - Netra Server X5-2 for Communications
535P - Netra X3-2 for Acme Packet
1234P - NLS Generic Platform
2234P - NLS Merged Translations
3234P - NLS Pseudo Translation
313P - OpenSolaris
309P - Oracle JRockit Virtual Edition x86 (32-bit)
311P - Oracle JRockit Virtual Edition x86-64 (64-bit)
506P - Oracle Solaris Express
453P - Oracle Solaris on SPARC (32-bit)
23P - Oracle Solaris on SPARC (64-bit)
173P - Oracle Solaris on x86 (32-bit)
267P - Oracle Solaris on x86-64 (64-bit)
511P - QNX UNIX
28P - SCO UNIX
505P - SPARC
550P - StorageTek Hardware
619P - Stratus PA-RISC VOS
26P - Symbian EPOC
532P - Tekelec
316P - Unisys OS 2200
520P - VxWorks
280P - x86 32 bit
282P - x86 64 bit
67L - Albanian (SQ)
8L - Arabic (AR)
26L - Brazilian Portuguese (PTB)
101L - Bulgarian (BG)
3L - Canadian French (FRC)
102L - Catalan (CA)
103L - Croatian (HR)
66L - Cyrillic Kazakh (CKK)
62L - Cyrillic Serbian (CSR)
30L - Czech (CS)
5L - Danish (DK)
6L - Dutch (NL)
118L - ESTONIAN (ET)
7L - Finnish (SF)
2L - French (F)
4L - German (D)
104L - Greek (EL)
107L - Hebrew (IW)
28L - Hungarian (HU)
106L - Icelandic (IS)
46L - Indonesian (IN)
108L - Italian (I)
15L - Japanese (JA)
16L - Korean (KO)
29L - Latin American Spanish (ESA)
63L - Latin Serbian (LSR)
119L - LATVIAN (LV)
109L - Lithuanian (LT)
10L - Norwegian (N)
110L - Polish (PL)
18L - Portuguese (PT)
111L - Romanian (RO)
112L - Russian (RU)
14L - Simplified Chinese (ZHS)
113L - Slovak (SK)
114L - Slovenian (SL)
11L - Spanish (E)
13L - Swedish (S)
115L - Thai (TH)
117L - Traditional Chinese (ZHT)
116L - Turkish (TR)
37L - UK English (GB)
39L - Ukrainian (UK)
43L - Vietnamese (VN)
999L - Worldwide Spanish (ESW)
Comma-delimited list of required platform and language codes: 226P
Configuration saved


Then download the patch <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
export mosUser=anuj@kumarsingh.com


-bash-4.2$ ./getMOSPatch.sh patch=6880880

This version of getMOSPatch is obsolete
Download getMOSPatch V2 from: https://github.com/MarisElsins/getMOSPatch/raw/master/getMOSPatch.jar
Check the README for the new version here: https://github.com/MarisElsins/getMOSPatch/blob/master/README.md
Read my blog post about it here: http://bit.ly/getMOSPatchV2

Oracle Support Userid: anuj@kumarsingh.com
Oracle Support Password:

Getting list of files for patch 6880880 for "Linux x86-64"
1 - p6880880_180000_Linux-x86-64.zip
2 - p6880880_122010_Linux-x86-64.zip
3 - p6880880_121010_Linux-x86-64.zip
4 - p6880880_112000_Linux-x86-64.zip
5 - p6880880_139000_Generic.zip
6 - p6880880_132000_Generic.zip
7 - p6880880_111000_Linux-x86-64.zip
8 - p6880880_131000_Generic.zip
9 - p6880880_101000_Linux-x86-64.zip
10 - p6880880_102000_Linux-x86-64.zip
Comma-delimited list of files to download: 4
Files to download:
  p6880880_112000_Linux-x86-64.zip

Downloading the patches:
Downloading file p6880880_112000_Linux-x86-64.zip ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  107M  100  107M    0     0  1636k      0  0:01:07  0:01:07 --:--:-- 2424k
p6880880_112000_Linux-x86-64.zip completed with status: 0


-bash-4.2$ ls -ltr
total 110436
-rwxr--r-- 1 grid oinstall      6818 Mar 10 11:07 getMOSPatch.sh
-rw-r--r-- 1 grid oinstall 113078049 Mar 10 11:14 p6880880_112000_Linux-x86-64.zip

-bash-4.2$ cksum p6880880_112000_Linux-x86-64.zip
4055346380 113078049 p6880880_112000_Linux-x86-64.zip


-bash-4.2$ sha1sum p6880880_112000_Linux-x86-64.zip
7d624f2c6e81e98ed1485d495662036e51a5fc94  p6880880_112000_Linux-x86-64.zip



=================================
or 

wget --http-user=anuj@kumarsingh.com --http-password=ddd123 --no-check-certificate --output-document=p10098816_112020_Linux-x86-64_1of7.zip "https://updates.oracle.com/Orion/Download/download_patch/p10098816_112020_Linux-x86-64_1of7.zip?patch_password=patch_password"

--2019-03-10 12:24:55--  https://updates.oracle.com/Orion/Download/download_patch/p10098816_112020_Linux-x86-64_1of7.zip?patch_password=patch_password
Resolving updates.oracle.com (updates.oracle.com)... 141.146.44.51
Connecting to updates.oracle.com (updates.oracle.com)|141.146.44.51|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?site2pstoretoken=v1.2~160FF995E106EA9714~8D0A22FE2C0CBD614F04D19FEA88A53D78F9954F04816E181484CAA80A566BAA1A2EFD28316BD8C3B0133BC7159DC65CEC527F56E841EAA7DC42AF58E98AEE3AB032165C789EEDC4720336389AC663828F2E0CD56959D0A1E42D51B77160905D341E9494E28B345838ECA86AB9D4224CDDC5669151D20DE08DF91326BF890E5EE039F40233C6865965D62F8BE3D3A2281B2159D14D46E8F969CB7B52108F6CB9204CED6D2C6FF975F0E4CE4B4C83C6CA659FADC24631AB453D3ED2DB9E8D7712201A8BF47DB7CFF0BB27DC58BEDBDF3C41BC533DBA3B7FD3D25CF19FEA93981634A67E1944C40EC6EBCF876004A73312A89565A58BFA0B08945B37955E4D4056 [following]
--2019-03-10 12:24:56--  https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?site2pstoretoken=v1.2~160FF995E106EA9714~8D0A22FE2C0CBD614F04D19FEA88A53D78F9954F04816E181484CAA80A566BAA1A2EFD28316BD8C3B0133BC7159DC65CEC527F56E841EAA7DC42AF58E98AEE3AB032165C789EEDC4720336389AC663828F2E0CD56959D0A1E42D51B77160905D341E9494E28B345838ECA86AB9D4224CDDC5669151D20DE08DF91326BF890E5EE039F40233C6865965D62F8BE3D3A2281B2159D14D46E8F969CB7B52108F6CB9204CED6D2C6FF975F0E4CE4B4C83C6CA659FADC24631AB453D3ED2DB9E8D7712201A8BF47DB7CFF0BB27DC58BEDBDF3C41BC533DBA3B7FD3D25CF19FEA93981634A67E1944C40EC6EBCF876004A73312A89565A58BFA0B08945B37955E4D4056
Resolving login.oracle.com (login.oracle.com)... 209.17.4.8


password hide
 wget --http-user=anuj@kumarsingh.com --ask-password  "https://updates.oracle.com/Orion/Services/download/p27968010_121020_Linux-x86-64.zip?aru=22331652&patch_file=p27968010_121020_Linux-x86-64.zip" -O p27968010_121020_Linux-x86-64.zip



Oracle DBA

anuj blog Archive