<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Tech-Blog: On Bootstrapping Oracle's 10g XE EC2 Image</title>
    <link>/articles/2009/04/28/on-bootstrapping-oracles-10g-xe-ec2-image</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Mike Pierson's technology blog</description>
    <item>
      <title>On Bootstrapping Oracle's 10g XE EC2 Image</title>
      <description>&lt;p&gt;Oracle has made a &lt;a href='http://www.oracle.com/technology/tech/cloud/index.html'&gt;number of their products&lt;/a&gt; available for use on Amazon's &lt;a href='http://aws.amazon.com/ec2/'&gt;EC2&lt;/a&gt; service. Unfortunately, each instance of their 10g XE RDBMS image must be &lt;a href='http://www.oracle.com/technology/tech/cloud/demos/oracle_on_ec2_viewlet_swf.htm'&gt;configured manually&lt;/a&gt; via ssh before use.&lt;/p&gt;

&lt;p&gt;Turns out that the &lt;a href='http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1720&amp;categoryID=205'&gt;10g XE&lt;/a&gt; image hijacks the bash profile script to force manual configuration.  If one was motivated to enable unattended configuration of the image, the bash profile script could be un-hijacked with scp:&lt;/p&gt;
&lt;p&gt;
 &lt;pre&gt;
  mpierson:$ scp -i EC2_KEY my-bash-profile.sh root@&amp;lt;EC2-HOST-NAME&amp;gt;:/root/.bash_profile
 &lt;/pre&gt;
&lt;/p&gt;

&lt;p&gt;BTW, the hijack script overwritten by &lt;i&gt;scp&lt;/i&gt; above is also a good starting point for an script that would bring the database online in an unattended scenario.  Here's what it does:&lt;/p&gt;
&lt;ol&gt;
 &lt;li&gt;force acceptance of Oracle EC2 license
 &lt;li&gt;force change to &lt;i&gt;oracle&lt;/i&gt; system user
 &lt;li&gt;set Oracle environment, including host name
 &lt;li&gt;force change to SYSTEM and SYS oracle db accounts
&lt;/ol&gt;


</description>
      <pubDate>Tue, 28 Apr 2009 12:37:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:03134ac4-cefe-4372-80e3-7f7739b95538</guid>
      <author>Mike</author>
      <link>/articles/2009/04/28/on-bootstrapping-oracles-10g-xe-ec2-image</link>
      <category>technology</category>
      <category>ec2</category>
      <category>oracle</category>
      <trackback:ping>/articles/trackback/463</trackback:ping>
    </item>
  </channel>
</rss>

