getMOSPatch.sh - Downloading Patches From My Oracle Support
- the script looks up each of the patches for each platform and language and:
- if one patch is found - it is automatically downloaded
- if multiple patches are found (this can happen if the same patch is available for multiple releases) - the tool will ask you to choose which patches to download.
- you can also specify parameter download=all to download all found patches without being asked to choose ones from the list.
- you can also specify parameter regexp to apply filters to the filenames of the looked up patches. This is especially useful for Apps DBAs as filter regexp=".*A_R12.*" would be helpful for e-Business Suite Release 12.0 and regexp=".*B_R12.*" - for R12.1.
- if you set environment variables mosUser and mosPass before running the script you won't be asked to enter the user credentials.
- downloading the latest CPU patch (patch 16902043, OCT2013) for 11gR2. [code light="true" highlight="1,2,3"] [oracle@mel1 Patches]$ ./getMOSPatch.sh patch=16902043 Oracle Support Userid: elsins@pythian.com Oracle Support Password: Getting patch 16902043 for "Linux x86-64" p16902043_112030_Linux-x86-64.zip completed with status: 0 Getting patch 16902043 for "German (D)" no patch available [/code]
- Downloading the latest patch for OPatch (there are multiple patches available on the same platform): [code light="true" highlight="1,2,3,12"] [oracle@mel1 Patches]$ export mosUser=elsins@pythian.com [oracle@mel1 Patches]$ ./getMOSPatch.sh patch=6880880 Oracle Support Password: Getting patch 6880880 for "Linux x86-64" 1 - p6880880_112000_Linux-x86-64.zip 2 - p6880880_111000_Linux-x86-64.zip 3 - p6880880_121010_Linux-x86-64.zip 4 - p6880880_131000_Generic.zip 5 - p6880880_101000_Linux-x86-64.zip 6 - p6880880_102000_Linux-x86-64.zip Comma-delimited list of files to download: 3 p6880880_121010_Linux-x86-64.zip completed with status: 0 Getting patch 6880880 for "German (D)" no patch available [oracle@mel1 Patches]$ [/code]
- Downloading multiple patches at the same time without prompting user to specify which files to download if multiple files are found. (don't be confused that files with "LINUX" and not "Linux-x86-64" in the filename are downloaded here. These are e-Business Suite patches and both 32b and 64b platforms have the same patch): [code light="true" highlight="1,2,3"] [oracle@mel1 Patches]$ ./getMOSPatch.sh patch=10020251,10141333 download=all Oracle Support Userid: elsins@pythian.com Oracle Support Password: Getting patch 10020251 for "Linux x86-64" p10020251_R12.AR.B_R12_LINUX.zip completed with status: 0 p10020251_R12.AR.A_R12_LINUX.zip completed with status: 0 Getting patch 10020251 for "German (D)" p10020251_R12.AR.A_R12_d.zip completed with status: 0 Getting patch 10141333 for "Linux x86-64" p10141333_R12.AR.A_R12_LINUX.zip completed with status: 0 p10141333_R12.AR.B_R12_LINUX.zip completed with status: 0 Getting patch 10141333 for "German (D)" p10141333_R12.AR.B_R12_d.zip completed with status: 0 p10141333_R12.AR.A_R12_d.zip completed with status: 0 [/code]
- Downloading the same patches as in the previous example with an additional filter for e-Business Suite 12.1 patches only: [code light="true" highlight="1,2,3" wrap="yes"] [oracle@mel1 Patches]$ ./getMOSPatch.sh regexp=".*B_R12.*" patch=10020251,10141333 download=all Oracle Support Userid: elsins@pythian.com Oracle Support Password: Getting patch 10020251 for "Linux x86-64" p10020251_R12.AR.B_R12_LINUX.zip completed with status: 0 Getting patch 10020251 for "German (D)" no patch available Getting patch 10141333 for "Linux x86-64" p10141333_R12.AR.B_R12_LINUX.zip completed with status: 0 Getting patch 10141333 for "German (D)" p10141333_R12.AR.B_R12_d.zip completed with status: 0 [/code]
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Moving Your Oracle Database to the Cloud? Why Google Cloud Could Be a Good Fit

Moving Your Oracle Database to the Cloud? Why Google Cloud Could Be a Good Fit
Apr 19, 2022 12:00:00 AM
4
min read
3 Tips on Using dg4odbc on 64-bit Linux
3 Tips on Using dg4odbc on 64-bit Linux
Mar 26, 2008 12:00:00 AM
6
min read
Database 12c: What's New with Data Pump? Lots.
Database 12c: What's New with Data Pump? Lots.
Aug 20, 2013 12:00:00 AM
16
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.