<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Naresh.Jois &#187; Software</title>
	<atom:link href="http://www.nareshjois.com/category/blog/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nareshjois.com</link>
	<description>Home of a professional developer &#38; a aspiring photographer</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>IE9 Microsoft Browser (Better Late Than never)</title>
		<link>http://www.nareshjois.com/2010/09/ie9-microsoft-browser-better-late-than-never/</link>
		<comments>http://www.nareshjois.com/2010/09/ie9-microsoft-browser-better-late-than-never/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 16:19:31 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[IE9]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.nareshjois.com/?p=795</guid>
		<description><![CDATA[I am not going to talk much about the new features of IE 9 as I think that too many people have blogged about the same thing, and I thought I would show a nifty littl feature which would make site work like an app, including options like windows 7 jump lists, I will let [...]]]></description>
			<content:encoded><![CDATA[<p>I am not going to talk much about the new features of IE 9 as I think that too many people have blogged about the same thing, and I thought I would show a nifty littl feature which would make site work like an app, including options like windows 7 jump lists, I will let the Images do the talking.<br />

<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2010/09/ie9-microsoft-browser-better-late-than-never/ie91/' title='ie91'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2010/09/ie91-150x150.png" class="attachment-thumbnail" alt="ie91" title="ie91" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2010/09/ie9-microsoft-browser-better-late-than-never/ie92/' title='ie92'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2010/09/ie92-150x150.png" class="attachment-thumbnail" alt="ie92" title="ie92" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2010/09/ie9-microsoft-browser-better-late-than-never/ie93/' title='ie93'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2010/09/ie93-150x150.png" class="attachment-thumbnail" alt="ie93" title="ie93" /></a>
</p>
<p>Top 5 features for Me :<br />
1. Simplified Interface<br />
2. Add On Disabler<br />
3. Download Manager (Finally)<br />
4. Standards Support (CSS3 and HTML5)<br />
5. GPU Rendering</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2010/09/ie9-microsoft-browser-better-late-than-never/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Windows XP to Windows 7 Boot Manager</title>
		<link>http://www.nareshjois.com/2010/03/how-to-add-windows-xp-to-windows-7-boot-manager/</link>
		<comments>http://www.nareshjois.com/2010/03/how-to-add-windows-xp-to-windows-7-boot-manager/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 16:43:03 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[bcdedit]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://www.nareshjois.com/?p=764</guid>
		<description><![CDATA[1. Open an elevated command prompt. 2. Type the following to create a boot loader for Windows XP. bcdedit /create {ntldr} /d &#8220;Windows XP&#8221; 3. Type the following to set the device to where Windows XP is installed. I used D: in this example. Replace it with the drive letter of your XP installation. bcdedit [...]]]></description>
			<content:encoded><![CDATA[<p>1. Open an elevated command prompt.<br />
2. Type the following to create a boot loader for Windows XP.<br />
bcdedit /create {ntldr} /d &#8220;Windows XP&#8221;<br />
3. Type the following to set the device to where Windows XP is installed. I used D: in this example. Replace it with the drive letter of your XP installation.<br />
bcdedit /set {ntldr} device partition=D:<br />
4. Type the following to set the path.<br />
bcdedit /set {ntldr} path \ntldr<br />
5. Type the following to add this boot loader to the boot up screen.<br />
bcdedit /displayorder {ntldr} /addlast<br />
6. Reboot the computer<br />
.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2010/03/how-to-add-windows-xp-to-windows-7-boot-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Office 2010</title>
		<link>http://www.nareshjois.com/2009/05/office-2010/</link>
		<comments>http://www.nareshjois.com/2009/05/office-2010/#comments</comments>
		<pubDate>Mon, 25 May 2009 13:33:47 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Beta]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office 2010]]></category>

		<guid isPermaLink="false">http://www.nareshjois.com/?p=321</guid>
		<description><![CDATA[Office 2010 is looking good, review in a later bit Office 2010 Screens]]></description>
			<content:encoded><![CDATA[<p>Office 2010 is looking good, review in a later bit<br />
Office 2010 Screens</p>

<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/excel1/' title='Microsoft Excel'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/excel1-150x150.png" class="attachment-thumbnail" alt="Microsoft Excel" title="Microsoft Excel" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/excel2/' title='Microsoft Excel'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/excel2-150x150.png" class="attachment-thumbnail" alt="Microsoft Excel" title="Microsoft Excel" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/ppt1/' title='Microsoft  Powerpoint'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/ppt1-150x150.png" class="attachment-thumbnail" alt="Microsoft  Powerpoint" title="Microsoft  Powerpoint" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/ppt2/' title='Microsoft  Powerpoint'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/ppt2-150x150.png" class="attachment-thumbnail" alt="Microsoft  Powerpoint" title="Microsoft  Powerpoint" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/visio1/' title='Microsoft  Visio'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/visio1-150x150.png" class="attachment-thumbnail" alt="Microsoft  Visio" title="Microsoft  Visio" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/visio2/' title='Microsoft  Visio'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/visio2-150x150.png" class="attachment-thumbnail" alt="Microsoft  Visio" title="Microsoft  Visio" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/word/' title='Microsoft  Word'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/word-150x150.png" class="attachment-thumbnail" alt="Microsoft  Word" title="Microsoft  Word" /></a>
<a rel='gallery' class='lightbox' href='http://www.nareshjois.com/2009/05/office-2010/word2/' title='Microsoft  Word'><img width="150" height="150" src="http://www.nareshjois.com/wp-content/uploads/2009/05/word2-150x150.png" class="attachment-thumbnail" alt="Microsoft  Word" title="Microsoft  Word" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2009/05/office-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup your USB printer for legacy applications</title>
		<link>http://www.nareshjois.com/2008/12/setup-your-usb-printer-for-legecy-applications/</link>
		<comments>http://www.nareshjois.com/2008/12/setup-your-usb-printer-for-legecy-applications/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 23:59:57 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[USB to Serial]]></category>

		<guid isPermaLink="false">http://www.nareshjois.com/?p=246</guid>
		<description><![CDATA[If you have used legecy applications which always use Serial port (Lpt1) as default printing port, and you have no printer selection option (and even if you do and it doesn&#8217;t show USB as an option just lpt1 and lpt2 ) you could be scrathing your head, but wait there is a fix and its [...]]]></description>
			<content:encoded><![CDATA[<p>If you have used legecy applications which always use Serial port (Lpt1) as default printing port, and you have no printer selection option (and even if you do and it doesn&#8217;t show USB as an option just lpt1 and lpt2 ) you could be scrathing your head,</p>
<p>but wait there is a fix and its simple</p>
<ol>
<li>Share your printer</li>
<li>Note down the share name in format of \\Computer-Name\Printer-Name</li>
<li>Go to command prompt and type in<br />
<strong>net use lpt1: \\Computer-Name\Printer-Name /persistent:yes </strong></li>
</ol>
<p>Here lpt1: can also be lpt2: if you use a serial port printer in lpt1 and persistent:yes makes this available even after reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2008/12/setup-your-usb-printer-for-legecy-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get yourself a PHP framework</title>
		<link>http://www.nareshjois.com/2008/12/get-yourself-a-php-framework/</link>
		<comments>http://www.nareshjois.com/2008/12/get-yourself-a-php-framework/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 18:11:11 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php frameworks]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.nareshjois.com/?p=238</guid>
		<description><![CDATA[I started work in PHP way back in 2003, incidentally my first dynamic website for my own purpose which was hosted at naresh.cjb.cc (now lost in space) was also developed using PHP, back then i could not afford my own hosting space and used a free host, this was right after just keeping a html  [...]]]></description>
			<content:encoded><![CDATA[<p>I started work in PHP way back in 2003, incidentally my first dynamic website for my own purpose which was hosted at naresh.cjb.cc (now lost in space) was also developed using PHP, back then i could not afford my own hosting space and used a free host, this was right after just keeping a html  page as my home for 2 years (which was a copy of .mac feature tour website setup in 2001), it had no database (free host), i used flat files (ini) for posting data because the only thing that i could do was enable write permissions on one directory, ( I&#8217;ll try to post this site at the last update in some place &#8211; if I get hold of the files), I then went into completely module development and php was only a fun thing till 2005, then I jumped into the contact center bandwagon and setup one in my own city, for outbound we used astguiclient along with asterisk, this worked great but looked bad (i mean really bad) , astguiclient used php , thus php become a primary only after development on this, I was able to collaborate with one more developer and one designer with in a month came up with a great looking version of the astguiclient and vicidial, too bad by then i was out of contact center to pursue better things, but this was made publicly available, then i got into professional php development, I developed numerous websites (and yet i don&#8217;t have my own portfolio) , in all this time i had to write the same things again and again, some times i copied lot of code, but it could not always work, it always felt like re inventing the wheel, and i was afraid to try the new and shiny php frameworks because if things did not work out i would end up re doing the whole thing,  But as luck would have it i got a project for developing a website for school which was near my hometown , Jnanadeepa School (currently available at <a title="Jnanadeepa School" href="http://www.jdsj.org" target="_blank">www.jdsj.org</a>), I thought this was the perfect opportunity to try php framework and I did use one &#8220;<a title="Code Igniter" href="http://codeigniter.com/" target="_blank">CodeIgnitor</a>&#8220;, and i have to say frameworks are basic necessity, it saved my coding by at least 40% , and thought the framework was overkill for the jdsj website, i am sure that from now on what ever work i do will certainly be based on a php framework, i am not going to tell you which framework to use because this is your personal choice, but try one and I sure that you will ever go back, I am certainly going to point you to the page which compares all major frameworks (<a href="http://www.phpit.net/demo/framework%20comparison/chart.php" target="_blank">http://www.phpit.net/demo/framework%20comparison/chart.php</a>), i have used cakephp, zend and codeignitor in different projects and  felt zend and codeignitor were great (cakephp is great &#8211; personally i did not feel &#8220;IT&#8221;), I saved lot of work. So hoping that you save your work time ..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2008/12/get-yourself-a-php-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Make your Aero work again</title>
		<link>http://www.nareshjois.com/2008/11/make-your-aero-work-again/</link>
		<comments>http://www.nareshjois.com/2008/11/make-your-aero-work-again/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 11:38:35 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aero]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.nareshjois.com/?p=17</guid>
		<description><![CDATA[Recently My freind&#8217;s system simply switched into the VIsta Basic Mode without any details, though there is nothing wrong with Basic still Aero is far more flashier and he likes it a lot, I was asked to fix this up, Though I did all the obvious things i shouldm it was not working, I searched [...]]]></description>
			<content:encoded><![CDATA[<p>Recently My freind&#8217;s system simply switched into the VIsta Basic Mode without any details, though there is nothing wrong with Basic still Aero is far more flashier and he likes it a lot, I was asked to fix this up, Though I did all the obvious things i shouldm it was not working, I searched net but with no avail, then I came across a site <strong>CleverCretin&#8217;s Ultimate Step-by-Step Guide to Troubleshooting Windows Aero. </strong>(<a href="http://clevercretin.com/vista/" target="_blank">http://clevercretin.com/vista/</a>)</p>
<p>This really helped me out, If you are facing problems check this out, its simple enough</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2008/11/make-your-aero-work-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Select Multiple Files in Vista</title>
		<link>http://www.nareshjois.com/2007/12/cannot-select-multiple-files-in-vista/</link>
		<comments>http://www.nareshjois.com/2007/12/cannot-select-multiple-files-in-vista/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 14:43:28 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://nareshjois.wordpress.com/2007/12/14/cannot-select-multiple-files-in-vista/</guid>
		<description><![CDATA[I recently encountered this error on my friend&#8217;s machine, had to search the net to find the solution but was worth the search, Here&#8217;s how, Open Regedit Navigate to HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\ Delete the Bags &#38; BagMRU keys If this does not help end the explorer.exe process and restart]]></description>
			<content:encoded><![CDATA[<p>I recently encountered this error on my friend&#8217;s machine, had to search the net to find the solution but was worth the search, Here&#8217;s how,</p>
<ol>
<li>Open <strong>Regedit</strong></li>
<li>Navigate to <strong>HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\</strong></li>
<li>Delete the <strong>Bags &amp; BagMRU</strong> keys</li>
</ol>
<p>If this does not help end the explorer.exe process and restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2007/12/cannot-select-multiple-files-in-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching to a Sun JVM in RHEL</title>
		<link>http://www.nareshjois.com/2007/09/switching-to-a-sun-jvm-in-rhel/</link>
		<comments>http://www.nareshjois.com/2007/09/switching-to-a-sun-jvm-in-rhel/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 17:02:13 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JVM]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://nareshjois.wordpress.com/2007/09/03/switching-to-a-sun-jvm-in-rhel/</guid>
		<description><![CDATA[RedHat by default supplies GNU Java tools (GJC). The IBM JDK or the BEA JDK are in the &#8220;extra&#8221; channel. But what if you want to use the Sun JDK&#8230; Current licensing (2007/05) doesn&#8217;t allow Sun JDK to be distributed by RedHat. (Maybe this will change with openJava?) Fortunately RedHat is actively involved with JPackage [...]]]></description>
			<content:encoded><![CDATA[<p>RedHat by default supplies GNU Java tools (GJC). The IBM JDK or the BEA JDK are in the &#8220;extra&#8221; channel. But what if you want to use the Sun JDK&#8230;<br />
Current licensing (2007/05) doesn&#8217;t allow Sun JDK to be distributed by RedHat. (Maybe this will change with openJava?) Fortunately RedHat is actively involved with JPackage which makes it fully JPackage compatible! (hooray!)<br />
If you use this guide, then the entire system will end up using the Sun JDK.</p>
<h4><em>check the current java(c) version:</em></h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ java <span style="color: #660033;">-version</span></pre></div></div>

<p>[probably the GNU one]</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ javac <span style="color: #660033;">-version</span></pre></div></div>

<p>[probably the Eclipse Java Compiler]</p>
<h4>Install the Sun JDK</h4>
<ol>
<li>get the latest Sun JDK RPM:<br />
Go to the directory where you want to download, extract and install (eg: cd /tmp, cd /root).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ links http:<span style="color: #000000; font-weight: bold;">//</span>java.sun.com<span style="color: #000000; font-weight: bold;">/</span>javase<span style="color: #000000; font-weight: bold;">/</span>downloads<span style="color: #000000; font-weight: bold;">/</span>index.jsp</pre></div></div>

<p>Choose the link to the latest JDK.<br />
On the download page: accept the agreement in links and download the JDK RPM-in-bin for linux.</li>
<li>Make the downloaded binary executable and run it:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> u+x jdk-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>-linux-i586-rpm.bin
$ .<span style="color: #000000; font-weight: bold;">/</span>jdk-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>-linux-i586-rpm.bin</pre></div></div>

<p>The rpm is extracted from the bin and installed (accept the license).<br />
The java version is now installed in /usr/java/. This dir contains all individual versions and two symlinks: &#8220;latest&#8221; and &#8220;default&#8221;. You should never reference to any of these locations (see 4).</li>
<li>Get the matching JPackage compatibility package for <strong>this</strong> Sun JDK:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ links <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>jpackage.hmdc.harvard.edu<span style="color: #000000; font-weight: bold;">/</span>JPackage<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.7</span><span style="color: #000000; font-weight: bold;">/</span>generic<span style="color: #000000; font-weight: bold;">/</span>RPMS.non-free<span style="color: #000000; font-weight: bold;">/</span>
$ rpm <span style="color: #660033;">-ivh</span> java-x.x.x-sun-compat-x.x.x.xx-1jpp.i586.rpm</pre></div></div>

</li>
<li>To make the Sun JDK the default for the entire system, use the &#8216;alternatives&#8217; method. This will create symlinks in /etc/alternatives/ that are used throughout the entire system (eg see &#8220;$ ll /usr/bin/java&#8221;).<br />
[select the Sun version instead of the GNU version for each of these commands]</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>alternatives <span style="color: #660033;">--config</span> java
$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>alternatives <span style="color: #660033;">--config</span> javac</pre></div></div>

</li>
</ol>
<h4><em>check the new installation</em></h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ java <span style="color: #660033;">-version</span></pre></div></div>

<p>[should be the new Sun version]</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ javac <span style="color: #660033;">-version</span></pre></div></div>

<p>[should be the new Sun version]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2007/09/switching-to-a-sun-jvm-in-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Oracle 10g on Linux RHEL</title>
		<link>http://www.nareshjois.com/2007/08/installing-oracle-10g-on-linux-rhel/</link>
		<comments>http://www.nareshjois.com/2007/08/installing-oracle-10g-on-linux-rhel/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 06:34:44 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Software How-tos]]></category>

		<guid isPermaLink="false">http://nareshjois.wordpress.com/2007/08/24/installing-oracle-10g-on-linux-rhel/</guid>
		<description><![CDATA[I have been recently installing Oracle on a RHEL system, so thought I would post an how to, so it will be easier for me or you do it later. The following procedure is a step-by-step guide (Cookbook) with tips and information for installing Oracle Database 10g on Red Hat Linux. This guide shows how [...]]]></description>
			<content:encoded><![CDATA[<p>I have been recently installing Oracle on a RHEL system, so thought I would post an how to, so it will be easier for me or you do it later.</p>
<p>The following procedure is a step-by-step guide (Cookbook) with tips and information for installing Oracle Database 10g on Red Hat Linux.<br />
This guide shows how I installed 10g Database on the Red Hat system:</p>
<h4><span style="text-decoration: underline;">Downloading Oracle10g Software and Burning Oracle10g CDs</span></h4>
<p>Download Oracle 10g (32-bit and 64-bit) for Linux from OTN to install linux 10g oracle:<br />
<a href="http://otn.oracle.com/software/products/database/oracle10g/index.html">http://otn.oracle.com/software/products/database/oracle10g/index.html</a><br />
NOTE: <em>To install a Oracle Database 10g (without RAC) you only need to download the database file <tt>ship.db.lnx32.cpio.gz</tt>, or <tt>10201_database_linux_x86_64.cpio</tt> etc.</em><br />
Compute a cyclic redundancy check (CRC) checksum for the downloaded files and compare the checksum numbers against the numbers posted on OTN&#8217;s website. For example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">cksum ship.db.lnx32.cpio.gz</pre></div></div>

<p>Uncompress the downloaded file(s):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">gunzip</span> ship.db.lnx32.cpio.gz</pre></div></div>

<p>Unpack <tt>ship.db.lnx32.cpio</tt>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #660033;">-idmv</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; ship.db.lnx32.cpio
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.server<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.server<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.server
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.tg<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>DataFiles
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.tg<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.tg<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.tg
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.assistants.dbca<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>DataFiles<span style="color: #000000; font-weight: bold;">/</span>doc.3.1.jar
Disk1<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>Components<span style="color: #000000; font-weight: bold;">/</span>oracle.assistants.dbca<span style="color: #000000; font-weight: bold;">/</span>10.1.0.3.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>DataFiles<span style="color: #000000; font-weight: bold;">/</span>class.jar
...</pre></div></div>

<p>I executed the following command to burn the <tt>Disk1</tt> directory on a CD:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #666666; font-style: italic;"># mkisofs -r Disk1 | cdrecord -v dev=0,0,0 speed=20 -</span></pre></div></div>

<p>(Drives&#8217; speed varies; you can get the dev numbers when you execute cdrecord -scanbus).<br />
Note that 10g R2 won&#8217;t fit on a single CD since it has over 780MB.</p>
<h4><span style="text-decoration: underline;">Checking Memory and Swap Space</span></h4>
<p>Oracle says that the system must have at least 512MB of RAM and 1GB of swap space or twice the size of RAM. And for systems with more than 2 GB of RAM, the swap space can be between one and two times the size of RAM. You might also want to check out <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#SizingSwapSpace">Sizing Swap Space</a>.<br />
For test sake I tried to install an Oracle Database 10g (Type: General Purpose Database) on a little PC with 256MB of RAM and 1 GB of swap space. I was able to get a 10g database up and running on this little PC without a problem.<br />
To check the size of physical memory, execute:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">grep</span> MemTotal <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>meminfo</pre></div></div>

<p>To check the size of swap space, execute:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">grep</span> SwapTotal <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>meminfo</pre></div></div>

<p>You also can add temporary swap space to your system by creating a temporary swap file instead of using a raw device. Here is the procedure:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=tmpswap <span style="color: #007800;">bs</span>=1k <span style="color: #007800;">count</span>=<span style="color: #000000;">900000</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> tmpswap
mkswap tmpswap
swapon tmpswap</pre></div></div>

<p>To disable the temporary swap space execute the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
swapoff tmpswap
<span style="color: #c20cb9; font-weight: bold;">rm</span> tmpswap</pre></div></div>

<h4><span style="text-decoration: underline;">Checking /tmp Space</span></h4>
<p>According to Oracle&#8217;s documentation, the Oracle Universal Installer (OUI) requires up to 400 MB of free space in the <tt>/tmp</tt> directory. But OUI checks if <tt>/tmp</tt> is only greater than 80 MB.<br />
To check the space in <tt>/tmp</tt>, run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #000000; font-weight: bold;">/</span>tmp</pre></div></div>

<p>If you do not have enough space in the <tt>/tmp</tt> filesystem, you can temporarily create a <tt>tmp</tt> directory in another filesystem. Here is how you can do this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/&amp;</span>lt;AnotherFilesystem<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">chown</span> root.root <span style="color: #000000; font-weight: bold;">/&amp;</span>lt;AnotherFilesystem<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">1777</span> <span style="color: #000000; font-weight: bold;">/&amp;</span>lt;AnotherFilesystem<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TEMP</span>=<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;AnotherFilesystem<span style="color: #000000; font-weight: bold;">&amp;</span>gt;           <span style="color: #666666; font-style: italic;"># used by Oracle</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TMPDIR</span>=<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;AnotherFilesystem<span style="color: #000000; font-weight: bold;">&amp;</span>gt;         <span style="color: #666666; font-style: italic;"># used by Linux programs like the linker &quot;ld&quot;</span></pre></div></div>

<p>When you are done with the Oracle installation, shutdown Oracle and remove the temporary <tt>/tmp</tt> directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #000000; font-weight: bold;">/&amp;</span>lt;AnotherFilesystem<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #7a0874; font-weight: bold;">unset</span> TEMP
<span style="color: #7a0874; font-weight: bold;">unset</span> TMPDIR</pre></div></div>

<h4><span style="text-decoration: underline;">Checking Software Packages (RPMs)</span></h4>
<p><strong>General</strong><br />
Before you install an Oracle Database 10g you need to check the system for required RPMs. On my systems I usually install a minimum list of RPMs which usually requires the installation of additional packages for Oracle databases. <em>Always ensure to use the latest RPMs and kernels!</em></p>
<p>For <strong>10g R2 (32-bit) on RHEL 4 x86</strong>, the document <a href="http://download-east.oracle.com/docs/html/B15659_03/toc.htm">Oracle Database Release Notes 10g Release 2 (10.2) for Linux x86</a> lists the following required package versions or higher:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  binutils-2.15.92.0.2-<span style="color: #000000;">10</span>.EL4
  compat-db-4.1.25-<span style="color: #000000;">9</span>
  control-center-2.8.0-<span style="color: #000000;">12</span>
  gcc-3.4.3-<span style="color: #000000;">9</span>.EL4
  gcc-c++-3.4.3-<span style="color: #000000;">9</span>.EL4
  glibc-2.3.4-<span style="color: #000000;">2</span>
  glibc-common-2.3.4-<span style="color: #000000;">2</span>
  gnome-libs-1.4.1.2.90-<span style="color: #000000;">44.1</span>
  libstdc++-3.4.3-<span style="color: #000000;">9</span>.EL4
  libstdc++-devel-3.4.3-<span style="color: #000000;">9</span>.EL4
  make-<span style="color: #000000;">3.80</span>-<span style="color: #000000;">5</span>
  pdksh-5.2.14-<span style="color: #000000;">30</span>
  sysstat-5.0.5-<span style="color: #000000;">1</span>
  xscreensaver-<span style="color: #000000;">4.18</span>-<span style="color: #000000;">5</span>.rhel4.2</pre></div></div>

<p>Also ensure to install the <tt>libaio-0.3.96</tt> RPM or a newer version! Otherwise the OUI prerequisite check will fail.<br />
To check the RPMs, run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  rpm <span style="color: #660033;">-q</span> binutils compat-db control-center <span style="color: #c20cb9; font-weight: bold;">gcc</span> gcc-c++ glibc glibc-common gnome-libs \
         libstdc++ libstdc++-devel <span style="color: #c20cb9; font-weight: bold;">make</span> pdksh sysstat xscreensaver libaio</pre></div></div>

<p><strong>10g R2 on RHEL AS 4 (x86)</strong><br />
On my <span style="text-decoration: underline;">RHEL AS 4 x86</span> system I had to install the following RPMs and dependencies to meet the software requirements:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">   rpm <span style="color: #660033;">-Uvh</span> gcc-3.4.4-<span style="color: #000000;">2</span>.i386.rpm \
            gcc-c++-3.4.4-<span style="color: #000000;">2</span>.i386.rpm \
            libstdc++-devel-3.4.4-<span style="color: #000000;">2</span>.i386.rpm \
            glibc-devel-2.3.4-<span style="color: #000000;">2.13</span>.i386.rpm \
            glibc-headers-2.3.4-<span style="color: #000000;">2.13</span>.i386.rpm \
            glibc-kernheaders-<span style="color: #000000;">2.4</span>-9.1.98.EL.i386.rpm
&nbsp;
   rpm <span style="color: #660033;">-Uvh</span> gnome-libs-1.4.1.2.90-<span style="color: #000000;">44.1</span>.i386.rpm \
            compat-db-4.1.25-<span style="color: #000000;">9</span>.i386.rpm \
            ORBit-0.5.17-<span style="color: #000000;">14</span>.i386.rpm \
            gtk+-1.2.10-<span style="color: #000000;">33</span>.i386.rpm \
            imlib-1.9.13-<span style="color: #000000;">23</span>.i386.rpm \
            libpng10-1.0.16-<span style="color: #000000;">1</span>.i386.rpm \
            gdk-pixbuf-0.22.0-<span style="color: #000000;">16</span>.el4.i386.rpm \
            libungif-4.1.3-<span style="color: #000000;">1</span>.i386.rpm \
            alsa-lib-1.0.6-<span style="color: #000000;">5</span>.RHEL4.i386.rpm \
            audiofile-0.2.6-<span style="color: #000000;">1</span>.i386.rpm \
            esound-0.2.35-<span style="color: #000000;">2</span>.i386.rpm
&nbsp;
   rpm <span style="color: #660033;">-Uvh</span> sysstat-5.0.5-<span style="color: #000000;">1</span>.i386.rpm
&nbsp;
   rpm <span style="color: #660033;">-Uvh</span> libaio-0.3.103-<span style="color: #000000;">3</span>.i386.rpm
&nbsp;
   rpm <span style="color: #660033;">-Uvh</span> xorg-x11-deprecated-libs-6.8.2-<span style="color: #000000;">1</span>.EL.13.20.i386.rpm
&nbsp;
   rpm <span style="color: #660033;">-Uvh</span> compat-libstdc++-<span style="color: #000000;">33</span>-3.2.3-<span style="color: #000000;">47.3</span>.i386.rpm</pre></div></div>

<p>I don&#8217;t know why the <tt>control-center</tt> RPM and the <tt>xscreensaver</tt> RPM are listed as requirements. On my system I did not install these RPMs since I&#8217;m against installing desktop stuff on servers. When I installed 10g R2 I did not experience any problems when these RPMs were missing. When you want to install <tt>control-center</tt> RPM and the <tt>xscreensaver</tt>, then have fun. The list can be very long with all the dependencies like <tt>gnome-desktop</tt>, <tt>cdrecord</tt> etc..</p>
<h4><span style="text-decoration: underline;">Checking Kernel Parameters</span></h4>
<p>To see all kernel parameters, execute:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
sysctl <span style="color: #660033;">-a</span></pre></div></div>

<p>For Oracle10g, the following kernel parameters have to be set to values greater than or equal to the recommended values which can be changed in the <tt>proc</tt> filesystem:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">shmmax  = <span style="color: #000000;">2147483648</span>     <span style="color: #7a0874; font-weight: bold;">&#40;</span>To verify, execute: <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>shmmax<span style="color: #7a0874; font-weight: bold;">&#41;</span>
shmmni  = <span style="color: #000000;">4096</span>           <span style="color: #7a0874; font-weight: bold;">&#40;</span>To verify, execute: <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>shmmni<span style="color: #7a0874; font-weight: bold;">&#41;</span>
shmall  = <span style="color: #000000;">2097152</span>        <span style="color: #7a0874; font-weight: bold;">&#40;</span>To verify, execute: <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>shmall<span style="color: #7a0874; font-weight: bold;">&#41;</span>   <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">for</span> 10g R1<span style="color: #7a0874; font-weight: bold;">&#41;</span>
shmmin  = <span style="color: #000000;">1</span>              <span style="color: #7a0874; font-weight: bold;">&#40;</span>To verify, execute: ipcs <span style="color: #660033;">-lm</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;min seg size&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
shmseg  = <span style="color: #000000;">10</span>             <span style="color: #7a0874; font-weight: bold;">&#40;</span>It<span style="color: #ff0000;">'s hardcoded in the kernel - the default is much higher)
&nbsp;
semmsl  = 250            (To verify, execute: cat /proc/sys/kernel/sem | awk '</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>print <span style="color: #007800;">$1</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #ff0000;">')
semmns  = 32000          (To verify, execute: cat /proc/sys/kernel/sem | awk '</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>print <span style="color: #007800;">$2</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #ff0000;">')
semopm  = 100            (To verify, execute: cat /proc/sys/kernel/sem | awk '</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>print <span style="color: #007800;">$3</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #ff0000;">')
semmni  = 128            (To verify, execute: cat /proc/sys/kernel/sem | awk '</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>print <span style="color: #007800;">$4</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #ff0000;">')
&nbsp;
file-max = 65536         (To verify, execute: cat /proc/sys/fs/file-max)
&nbsp;
ip_local_port_range = 1024 65000
                         (To verify, execute: cat /proc/sys/net/ipv4/ip_local_port_range)</span></pre></div></div>

<p>NOTE: Do not change the value of any kernel parameter on a system where it is already higher than listed as minimum requirement.</p>
<p>Oracle also recommends to set the local port range <tt>ip_local_port_range</tt> for outgoing messages to &#8220;1024 65000&#8243; which is needed for high-usage systems. This kernel parameter defines the local port range for TCP and UDP traffic to choose from.<br />
I added the following lines to the <tt>/etc/sysctl.conf</tt> file which is used during the boot process:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">kernel.shmmax=<span style="color: #000000;">2147483648</span>
kernel.sem=<span style="color: #000000;">250</span> <span style="color: #000000;">32000</span> <span style="color: #000000;">100</span> <span style="color: #000000;">128</span>
fs.file-max=<span style="color: #000000;">65536</span>
net.ipv4.ip_local_port_range=<span style="color: #000000;">1024</span> <span style="color: #000000;">65000</span></pre></div></div>

<p>Adding these lines to the <tt>/etc/sysctl.conf</tt> file will cause the system to change these kernel parameters after each boot using the <tt>/etc/rc.d/rc.sysinit</tt> script which is invoked by <tt>/etc/inittab</tt>. But in order that these new added lines or settings in <tt>/etc/sysctl.conf</tt> become effective immediately, execute the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
sysctl <span style="color: #660033;">-p</span></pre></div></div>

<h4><span style="text-decoration: underline;">Sizing Disk Space for Oracle10g</span></h4>
<p>Oracle says that about 2.5 GB of disk space should be reserved for the <span style="text-decoration: underline;">Oracle software</span> on Linux.<br />
When I did an Oracle 10g Release 1 (10.1.0.3.0) &#8220;General Purpose Database&#8221; installation (not including any software from the Oracle Database 10g Companion CD), the <span style="text-decoration: underline;">Oracle software</span> used about 1.3 GB of disk space, and the preconfigured &#8220;General Purpose Database&#8221; (datafiles, etc.) used about 710 MB of disk space.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ <span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-m</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>u01
<span style="color: #000000;">1963</span>    <span style="color: #000000; font-weight: bold;">/</span>u01
$ <span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-m</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>oradata
<span style="color: #000000;">720</span>     <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>oradata</pre></div></div>

<p>If you also install additional software from the Oracle Database 10g Companion CD, then add at least 1 GB of free disk space.<br />
So if you install Oracle10g Enterprise Edition and additional software from the Oracle Database 10g Companion CD, then you need about 2.5 GB of disk for the Oracle software. And if you also want to add a preconfigured database on the same filesystem, make sure to add another 1 GB of disk space.<br />
NOTE: If you don&#8217;t put Oracle10g on a separate filesystems, then make sure the root filesystem &#8220;<tt>/</tt>&#8221; has enough disk space. You can check the free space of the root filesystem with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-h</span> <span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<h4><span style="text-decoration: underline;">Using Automatic Storage Management (ASM)</span></h4>
<p>For more information on installing and configuring ASM, see <a href="http://www.puschitz.com/InstallingOracle10gRAC.shtml#InstallingAndConfiguringAutomaticStorageManagementAndDisks">Installing and Configuring Automatic Storage Management (ASM) and Disks</a>. And for information on how to make use of ASM disk groups when running OUI, see <a href="http://www.puschitz.com/InstallingOracle10gRAC.shtml#InstallingOracleDatabase10gWithRACDBCA">Installing Oracle Database 10g with Real Application Cluster (RAC)</a>.</p>
<h4><span style="text-decoration: underline;">Creating Oracle User Accounts</span></h4>
<p>To create the <tt>oracle</tt> account and groups, execute the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
groupadd dba          <span style="color: #666666; font-style: italic;"># group of users to be granted SYSDBA system privilege</span>
groupadd oinstall     <span style="color: #666666; font-style: italic;"># group owner of Oracle files</span>
useradd <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;Oracle software owner&quot;</span> <span style="color: #660033;">-g</span> oinstall <span style="color: #660033;">-G</span> dba oracle
<span style="color: #c20cb9; font-weight: bold;">passwd</span> oracle</pre></div></div>

<p>For more information on the <tt>"oinstall"</tt> group account, see <a href="http://metalink.oracle.com/oracleinstall/oracle8i/genericunix.html#Uoui">When to use &#8220;OINSTALL&#8221; group during install of oracle</a>.</p>
<h4><span style="text-decoration: underline;">Setting Shell Limits for the Oracle User</span></h4>
<p>Most shells like Bash provide control over various resources like the maximum allowable number of open file descriptors or the maximum number of processes available to a user. For more information on <tt>ulimit</tt> for the Bash shell, see <tt>man bash</tt> and search for <tt>ulimit</tt>.<br />
If you just install a small test database, then you might be ok with the current settings (note that the limits very often vary). But for (larger) production databases, you should increase the following shell limits to the following values recommended by Oracle:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">nofile = <span style="color: #000000;">65536</span>     <span style="color: #7a0874; font-weight: bold;">&#40;</span>To verify, execute: <span style="color: #7a0874; font-weight: bold;">ulimit</span> -n<span style="color: #7a0874; font-weight: bold;">&#41;</span>
nproc  = <span style="color: #000000;">16384</span>     <span style="color: #7a0874; font-weight: bold;">&#40;</span>To verify, execute: <span style="color: #7a0874; font-weight: bold;">ulimit</span> -u<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>The <tt>nofile</tt> option denotes the maximum number of open file descriptors, and <tt>nproc</tt> denotes the maximum number of processes available to a single user.<br />
To see all shell limits, execute:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #7a0874; font-weight: bold;">ulimit</span> <span style="color: #660033;">-a</span></pre></div></div>

<p>The following procedures/links show how to increase these parameters for the <tt>oracle</tt> user account:<br />
For more information on <tt>nofile</tt> and how to increase the limit, see <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingLimitsForTheMaximumNumberOfOpenFileDescriptorsForTheOracleUser">Setting Limits for the Maximum Number of Open File Descriptors for the Oracle User</a>. Even though this procedure was written for Oracle9i on RHAS 2.1, it also applies to Oracle10g on RHEL AS 2.1, RHEL AS 3, and other versions.<br />
For more information on <tt>nproc</tt> and how to increase the limit, see <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingLimitsForTheMaximumNumberOfProcessesForTheOracleUser">Setting Limits for the Maximum Number of Processes for the Oracle User</a>. Even though this procedure was written for Oracle9i on RHAS 2.1, it also applies to Oracle10g on RHEL AS 2.1, RHEL AS 3, and other versions.</p>
<h4><span style="text-decoration: underline;">Creating Oracle Directories</span></h4>
<p>For Oracle10g you only need to create the directory for <tt>$ORACLE_BASE</tt>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #c20cb9; font-weight: bold;">chown</span> oracle.oinstall <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle</pre></div></div>

<p>But if you want to comply with Oracle&#8217;s Optimal Flexible Architecture (OFA), then you don&#8217;t want to place the database files in the <tt>/u01</tt> directory but in another directory/filesystem/disk like <tt>/u02</tt>. This is not a requirement but if you want to comply with OFA, then you might want to create the following directories as well:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>u02<span style="color: #000000; font-weight: bold;">/</span>oradata<span style="color: #000000; font-weight: bold;">/&lt;</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>orcl<span style="color: #000000; font-weight: bold;">&lt;/</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> oracle.oinstall <span style="color: #000000; font-weight: bold;">/</span>u02<span style="color: #000000; font-weight: bold;">/</span>oradata<span style="color: #000000; font-weight: bold;">/</span>orcl</pre></div></div>

<p>In this example, &#8220;orcl&#8221; stands for the name of the database which will also be the name of the instance. This is typically the case for single instance databases.<br />
<strong>Optimal Flexible Architecture (OFA) for 10g R1 (10.1.0.2)</strong><br />
The OFA standard is a guideline created by Oracle to ensure reliable Oracle installations. For Oracle 10g Database, the OFA recommended Oracle home path has changed.<br />
The home path for the first 10g (10.1.0) database installation on a system would be:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>db_1<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>If you would install a second Oracle 10g Database 10g (10.1.0) on the same system, the Oracle home directory would be as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>If the Oracle10g software is not owned by the user <tt>oracle</tt> but by the user &#8220;oraowner&#8221;, then the path of the Oracle home directory would be:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>oraowner<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1
  <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>oraowner<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_2</pre></div></div>

<p>The standard directory name for Oracle10g is &#8220;app&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>app<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1</pre></div></div>

<p>Oracle recommends to use mount points such as <tt>/u01</tt>, <tt>/u02</tt>, etc. which complies with the OFA guidelines. But others can be used, for example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  <span style="color: #000000; font-weight: bold;">/&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>disk_1<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1</pre></div></div>

<p>The subtree for database files not stored in ASM disk groups should be named as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">  <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>u02<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>oradata<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&lt;</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>db_name_1<span style="color: #000000; font-weight: bold;">&lt;/</span>em<span style="color: #000000; font-weight: bold;">&gt;&amp;</span>gt;
  <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>u02<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>oradata<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&lt;</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>db_name_2<span style="color: #000000; font-weight: bold;">&lt;/</span>em<span style="color: #000000; font-weight: bold;">&gt;&amp;</span>gt;
  <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>u03<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>oradata<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&lt;</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>db_name_1<span style="color: #000000; font-weight: bold;">&lt;/</span>em<span style="color: #000000; font-weight: bold;">&gt;&amp;</span>gt;
  <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>u03<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>oradata<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&lt;</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>db_name_2<span style="color: #000000; font-weight: bold;">&lt;/</span>em<span style="color: #000000; font-weight: bold;">&gt;&amp;</span>gt;</pre></div></div>

<p>The mount point <tt>/u01</tt> should be used for the Oracle software only. <tt>/u02</tt>, <tt>/u03</tt>, <tt>/u04</tt> etc. should be used for the database files. The <tt>db_name</tt> stands for the <tt>DB_NAME</tt> initialization parameter which is typically the same as the SID name for single instance databases.</p>
<h4><span style="text-decoration: underline;">Setting Oracle Environments</span></h4>
<p>Since the Oracle Universal Installer (OUI) &#8220;<tt>runInstaller</tt>&#8221; is run from the <tt>oracle</tt> account, some environment variables must be configured for this account before OUI is started.<br />
Execute the following commands for the Bash shell which is the default shell on Red Hat Linux (to verify your shell run: <tt>echo $SHELL</tt>):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_BASE</span>=<span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_SID</span>=orcl</pre></div></div>

<p><strong>NOTE</strong>: If <tt>ORACLE_BASE</tt> is used, then Oracle recommends that you don&#8217;t set the <tt>ORACLE_HOME</tt> environment variable but that you choose the default path suggested by the OUI. You can set and use <tt>ORACLE_HOME</tt> after you finished running OUI.<br />
Also, the environment variables <tt>ORACLE_HOME</tt> and <tt>TNS_ADMIN</tt> should not be set. If you&#8217;ve already set these environment variables, you can unset them by running the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #7a0874; font-weight: bold;">unset</span> ORACLE_HOME
<span style="color: #7a0874; font-weight: bold;">unset</span> TNS_ADMIN</pre></div></div>

<p>To have these environment variables set automatically each time you login as <tt>oracle</tt>, you can add these environment variables to the <tt>~oracle/.bash_profile</tt> file which is the user startup file for the Bash shell on Red Hat Linux. To do this you could simply copy/paste the following commands to make these settings permanent for your <tt>oracle</tt>&#8216;s Bash shell:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; ~oracle<span style="color: #000000; font-weight: bold;">/</span>.bash_profile <span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>lt; EOF
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_BASE</span>=<span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_SID</span>=orcl
EOF</pre></div></div>

<h4><span style="text-decoration: underline;">Installing Oracle10g</span></h4>
<p><strong>Installing Oracle10g on a Remote Linux Server</strong><br />
If you don&#8217;t install Oracle on your local system but on a remote server, then you need to relink X to your local desktop. The easiest way to do this is to use the &#8220;X11 forwarding&#8221; feature of ssh. This means that you don&#8217;t have to run <tt>xhost</tt> and set the <tt>DISPLAY</tt> environment variable.<br />
Here is an example how to make use of the &#8220;X11 forward&#8221; feature of ssh. Simply run the following command from your <span style="text-decoration: underline;">local desktop</span>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-X</span> oracle<span style="color: #000000; font-weight: bold;">@</span>oracle_remote_server_name</pre></div></div>

<p>Now when you try to run any GUI tool on the remote server, it will automatically be relinked to your local desktop. If this is not working, verify that the <tt>ForwardX11</tt> setting is not set to &#8220;<tt>no</tt>&#8221; in <tt>/etc/ssh/ssh_config</tt> on the remote server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #666666; font-style: italic;"># grep ForwardX11 /etc/ssh/ssh_config | grep -v &quot;^#&quot;</span>
        ForwardX11 <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>If you are using <tt>telnet</tt>, however, you will have to set <tt>DISPLAY</tt> manually, see article <a href="http://www.puschitz.com/InstallingOracle9i.shtml#StartingrunInstaller">Starting runInstaller</a> for more information.</p>
<p><strong>Starting Oracle Universal Installer</strong><br />
Insert the Oracle CD that contains the image of the downloaded file <tt>ship.db.lnx32.cpio</tt>, or change to the directory that contains the image directory <tt>Disk1</tt>.<br />
If you install Oracle10g from a CD, mount the CD by running the following commands in another terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>cdrom</pre></div></div>

<p>Before you execute <tt>runInstaller</tt>, make sure the Oracle environment variables are set, see <a href="http://www.puschitz.com/InstallingOracle10g.shtml#SettingOracleEnvironments">Setting Oracle Environments</a>. You can verify the settings by running the <tt>set</tt> command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
oracle$ <span style="color: #000000; font-weight: bold;">set</span></pre></div></div>

<p>To execute <tt>runInstaller</tt> from the mounted CD, run the following command as the <tt>oracle</tt> user:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">oracle$ <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>runInstaller</pre></div></div>

<p><strong>Using Oracle Universal Installer (OUI)</strong><br />
The following example shows how to install x86 Oracle 10g Release 1 Database Software and a &#8220;General Purpose&#8221; database:<br />
(<em>Note, the screens and questions will look different if you install 10g R2 or 64-bit 10g R1 database</em>)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">- Welcome Screen:</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">        - Basic Installation:       Checked it <span style="color: #c20cb9; font-weight: bold;">which</span> is the default
        - Oracle Home Location:     Use default: <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1
        - Installation Type:        I used the default: Enterprise Edition
        - UNIX DBA Group:           Use default: <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>dba<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>
        - Create Starter Databases: I checked it <span style="color: #000000; font-weight: bold;">for</span> this example <span style="color: #c20cb9; font-weight: bold;">which</span> is the default
        - Global Database Name:     orcl
        - Database password:        password <span style="color: #000000; font-weight: bold;">for</span> SYS, SYSTEM, SYSMAN, and DBSNMP</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">        - Advanced Installation:    For this article I did not check it
Click Next
&nbsp;
- Specify Inventory directory and credentials:
        - Full path of the inventory directory: Use default: <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>oraInventory
        - Specify Operating System group name:  Use default: oinstall
Click Next
&nbsp;
- A window pops up to run the orainstRoot.sh script:
        Run the script <span style="color: #000000; font-weight: bold;">in</span> another terminal:
            <span style="color: #c20cb9; font-weight: bold;">su</span> - root
            <span style="color: #666666; font-style: italic;"># /u01/app/oracle/oraInventory/orainstRoot.sh</span>
            Creating the Oracle inventory pointer <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oraInst.loc<span style="color: #7a0874; font-weight: bold;">&#41;</span>
            Changing groupname of <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>oraInventory to oinstall.
            <span style="color: #666666; font-style: italic;">#</span>
        Click Continue
&nbsp;
- Product-specific Prerequisite Checks:
        Verify that all checks have been passed.
        <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>Make sure that the status of each Check is <span style="color: #000000; font-weight: bold;">set</span> to <span style="color: #ff0000;">&quot;Succeeded&quot;</span>.
        On RHEL AS <span style="color: #000000;">4</span> ignore the warnings <span style="color: #000000; font-weight: bold;">for</span> binutils, <span style="color: #c20cb9; font-weight: bold;">gcc</span>, and openmotif and proceed.<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>
        Note that the <span style="color: #ff0000;">&quot;Retry&quot;</span> button doesn<span style="color: #ff0000;">'t work after you fixed one of the failed checks.
Click Next
&nbsp;
- Select Database Configuration:
        I selected &quot;General Purpose&quot;.
Click Next
&nbsp;
- Specify Database Configuration Options:
       - Global Database Name: I used &quot;orcl&quot;.
       - SID: I used &quot;orcl&quot;.
Click Next
&nbsp;
- Select Database Management Option:
       I selected &quot;Use Database Control for Database Management&quot;.
Click Next
&nbsp;
- Specify Database File Storage Option: I selected &quot;File System&quot;.
       - File System     - Specify Database file location: /u01/app/oracle/oradata/
                           If you want to comply with OFA, you should another  mount point
                           than '</span><span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #ff0000;">', e.g. /u02/oradata.
Click Next
&nbsp;
- Specify Backup and Recovery Options:
         For my test installation I selected &quot;Do no enable Automated Backups&quot;.
Click Next
&nbsp;
- Specify Database Schema Passwords:
&lt;em&gt;        Make sure that the password(s) don'</span>t start with a digit number<span style="color: #000000; font-weight: bold;">!</span> Otherwise you
        will later get error message<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> like <span style="color: #ff0000;">&quot;ORA-00988 missing or invalid password&quot;</span>.<span style="color: #000000; font-weight: bold;">&lt;/</span>em<span style="color: #000000; font-weight: bold;">&gt;</span>
Click Next
&nbsp;
- Summary:  Click Install
        If Enterprise manager configuration fails due to port allocation problems,
        check out Oracle10g<span style="color: #000000; font-weight: bold;">/</span>Linux Errors and Problems.
&nbsp;
        When a window pops up to run the root.sh script, execute the script
        <span style="color: #000000; font-weight: bold;">in</span> another terminal <span style="color: #c20cb9; font-weight: bold;">as</span> root:
&nbsp;
        <span style="color: #c20cb9; font-weight: bold;">su</span> - root
        <span style="color: #666666; font-style: italic;"># /u01/app/oracle/product/10.1.0/db_1/root.sh</span>
        Running Oracle10 root.sh script...</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">        following environment variables are <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #c20cb9; font-weight: bold;">as</span>:
        <span style="color: #007800;">ORACLE_OWNER</span>= oracle
        <span style="color: #007800;">ORACLE_HOME</span>=  <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1
&nbsp;
        Enter the full pathname of the <span style="color: #7a0874; font-weight: bold;">local</span> bin directory: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #7a0874; font-weight: bold;">&#93;</span>:
                 Copying dbhome to <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin ...
                 Copying oraenv to <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin ...
                 Copying coraenv to <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin ...
&nbsp;
                 Creating <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oratab file...
                 Adding entry to <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oratab file...
                 Entries will be added to the <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oratab <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #c20cb9; font-weight: bold;">as</span> needed by
                 Database Configuration Assistant when a database is created
                 Finished running generic part of root.sh script.
                 Now product-specific root actions will be performed.
                 <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle does not exist. Creating it now.
                 <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oracle does not exist. Creating it now.
                 Successfully accumulated necessary OCR keys.
                 Creating OCR keys <span style="color: #000000; font-weight: bold;">for</span> user <span style="color: #ff0000;">'root'</span>, privgrp <span style="color: #ff0000;">'root'</span>..
                 Operation successful.
                 Oracle Cluster Registry <span style="color: #000000; font-weight: bold;">for</span> cluster has been initialized
&nbsp;
                 Adding to inittab
                 Checking the status of Oracle init process...
                 Expecting the CRS daemons to be up within <span style="color: #000000;">600</span> seconds.
                 CSS is active on these nodes.
                 mars
                 CSS is active on all nodes.
                 Oracle CSS service is installed and running under init<span style="color: #7a0874; font-weight: bold;">&#40;</span>1M<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                 <span style="color: #666666; font-style: italic;">#</span>
         Click OK
&nbsp;
 - End of Installation:  Click Exit</pre></div></div>

<p><strong>Updates after Running Oracle Universal Installer</strong><br />
After Oracle10g has been installed, make sure that <tt>ORACLE_HOME</tt>, <tt>PATH</tt>, and <tt>LD_LIBRARY_PATH</tt> are set for the <tt>oracle</tt> account.<br />
<em>Note that the path for <tt>ORACLE_HOME</tt> might be different on your system!</em><br />
<em>Also note that <tt>LD_LIBRARY_PATH</tt> is needed for some Oracle binaries such as </em><tt>sysresv</tt>!</p>
<p>For 10g R2 (10.2.0.1.0) I added the following lines to the <tt>~oracle/.bash_profile</tt> file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">        <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #007800;">$ORACLE_BASE</span><span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.2.0<span style="color: #000000; font-weight: bold;">/</span>db_1
        <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin
        <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib</pre></div></div>

<p>After that run the following command to set all environment variables in <tt>~oracle/.bash_profile</tt>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">        $ . ~oracle<span style="color: #000000; font-weight: bold;">/</span>.bash_profile</pre></div></div>

<p>This commmand will add the environment variables to the <tt>~oracle/.profile</tt> and source in the file for the current shell by executing &#8220;<tt>. ~oracle/.bash_profile</tt>&#8220;.</p>
<h4><span style="text-decoration: underline;">Oracle Post-installation Tasks</span></h4>
<p><strong>Startup and Shutdown of the Oracle10g Database</strong><br />
To startup the database:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">oracle$ sqlplus <span style="color: #000000; font-weight: bold;">/</span>nolog
SQL<span style="color: #000000; font-weight: bold;">&amp;</span>gt; connect <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #c20cb9; font-weight: bold;">as</span> sysdba
SQL<span style="color: #000000; font-weight: bold;">&amp;</span>gt; startup</pre></div></div>

<p>To shutdown the database:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;">oracle$ sqlplus <span style="color: #000000; font-weight: bold;">/</span>nolog
SQL<span style="color: #000000; font-weight: bold;">&amp;</span>gt; connect <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #c20cb9; font-weight: bold;">as</span> sysdba
SQL<span style="color: #000000; font-weight: bold;">&amp;</span>gt; shutdown</pre></div></div>

<p>The slash connects you to the schema owned by SYS. In the above example you will be connected to the schema owned by SYS with the privilege SYSDBA. SYSDBA gives you the following privileges:<br />
- sysoper privileges WITH ADMIN OPTION<br />
- create database<br />
- recover database until<br />
<strong>Shutdown of other Oracle 10g Background Processes</strong><br />
If you installed a preconfigured database using OUI, then several Oracle background processes are now running on your server. Execute the following command to see the background processes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span></pre></div></div>

<p>To shutdown the Oracle background processes after an Oracle Database 10g installation, you can execute the following commands:</p>
<li>iSQL*Plus
<ul>To stop iSQL*Plus, run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
isqlplusctl stop</pre></div></div>

</ul>
</li>
<li>Database Management Processes
<ul>During the installation of Oracle 10g, OUI offered two Database Management Options:<br />
If you selected &#8220;Database Control for Database Management&#8221;, then the Oracle Enterprise Manager Database Control (Database Control) can be shutdown with the following command which stops both the agent and the Oracle Containers for Java (OC4J) management service:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
emctl stop dbconsole</pre></div></div>

<p>If you selected &#8220;Grid Control for Database Management&#8221; which is used for full &#8220;Grid Control&#8221; installations, then the Oracle Management Agent (standalone agent) for the Oracle Enterprise Manager Grid Control (Grid Control) can be stopped with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
emctl stop agent</pre></div></div>

</ul>
</li>
<li>Oracle Net Listener
<ul>To stop the listener, run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - oracle
lsnrctl stop</pre></div></div>

</ul>
</li>
<li>Cluster Synchronization Services (CSS)
<ul>To shutdown Oracle CSS daemon, run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>init.cssd stop</pre></div></div>

</ul>
<h4><span style="text-decoration: underline;">Tips and Hints for Oracle10g on Linux</span></h4>
</li>
<li>To reinstall Oracle10g after a failed installation attempt, you might want to execute the following commands.
<ul>Make sure you first used the De-installation option in OUI.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:consolas, monaco;"><span style="color: #c20cb9; font-weight: bold;">su</span> - root
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1
. <span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>localconfig delete    <span style="color: #666666; font-style: italic;"># stops the Oracle CSS daemon and deletes configuration</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/*</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oraInst.loc <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oratab
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inittab.cssd
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>coraenv <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dbhome <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>oraenv</pre></div></div>

<p>Make also sure to <tt>unset</tt> and uncomment <tt>ORACLE_HOME</tt> from <tt>~oracle/.bash_profile</tt>.</ul>
<p>Well that&#8217;s about it. Have a great time working on it.</li>
]]></content:encoded>
			<wfw:commentRss>http://www.nareshjois.com/2007/08/installing-oracle-10g-on-linux-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

