<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Retrieving Oracle patches with wget</title>
	<atom:link href="http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/feed/" rel="self" type="application/rss+xml" />
	<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/</link>
	<description>Oracle stuff.  Some Linux and Mac stuff.  ALTER TABLE blog DISABLE UNIQUE (content_type);</description>
	<lastBuildDate>Thu, 04 Mar 2010 19:02:10 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Log Buffer #170: a Carnival of the Vanities for DBAs &#124; The Pythian Blog</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-2965</link>
		<dc:creator>Log Buffer #170: a Carnival of the Vanities for DBAs &#124; The Pythian Blog</dc:creator>
		<pubDate>Fri, 20 Nov 2009 17:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-2965</guid>
		<description>[...] you like staying on top of fresh things, perhaps John Piwowar&#8217;s method of retrieving Oracle patches with wget would also appeal to [...]</description>
		<content:encoded><![CDATA[<p>[...] you like staying on top of fresh things, perhaps John Piwowar&#8217;s method of retrieving Oracle patches with wget would also appeal to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpiwowar</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-2940</link>
		<dc:creator>jpiwowar</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-2940</guid>
		<description>Hi James,
Great, I&#039;m glad this is useful for you. :-)  One way to get around doing search and replace on the ampersands in the patch URL is to enclose the entire URL in single quotes when you pass it to your shell script.  

As an example, I put the getOraPatch function in a shell script as you did:

zathras:bin jpiwowar$ cat gop.sh
#!/bin/bash
function getOraPatch {
   [[ $mosUser ]] &#124;&#124; read -p &quot;Oracle Support Userid: &quot; mosUser;
   [[ $mosPass ]] &#124;&#124; read -sp &quot;Oracle Support Password: &quot; mosPass;
   fname=`echo $1 &#124; awk -F&quot;=&quot; &#039;{print $NF;}&#039;`;
   wget --no-check-certificate --http-user $mosUser --http-passwd $mosPass $1 -O $fname;
}

getOraPatch $1

Then, invoking the shell script with the URL in single quotes:

zathras:bin jpiwowar$ ./gop.sh &#039;http://updates.oracle.com/Orion/Download/process_form/p6809246_R12_GENERIC.zip?file_id=24754884&amp;aru=10006133&amp;userid=&#111;&#45;&#109;&#101;&#64;&#109;&#121;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&amp;email=&#109;&#101;&#64;&#109;&#121;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&amp;patch_password=&amp;patch_file=p6809246_R12_GENERIC.zip&#039;

--lots of wget output snipped -- 
HTTP request sent, awaiting response... 200 OK
Length: 7206368 (6.9M) [application/zip]
Saving to: `p6809246_R12_GENERIC.zip&#039;

100%[======================================&gt;] 7,206,368   1.14M/s   in 6.5s    

2009-11-18 07:14:48 (1.06 MB/s) - `p6809246_R12_GENERIC.zip&#039; saved [7206368/7206368]



Regards,

John P.</description>
		<content:encoded><![CDATA[<p>Hi James,<br />
Great, I'm glad this is useful for you. <img src='http://only4left.jpiwowar.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   One way to get around doing search and replace on the ampersands in the patch URL is to enclose the entire URL in single quotes when you pass it to your shell script.  </p>
<p>As an example, I put the getOraPatch function in a shell script as you did:</p>
<p>zathras:bin jpiwowar$ cat gop.sh<br />
#!/bin/bash<br />
function getOraPatch {<br />
   [[ $mosUser ]] || read -p "Oracle Support Userid: " mosUser;<br />
   [[ $mosPass ]] || read -sp "Oracle Support Password: " mosPass;<br />
   fname=`echo $1 | awk -F"=" '{print $NF;}'`;<br />
   wget --no-check-certificate --http-user $mosUser --http-passwd $mosPass $1 -O $fname;<br />
}</p>
<p>getOraPatch $1</p>
<p>Then, invoking the shell script with the URL in single quotes:</p>
<p>zathras:bin jpiwowar$ ./gop.sh 'http://updates.oracle.com/Orion/Download/process_form/p6809246_R12_GENERIC.zip?file_id=24754884&amp;aru=10006133&amp;userid=&#111;&#45;&#109;&#101;&#64;&#109;&#121;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&amp;email=&#109;&#101;&#64;&#109;&#121;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&amp;patch_password=&amp;patch_file=p6809246_R12_GENERIC.zip'</p>
<p>--lots of wget output snipped --<br />
HTTP request sent, awaiting response... 200 OK<br />
Length: 7206368 (6.9M) [application/zip]<br />
Saving to: `p6809246_R12_GENERIC.zip'</p>
<p>100%[======================================&gt;] 7,206,368   1.14M/s   in 6.5s    </p>
<p>2009-11-18 07:14:48 (1.06 MB/s) - `p6809246_R12_GENERIC.zip' saved [7206368/7206368]</p>
<p>Regards,</p>
<p>John P.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-2938</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 18 Nov 2009 10:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-2938</guid>
		<description>Absolutely awesome! Using it as I write this.

A couple of things to note about the script (that I had to do to get it to work or that I just changed):

1- I created a shellscript instead of putting it in my &quot;profile&quot;. Obviously, I then had to call the function at the bottom of the script. So it ended up like this:

===
# Function to retreive patches from Metalink/My Oracle Support via wget
function getOraPatch {
   [[ $mosUser ]] &#124;&#124; read -p &quot;Oracle Support Userid: &quot; mosUser;
   [[ $mosPass ]] &#124;&#124; read -sp &quot;Oracle Support Password: &quot; mosPass;
   fname=`echo $1 &#124; awk -F&quot;=&quot; &#039;{print $NF;}&#039;`;
   wget --no-check-certificate --http-user $mosUser --http-passwd $mosPass $1 -O $fname;
}

getOraPatch $1

===

(I&#039;m hoping none of the characters got replaced by WordPress).

2- I had to search and replace the ampersands (&amp; or &amp; ) in the download url to get the script not to &quot;go into the background&quot;.

But other than that, like I said, absolutely brilliant!</description>
		<content:encoded><![CDATA[<p>Absolutely awesome! Using it as I write this.</p>
<p>A couple of things to note about the script (that I had to do to get it to work or that I just changed):</p>
<p>1- I created a shellscript instead of putting it in my "profile". Obviously, I then had to call the function at the bottom of the script. So it ended up like this:</p>
<p>===<br />
# Function to retreive patches from Metalink/My Oracle Support via wget<br />
function getOraPatch {<br />
   [[ $mosUser ]] || read -p "Oracle Support Userid: " mosUser;<br />
   [[ $mosPass ]] || read -sp "Oracle Support Password: " mosPass;<br />
   fname=`echo $1 | awk -F"=" '{print $NF;}'`;<br />
   wget --no-check-certificate --http-user $mosUser --http-passwd $mosPass $1 -O $fname;<br />
}</p>
<p>getOraPatch $1</p>
<p>===</p>
<p>(I'm hoping none of the characters got replaced by WordPress).</p>
<p>2- I had to search and replace the ampersands (&amp; or &amp; ) in the download url to get the script not to "go into the background".</p>
<p>But other than that, like I said, absolutely brilliant!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpiwowar</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-1325</link>
		<dc:creator>jpiwowar</dc:creator>
		<pubDate>Wed, 22 Jul 2009 18:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-1325</guid>
		<description>De rien, Olivier.  Merci pour votre visite. :-)

Regards,

John P.</description>
		<content:encoded><![CDATA[<p>De rien, Olivier.  Merci pour votre visite. <img src='http://only4left.jpiwowar.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Regards,</p>
<p>John P.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier CORTANA</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-1323</link>
		<dc:creator>Olivier CORTANA</dc:creator>
		<pubDate>Wed, 22 Jul 2009 18:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-1323</guid>
		<description>Superbe technique.
Tres tres pratique pour les patchs de 1G et +
Bravo, et merci
Olivier</description>
		<content:encoded><![CDATA[<p>Superbe technique.<br />
Tres tres pratique pour les patchs de 1G et +<br />
Bravo, et merci<br />
Olivier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Only Four Left&#8230; &#187; The end is near! (for FTP download of Oracle patches)</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-1260</link>
		<dc:creator>Only Four Left&#8230; &#187; The end is near! (for FTP download of Oracle patches)</dc:creator>
		<pubDate>Fri, 17 Jul 2009 20:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-1260</guid>
		<description>[...] you&#039;re interested in a solution for using wget to retrieve Oracle patches, I know a guy who wrote a blog post about that very topic a while back...     This entry was written by jpiwowar, posted on 17 July [...]</description>
		<content:encoded><![CDATA[<p>[...] you're interested in a solution for using wget to retrieve Oracle patches, I know a guy who wrote a blog post about that very topic a while back...     This entry was written by jpiwowar, posted on 17 July [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpiwowar</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-811</link>
		<dc:creator>jpiwowar</dc:creator>
		<pubDate>Tue, 14 Apr 2009 22:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-811</guid>
		<description>Hi, thanks for the comment! 

I usually just resort to the tried-and-true &quot;Zip the large file, upload the zip file, and hope the person on the other end knows how to use an uncompress utility.&quot; (don&#039;t laugh...I once was told my trace file upload was corrupted, and had to point out that it was zipped).

Of course, these days, the offical/correct answer is &quot;use Oracle Configuration Manager.&quot;  Specifically, the &lt;code&gt;emCCR upload&lt;/code&gt; command takes a -diagnostic parameter that allows you to specify an SR number and path to a file on the managed system.

Regards,

John P.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the comment! </p>
<p>I usually just resort to the tried-and-true "Zip the large file, upload the zip file, and hope the person on the other end knows how to use an uncompress utility." (don't laugh...I once was told my trace file upload was corrupted, and had to point out that it was zipped).</p>
<p>Of course, these days, the offical/correct answer is "use Oracle Configuration Manager."  Specifically, the <code>emCCR upload</code> command takes a -diagnostic parameter that allows you to specify an SR number and path to a file on the managed system.</p>
<p>Regards,</p>
<p>John P.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reader from PA</title>
		<link>http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/comment-page-1/#comment-810</link>
		<dc:creator>Reader from PA</dc:creator>
		<pubDate>Tue, 14 Apr 2009 20:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://only4left.jpiwowar.com/?p=67#comment-810</guid>
		<description>This is great!

Now how do I upload a trace file that is 100MB in size to my SR on Metalink?

Thanks!</description>
		<content:encoded><![CDATA[<p>This is great!</p>
<p>Now how do I upload a trace file that is 100MB in size to my SR on Metalink?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
