|
|
OracleInstallFrom $1Table of contents[MISSING]Shamelessly lifted from www.puschitz.com Written by <a href="http://www.puschitz.com">Werner Puschitz</a>. <br> <br> <div align="center"><h2><font color="#FF0000"> Installing Oracle Database 10g on Red Hat Enterprise Linux AS 4, 3, 2.1, Red Hat Fedora Core 3 and 1, and on RH 9 </font></h2></div> <center><b><font size="+1"<a href="http://www.puschitz.com/">www.puschitz.com</a></font></b></center> <br> <br> <br> <script type="text/javascript"><!-- google_ad_client = "pub-2436085322378069"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "008000"; google_color_text = "000000"; //--></script> <script type="text/javascript" </script> <br> <br> <script type="text/javascript"><!-- google_ad_client = "pub-2436085322378069"; google_ad_width = 200; google_ad_height = 90; google_ad_format = "200x90_0ads_al"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "008000"; google_color_text = "000000"; //--></script> <script type="text/javascript" </script> <br> <br> <br> The following procedure is a step-by-step guide (Cookbook) with tips and information for installing Oracle Database 10g on Red Hat Linux. Oracle10g is the easiest Oracle on Linux installation so far. <br> <br> This guide shows how I installed: <br> - Oracle 10g (10.1.0.3) on Red Hat Enterprise Linux Advanced Server 4 (RHELAS4)<br> - Oracle 10g (10.1.0.2) on Red Hat Enterprise Linux Advanced Server 3 (RHELAS3)<br> - Oracle 10g (10.1.0.2) on Red Hat Enterprise Linux Advanced Server 2.1 (RHELAS2.1)<br> - Oracle 10g (10.1.0.3) on Red Hat Fedora Core 3 (FC3)<br> - Oracle 10g (10.1.0.2) on Red Hat Fedora Core 3 (FC3)<br> - Oracle 10g (10.1.0.2) on Red Hat Fedora Core 1 (FC1)<br> - Oracle 10g (10.1.0.2) on Red Hat 9 (RH9)<br> <br> <u>These instructions will also work for Red Hat Enterprise Linux ES 2.1 and 3.</u> <br> <br> <br> <b>Oracle Database 10g on other Linux Distributions</b><br> <br> People recommended this installation guide also for: <br><br> <u>WhiteBox Linux 3</u> <br> <ul> Works exactly like on RHELAS3. </ul> <u>Mandrake 10.0 Community Edition</u> <br> <ul> Some files/packages were not included with Mandrake 10 which can be retrieved from:<br> ftp://ftp.rediris.es/sites/carroll.cac.psu.edu/mandrake-devel/cooker/i586/Mandrake/RPMS/setarch-1.3-1mdk.i586.rpm <br> ftp://194.199.20.114/linux/contrib/openmotif/linux-rpm/openmotif-2.1.30-1_ICS.i386.rpm </ul> <br> <b>Validation/Certification</b><br><br> For Validations/Certifications, go to <a href="http://metalink.oracle.com/metalink/certify/certify.welcome"> Oracle's Certification Matrices</a>. <br> <br> <br> <b>This article covers the following subjects and steps:</b> <br> <br> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#DownloadingOracle10gSoftwareAndBurningOracle10gCDs"> Downloading Oracle10g Software and Burning Oracle10g CDs</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingMemoryAndSwapSpace">Checking Memory and Swap Space</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingTmpSpace">Checking /tmp Space</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingSoftwarePackages">Checking Software Packages (RPMs)</a><br></b> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingKernelRPM">Checking the kernel RPM</b></a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingGlibcRPMs">Checking glibc RPMs</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingGccMakeBinutilsRPM">Checking gcc, make, and binutils RPMs</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingOpenmotifRPM">Checking the openmotif RPM</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingSetarchRPM">Checking the setarch RPM</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingRedhatReleaseRPM">Checking the redhat-release RPM</a><br> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingKernelParameters">Checking Kernel Parameters</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#SizingDiskSpaceForOracle10g">Sizing Disk Space for Oracle10g</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CreatingOracleUserAccounts">Creating Oracle User Accounts</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#SettingShellLimitsForTheOracleUser">Setting Shell Limits for the Oracle User</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CreatingOracleDirectories">Creating Oracle Directories</a><br></b> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#OptimalFlexibleArchitecture">Optimal Flexible Architecture (OFA) for 10g (10.1.0.2)</a><br> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#SettingOracleEnvironments">Setting Oracle Environments</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#InstallingOracle10g">Installing Oracle10g</a><br></b> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#InstallingOracle10gOnARemoteLinuxServer">Installing Oracle10g on a Remote Linux Server</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#StartingOracleUniversalInstaller">Starting Oracle Universal Installer</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#UsingOracleUniversalInstaller">Using Oracle Universal Installer</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#UpdatesAfterRunningOracleUniversalInstaller">Updates after Running Oracle Universal Installer</a><br> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#OraclePostInstallationTasks">Oracle Post-installation Tasks</a><br></b> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#StartupAndShutdownOfTheOracle10gDatabase">Startup and Shutdown of the Oracle10g Database</a><br> <a href="http://www.puschitz.com/InstallingOracle10g.shtml#ShutdownOfOtherOracle10gBackgroundProcesses">Shutdown of other Oracle 10g Background Processes</a><br> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#TipsAndHintsForOracle10gOnLinux">Tips and Hints for Oracle10g on Linux</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#Oracle10gLinuxErrorsAndProblems">Oracle10g/Linux Errors and Problems</a><br></b> <b>* <a href="http://www.puschitz.com/InstallingOracle10g.shtml#References">References</a><br></b> <br> <br> <h2><font color="#0000FF"><u><a name="DownloadingOracle10gSoftwareAndBurningOracle10gCDs"> Downloading Oracle10g Software and Burning Oracle10g CDs</font></font></b></p> </u></font></h2> Download Oracle10g for Linux from OTN:<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> <br> NOTE: <i>To install a Oracle Database 10g (without RAC) you only need to download the file <tt>ship.db.lnx32.cpio.gz</tt>.</i> <br> <br> Compute a cyclic redundancy check (CRC) checksum for the downloaded files and compare the checksum numbers against the numbers posted on OTN's website. For example: <pre><font color="#0000FF">cksum ship.db.lnx32.cpio.gz</font></pre> Uncompress the downloaded file(s): <pre><font color="#0000FF">gunzip ship.db.lnx32.cpio.gz</font></pre> Unpack <tt>ship.db.lnx32.cpio</tt>: <pre>$ <font color="#0000FF">cpio -idmv < ship.db.lnx32.cpio</font> Disk1/stage/Components/oracle.server/10.1.0.3.0/1 Disk1/stage/Components/oracle.server/10.1.0.3.0 Disk1/stage/Components/oracle.server Disk1/stage/Components/oracle.tg/10.1.0.3.0/1/DataFiles Disk1/stage/Components/oracle.tg/10.1.0.3.0/1 Disk1/stage/Components/oracle.tg/10.1.0.3.0 Disk1/stage/Components/oracle.tg Disk1/stage/Components/oracle.assistants.dbca/10.1.0.3.0/1/DataFiles/doc.3.1.jar Disk1/stage/Components/oracle.assistants.dbca/10.1.0.3.0/1/DataFiles/class.jar ...</pre> I executed the following command to burn the <tt>Disk1</tt> directory on a CD: <pre># <font color="#0000FF">mkisofs -r Disk1 | cdrecord -v dev=0,0,0 speed=20 -</font></pre> (Drives' speed varies; you can get the dev numbers when you execute cdrecord -scanbus). <br> <br> <h2><font color="#0000FF"><u><a name="CheckingMemoryAndSwapSpace"> Checking Memory and Swap Space</font></font></b></p> </u></font></h2> 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> <br> To check the size of physical memory, execute: <pre><font color="#0000FF">grep MemTotal /proc/meminfo</font></pre> To check the size of swap space, execute: <pre><font color="#0000FF">grep SwapTotal /proc/meminfo</font></pre> <br> 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: <pre><font color="#0000FF">su - root dd if=/dev/zero of=tmpswap bs=1k count=900000 chmod 600 tmpswap mkswap tmpswap swapon tmpswap</font></pre> To disable the temporary swap space execute the following commands: <pre><font color="#0000FF">su - root swapoff tmpswap rm tmpswap</font></pre> <br> <h2><font color="#0000FF"><u><a name="CheckingTmpSpace"> Checking /tmp Space</font></font></b></p> </u></font></h2> According to Oracle'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> <br> To check the space in <tt>/tmp</tt>, run: <pre>$ <font color="#0000FF">df /tmp</font></pre> 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: <pre><font color="#0000FF">su - root mkdir /<AnotherFilesystem>/tmp chown root.root /<AnotherFilesystem>/tmp chmod 1777 /<AnotherFilesystem>/tmp export TEMP=/<AnotherFilesystem> </font># used by Oracle<font color="#0000FF"> export TMPDIR=/<AnotherFilesystem> </font># used by Linux programs like the linker "ld"</pre> When you are done with the Oracle installation, shutdown Oracle and remove the temporary <tt>/tmp</tt> directory: <pre><font color="#0000FF">su - root rmdir /<AnotherFilesystem>/tmp unset TEMP unset TMPDIR</font></pre> <br> <h2><font color="#0000FF"><u><a name="CheckingSoftwarePackages"> Checking Software Packages (RPMs)</font></font></b></p> </u></font></h2> Before you install a Oracle Database 10g, you need to check the system for required RPMs. For example, when I installed Red Hat Enterprise Linux AS 3 I selected the default installation environment with the default package list. Because of that some required RPMs like <tt>gcc</tt>, <tt>redhat-release</tt>, and others were missing. <br> <br> The installation of Oracle10g on my RHELAS3 and RHELAS4 systems worked fine without installing any compatibility RPMs like <tt>compat-gcc</tt>, <tt>compat-libstdc++</tt>, etc. <br> <br> <br><b><a name="CheckingKernelRPM">Checking the <tt>kernel</tt> RPM</b><br><br> It is important that the kernel version for <u>RHELAS2.1</u> is 2.4.9-e.25 or higher. To check the kernel version run: <pre><font color="#0000FF">uname -r</font></pre> For more information on upgrading the kernel, see <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#UpgradingTheLinuxKernel"> Upgrading the Linux Kernel</a></b>. <br> <br> <br><b><a name="CheckingGlibcRPMs">Checking <tt>glibc</tt> RPMs</b><br><br> The <tt>glibc</tt> version that comes with <u>RHELAS4</u>, <u>RHELAS3</u>, <u>RH9</u>, <u>FC1</u>, and <u>FC3</u> CDs passed Oracle's "Product-specific Prerequisite" checks. <br><br> For <u>RHELAS2.1</u> I had to upgrade <tt>glibc</tt> in order to pass Oracle's "Product-specific Prerequisite" checks. Oracle's recommended <tt>glibc</tt> version is 2.2.4.31.7 or higher. For <u>RHELAS2.1</u> I downloaded the latest <tt>glibc</tt> RPMs and I executed the following command: <pre><font color="#0000FF"> su - root
<br><b><a name="CheckingGccMakeBinutilsRPM">Checking <tt>gcc</tt>, <tt>make</tt>, and <tt>binutils</tt> RPMs</b><br><br> Verify that the following RPMs are installed:<br> - For <u>RHELAS4</u> the 10g 10.1.0.3 check will fail for gcc and binutils. Ignore this failed check and proceed.<br> - For <u>RHELAS3</u> and <u>RHELAS2.1</u>: <tt>make-3.79</tt> or newer<br> - For <u>RHELAS3</u> and <u>RHELAS2.1</u>: <tt>binutils-2.11.90.0.8-12</tt> or newer<br> - For <u>RHELAS3</u>: <tt>gcc-3.2.3-2</tt> or newer<br> - For <u>RHELAS2.1</u>: <tt>gcc-2.96-108.1</tt> or newer<br> <pre><font color="#0000FF"> rpm -q gcc make binutils </font></pre> On my <u>RHELAS4</u> system, the <tt>make</tt> and <tt>binutils</tt> RPMs were already installed. However, I had to install a few other RPMs to satisfy dependencies of <tt>gcc</tt> which was not installed on my system. You can find these RPMs on RHELAS4 disk 3 (you can also use newer package versions). <br> <i>Note that the 10g 10.1.0.3 OUI Product-specific Prerequisite check will fail for the gcc and binutils versions on <u>RHELAS4</u>. You can ignore this failed check and proceed.</i> <pre><font color="#0000FF"> su - root
On my <u>RHELAS3</u> system, the <tt>make</tt> and <tt>binutils</tt> RPMs were already installed. However, I had to install a few other RPMs to satisfy dependencies of <tt>gcc</tt> which was not installed on my system. You can find these RPMs on RHELAS3 disk 3 (you can also use newer package versions). <pre><font color="#0000FF"> su - root
On <u>RHELAS2.1</u> system, the <tt>binutils</tt> and <tt>gcc</tt> RPMs will be missing if you did not select the "Software Development" package group during the "RedHat 2.1 Advanced Server" installation. To satisfy dependencies, execute the following command: <pre><font color="#0000FF"> su - root
On my <u>RH9</u> system, the <tt>make</tt> RPM was already installed. However, I had to install a few other RPMs to satisfy dependencies of <tt>gcc</tt> which was not installed on my system (you can also a use newer gcc version). <i>Note that RH9 is not supported by Oracle, and you will have a hard time to find the right RPM versions for Oracle10g. I tried to use the RPMs that came with the RH9 CDs which are easily available to everyone. I did not had any problems installing an Oracle Database 10g (General Purpose Database) on RH9 with these RPMs:</i> <pre><font color="#0000FF"> su - root
On my <u>FC1</u> system, the <tt>make</tt> RPM was already installed. However, I had to install a few other RPMs to satisfy dependencies of <tt>gcc</tt> which was not installed on my system (you can also a use newer gcc version). <i>Note that FC1 is not supported by Oracle, and you will have a hard time to find the right RPM versions for Oracle10g. I tried to use the RPMs that came with the FC1 CDs which are easily available to everyone. I did not had any problems installing an Oracle Database 10g (General Purpose Database) on FC1 with these RPMs:</i> <pre><font color="#0000FF"> su - root
On my <u>FC3</u> system, the <tt>make</tt> RPM was already installed. However, I had to install a few other RPMs to satisfy dependencies of <tt>gcc</tt> which was not installed on my system (you can also a use newer gcc version). <i>Note that FC3 is not supported by Oracle, and you will have a hard time to find the right RPM versions for Oracle10g. I tried to use the RPMs that came with the FC3 CDs which are easily available to everyone. I did not had any problems installing an Oracle Database 10g (General Purpose Database) on FC3 with these RPMs:</i> <pre><font color="#0000FF"> su - root
<i><b>NOTE:</b> The <tt>gcc</tt> version that comes with FC3 will not pass Oracle's "Product-specific Prerequisite" checks. I ignored this warning on FC3.</i></font> <br> <br><b><a name="CheckingOpenmotifRPM">Checking the <tt>openmotif</tt> RPM</b><br><br> For <u>RHELAS4</u> the 10g 10.1.0.3 check will fail for <tt>openmotif</tt>. Ignore this failed check and proceed.<br> For <u>RHELAS3</u> verify that <tt>openmotif-2.2.2-16</tt> or a newer RPM version is installed.<br> For <u>RHELAS2.1</u> verify that <tt>openmotif-2.1.30-11</tt> or a newer RPM version is installed. <pre><font color="#0000FF">rpm -q openmotif </font></pre> For <u>RHELAS4</u>, execute the following command if <tt>openmotif</tt> is not installed (you can also use a newer package version).<br> <i>Note that the 10g 10.1.0.3 OUI Product-specific Prerequisite check will fail for the openmotif version on <u>RHELAS4</u>. You can ignore this failed check and proceed.</i> <pre><font color="#0000FF">su - root rpm -ivh openmotif-2.2.3-6.RHEL4.2.i386.rpm xorg-x11-deprecated-libs-6.8.1-23.EL.i386.rpm</font></pre> For <u>RHELAS3</u>, execute the following command if <tt>openmotif</tt> is not installed (you can also use a newer package version): <pre><font color="#0000FF">su - root rpm -ivh openmotif-2.2.2-16.i386.rpm</font></pre> For <u>RHELAS2.1</u>, execute the following command if <tt>openmotif</tt> is not installed (you can also use a newer package version): <pre><font color="#0000FF">su - root rpm -ivh openmotif-2.1.30-11.i386.rpm</font></pre> On <u>RH9</u>, I executed the following command to install <tt>openmotif</tt> (you can also use a newer package version). <i>Note that RH9 is not supported by Oracle, and you will have a hard time to find the right RPM version for Oracle10g. I tried to use the RPM that came with the RH9 CDs which are easily available to everyone. I did not had any problems installing an Oracle Database 10g (General Purpose Database) on RH9 with this RPM.</i> <pre><font color="#0000FF">su - root rpm -Uvh openmotif-2.2.2-14.i386.rpm</font></pre> On <u>FC1</u>, I executed the following command to install <tt>openmotif</tt> (you can also use a newer package version). <i>Note that FC1 is not supported by Oracle, and you will have a hard time to find the right RPM version for Oracle10g. I tried to use the RPM that came with the FC1 CDs which are easily available to everyone. I did not had any problems installing an Oracle Database 10g (General Purpose Database) on FC1 with this RPM.</i> <pre><font color="#0000FF">su - root rpm -Uvh openmotif-2.2.2-16.1.i386.rpm</font></pre> On <u>FC3</u>, I executed the following command to install <tt>openmotif</tt> (you can also use a newer package version). <i>Note that FC3 is not supported by Oracle, and you will have a hard time to find the right RPM version for Oracle10g. I tried to use the RPM that came with the FC3 CDs which are easily available to everyone. I did not had any problems installing an Oracle Database 10g (General Purpose Database) on FC3 with this RPM.</i> <pre><font color="#0000FF">su - root rpm -Uvh openmotif-2.2.3-6.i386.rpm xorg-x11-deprecated-libs-6.8.1-12.i386.rpm</font></pre> <br><b><a name="CheckingSetarchRPM">Checking the <tt>setarch</tt> RPM</b><br><br> For <u>RHELAS3</u>, verify that the <tt>setarch-1.3-1</tt> RPM or a newer RPM version is installed on your system: <pre><font color="#0000FF">rpm -q setarch</font></pre> The <tt>setarch</tt> utility is new in RHEL4, RHEL3 and Fedora Core. It is used to tell the kernel to report a different architecture than the current one. It is also used to emulate a 3GB virtual address space for applications that don't run properly with a larger virtual address space. <br><br> On <u>RHELAS4</u>, the <tt>setarch</tt> RPM should already be installed by default. <br><br> For <u>RHELAS3</u>, execute the following command if <tt>setarch</tt> is not installed (you can also use a newer package version): <pre><font color="#0000FF">su - root rpm -Uvh setarch-1.3-1.i386.rpm</font></pre> For <u>RHELAS2.1</u> and <u>RH9</u> there is no <tt>setarch</tt> RPM. <br><br> For <u>FC1</u>, you can execute the following command if <tt>setarch</tt> is not installed (you can also use a newer package version). But you won't really need it. <pre><font color="#0000FF">su - root rpm -Uvh setarch-1.0-1.i386.rpm</font></pre> For <u>FC3</u>, you can execute the following command if <tt>setarch</tt> is not installed (you can also use a newer package version). But you won't really need it. <pre><font color="#0000FF">su - root rpm -Uvh setarch-1.6-1.i386.rpm</font></pre> <b><br><a name="CheckingRedhatReleaseRPM">Checking the <tt>redhat-release</tt> RPM</b><br><br> Verify that the <tt>redhat-release</tt> RPM is installed on your Red Hat system: <pre><font color="#0000FF">rpm -q redhat-release</font></pre> This RPM is important for RHEL since <u>RHELAS4</u>, <u>RHELAS3</u>, and <u>RHELAS2.1</u> are Linux releases supported by Oracle. Without this RPM, Oracle 10g OUI won't be able to recognize it as a supported OS. However, the 10g 10.1.0.3 installer does not recognize RHELAS4 as a supported release yet. This means that you will have to edit the <tt>/etc/redhat-release</tt> file, see below. <br> <br> On <u>RHELAS4</u>, the <tt>redhat-release</tt> RPM should already be installed by default. But note that the 10g 10.1.0.3 installer does not recognize RHELAS4 as a supported release yet. This means you will have to edit the <tt>/etc/redhat-release</tt> file, see below. <br><br> For <u>RHELAS3</u>, execute the following command if <tt>redhat-release</tt> was not installed on your system (<tt>redhat-release</tt> can be found on RHELAS3 disk 1): <pre><font color="#0000FF">su - root rpm -ivh redhat-release-3AS-1.i386.rpm</font></pre> For <u>RHELAS2.1</u>, execute the following command if <tt>redhat-release</tt> is not installed on your system (<tt>redhat-release</tt> can be found on RHELAS3 disk 1): <pre><font color="#0000FF">su - root rpm -ivh redhat-release-as-2.1AS-4.noarch.rpm</font></pre> <br> <b>NOTE:</b> On <u>RHELAS4</u>, <u>RH9</u>, and <u>FC</u> you have to change the <tt>/etc/redhat-release</tt> file to make Oracle 10g believe it's running on a supported release. <br> <i>Regarding <u>RHELAS4</u>, the 10g 10.1.0.3 installer does not recognize RHELAS4 as a supported release yet.</i><br> <br> To change the <tt>/etc/redhat-release</tt> file, you can simply copy/paste the following commands: <pre><font color="#0000FF">su - root cp /etc/redhat-release /etc/redhat-release.orig cat > /etc/redhat-release << EOF Red Hat Enterprise Linux AS release 3 (Taroon) EOF </font></pre> After you are done with the Oracle10g installation, undo the changes you made to <tt>/etc/redhat-release</tt>: <pre><font color="#0000FF">su - root cp /etc/redhat-release.orig /etc/redhat-release </font></pre> <b>NOTE:</b> On <u>FC3</u> you don't have to edit <tt> /etc/redhat-release</tt> since the OUI is not very clever. If OUI finds e.g. digit number "3" in the <tt>/etc/redhat-release</tt> file, you pass the "operating system version" check. <br> <br> <font color="#FF0000"><i>I do not recommend to execute "<tt>runInstaller -ignoreSysPrereqs</tt>" since this will disable other checks you probably don't want to.</i></font> <br> <br> <h2><font color="#0000FF"><u><a name="CheckingKernelParameters"> Checking Kernel Parameters</font></font></b></p> </u></font></h2> To see all kernel parameters, execute: <pre><font color="#0000FF">su - root sysctl -a</font></pre> <br> 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: <pre> shmmax = 2147483648 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/shmmax</font>) shmmni = 4096 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/shmmni</font>) shmall = 2097152 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/shmall</font>) shmmin = 1 (To verify, execute: <font color="#0000FF">ipcs -lm |grep "min seg size"</font>) shmseg = 10 (It's hardcoded in the kernel - the default is much higher) semmsl = 250 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/sem | awk '{print $1}'</font>) semmns = 32000 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/sem | awk '{print $2}'</font>) semopm = 100 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/sem | awk '{print $3}'</font>) semmni = 128 (To verify, execute: <font color="#0000FF">cat /proc/sys/kernel/sem | awk '{print $4}'</font>) file-max = 65536 (To verify, execute: <font color="#0000FF">cat /proc/sys/fs/file-max</font>) ip_local_port_range = 1024 65000
</pre> NOTE: Do not change the value of any kernel parameter on a system where it is already higher than listed as minimum requirement. <br><br> On <u>RHELAS4</u>, <u>RHELAS3</u>, <u>RHELAS2.1</u>, <u>RH9</u>, <u>FC1</u>, and <u>FC3</u> I had to increase the kernel parameters <tt>shmmax</tt>, <tt>semopm</tt>, and <tt>filemax</tt> to meet the minimum requirement. <br><br> Oracle also recommends to set the local port range <tt>ip_local_port_range</tt> for outgoing messages to "1024 65000" which is needed for high-usage systems. This kernel parameter defines the local port range for TCP and UDP traffic to choose from. <br><br> I added the following lines to the <tt><font color="#0000FF">/etc/sysctl.conf</font></tt> file which is used during the boot process: <pre><font color="#0000FF">kernel.shmmax=2147483648 kernel.sem=250 32000 100 128 fs.file-max=65536 net.ipv4.ip_local_port_range=1024 65000</font></pre> 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: <pre><font color="#0000FF">su - root sysctl -p</font></pre> <br> For more information on shmmax, shmmni, shmmin, shmseg, and shmall, see <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingSharedMemory"> Setting Shared Memory</a>. <br> For more information on semmsl, semmni, semmns, and semopm, see <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingSemaphores"> Setting Semaphores</a>. <br> For more information on filemax, see <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles"> Setting File Handles</a>. <br> <br> <h2><font color="#0000FF"><u><a name="SizingDiskSpaceForOracle10g"> Sizing Disk Space for Oracle10g</font></font></b></p> </u></font></h2> Oracle says that about 2.5 GB of disk space should be reserved for the <u>Oracle software</u> on Linux. <br> <br> When I did an Oracle 10g Release 1 (10.1.0.3.0) "General Purpose Database" installation (not including any software from the Oracle Database 10g Companion CD), the <u>Oracle software</u> used about 1.3 GB of disk space, and the preconfigured "General Purpose Database" (datafiles, etc.) used about 710 MB of disk space. <pre>$ <font color="#0000FF">du -m -s /u01</font> 1963 /u01 $ <font color="#0000FF">du -m -s /u01/app/oracle/oradata</font> 720 /u01/app/oracle/oradata</font></pre> If you also install additional software from the Oracle Database 10g Companion CD, then add at least 1 GB of free disk space. <br><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> <br> NOTE: If you don't put Oracle10g on a separate filesystems, then make sure the root filesystem "<tt>/</tt>" has enough disk space. You can check the free space of the root filesystem with the following command: <pre><font color="#0000FF">df -h /</font></pre> <br> <h2><font color="#0000FF"><u><a name="UsingAutomaticStorageManagement"> Using Automatic Storage Management (ASM)</font></font></b></p> </u></font></h2> 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>. <br> <br> <h2><font color="#0000FF"><u><a name="CreatingOracleUserAccounts"> Creating Oracle User Accounts</font></font></b></p> </u></font></h2> To create the <tt>oracle</tt> account and groups, execute the following commands: <pre><font color="#0000FF">su - root groupadd dba </font># group of users to be granted SYSDBA system privilege<font color="#0000FF"> groupadd oinstall </font># group owner of Oracle files<font color="#0000FF"> useradd -c "Oracle software owner" -g oinstall -G dba oracle passwd oracle</font></pre> 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 "OINSTALL" group during install of oracle</a>. <br> <br> <h2><font color="#0000FF"><u><a name="SettingShellLimitsForTheOracleUser"> Setting Shell Limits for the Oracle User</font></font></b></p> </u></font></h2> 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> <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: <pre> nofile = 65536 (To verify, execute: <font color="#0000FF">ulimit -n</font>) nproc = 16384 (To verify, execute: <font color="#0000FF">ulimit -u</font>) </pre> 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><br> To see all shell limits, execute: <pre><font color="#0000FF">ulimit -a </font></pre> Oracle's suggestions for setting these shell parameters grants those increased parameters to everyone which is not recommended in secure environments. The following procedure will show how you can increase these parameters for the <tt>oracle</tt> account only. <br><br> For more information on <tt><font color="#0000FF">nofile</font></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 RHELAS 2.1, RHELAS 3, and other versions. <br><br> For more information on <tt><font color="#0000FF">nproc</font></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 RHELAS 2.1, RHELAS 3, and other versions. <br><br> <h2><font color="#0000FF"><u><a name="CreatingOracleDirectories"> Creating Oracle Directories</font></font></b></p> </u></font></h2> For Oracle10g you only need to create the directory for <tt>$ORACLE_BASE</tt>: <pre><font color="#0000FF">su - root mkdir -p /u01/app/oracle chown -R oracle.oinstall /u01 </font></pre> But if you want to comply with Oracle's Optimal Flexible Architecture (OFA), then you don'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: <pre><font color="#0000FF">su - root mkdir -p /u02/oradata/<i>orcl</i> chown -R oracle.oinstall /u02</font></pre> In this example, "orcl" 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> <br><br><b><a name="OptimalFlexibleArchitecture"></a>Optimal Flexible Architecture (OFA) for 10g (10.1.0.2)</b><br><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><br> The home path for the first 10g (10.1.0) database installation on a system would be: <pre> /u01/app/oracle/product/10.1.0/<b>Db_1</b></pre> 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: <pre> /u01/app/oracle/product/10.1.0/Db_<b>2</b></pre> If the Oracle10g software is not owned by the user <tt>oracle</tt> but by the user "oraowner", then the path of the Oracle home directory would be: <pre> /u01/app/<b>oraowner</b>/product/10.1.0/Db_1
</pre> The standard directory name for Oracle10g is "app": <pre> /u01/<b>app</b>/oracle/product/10.1.0/Db_1 </pre> 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: <pre> /<b>disk_1</b>/app/oracle/product/10.1.0/Db_1 </pre> The subtree for database files not stored in ASM disk groups should be named as follows: <pre> <b>/u02</b>/oradata/<<i>db_name_1</i>>
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. <br> <br> <h2><font color="#0000FF"><u><a name="SettingOracleEnvironments"> Setting Oracle Environments</font></font></b></p> </u></font></h2> Since the Oracle Universal Installer (OUI) "<tt>runInstaller</tt>" is run from the <tt>oracle</tt> account, some environment variables must be configured for this account before OUI is started. <br> <br> Execute the following commands for the Bash shell which is the default shell on Red Hat Linux (to verify your shell run: <tt><font color="#0000FF">echo $SHELL</font></tt>): <pre><font color="#0000FF">su - oracle export ORACLE_BASE=/u01/app/oracle export ORACLE_SID=orcl </font></pre> <b>NOTE</b>: If <tt>ORACLE_BASE</tt> is used, then Oracle recommends that you don'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><br> Also, the environment variables <tt>ORACLE_HOME</tt> and <tt>TNS_ADMIN</tt> should not be set. If you've already set these environment variables, you can unset them by running the following commands: <pre><font color="#0000FF">unset ORACLE_HOME unset TNS_ADMIN</font></pre> <br> To have these environment variables set automatically each time you login as <tt>oracle</tt>, you can add these environment variables to the <tt><font color="#0000FF">~oracle/.bash_profile</font></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>'s Bash shell: <pre><font color="#0000FF">su - oracle cat >> ~oracle/.bash_profile << EOF export ORACLE_BASE=/u01/app/oracle export ORACLE_SID=orcl EOF</font></pre> <br> <h2><font color="#0000FF"><u><a name="InstallingOracle10g"> Installing Oracle10g</font></font></b></p> </u></font></h2> <b><a name="InstallingOracle10gOnARemoteLinuxServer">Installing Oracle10g on a Remote Linux Server</b><br><br> If you don'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 "X11 forwarding" feature of ssh. This means that you don't have to run <tt>xhost</tt> and set the <tt>DISPLAY</tt> environment variable. <br><br> Here is an example how to make use of the "X11 forward" feature of ssh. Simply run the following command from your <u>local desktop</u>: <pre>$ <font color="#0000FF">ssh -X oracle@oracle_remote_server_name</font></pre> 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 "<tt>no</tt>" in <tt>/etc/ssh/ssh_config</tt> on the remote server: <pre><font color="#0000FF">su - root</font> # <font color="#0000FF">grep ForwardX11 /etc/ssh/ssh_config | grep -v "^#"</font>
#</font></pre> If you are using <tt>telnet</tt>, however, you will have to set <tt>DISPLAY</tt> manually, see my other article <a href="http://www.puschitz.com/InstallingOracle9i.shtml#StartingrunInstaller"> Starting runInstaller</a> for more information. <br> <br><br><b><a name="StartingOracleUniversalInstaller">Starting Oracle Universal Installer</b><br><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><br> If you install Oracle10g from a CD, mount the CD by running the following commands in another terminal: <pre><font color="#0000FF">su - root mount /mnt/cdrom </font></pre> For <u>RHELAS4</u>, <u>RHELAS3</u>, and <u>FC3</u> you have to execute: <pre><font color="#0000FF">su - root mount /media/cdrom </font></pre> Before you execute <tt><font color="#0000FF">runInstaller</font></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: <pre><font color="#0000FF">su - oracle</font> oracle$ <font color="#0000FF">set</font></pre> To execute <tt>runInstaller</tt> from the mounted CD, run the following command as the <tt>oracle</tt> user: <pre>oracle$ <font color="#0000FF">/mnt/cdrom/runInstaller </tt></font></pre> On <u>RHELAS4</u>, <u>RHELAS3</u>, and <u>FC3</u> run the following command: <pre>oracle$ <font color="#0000FF">/media/cdrom/runInstaller </tt></font></pre> <br><b><a name="UsingOracleUniversalInstaller">Using Oracle Universal Installer (OUI)</b><br><br> The following example shows how to install Oracle10g Database Software and a "General Purpose" database: <pre>
</pre> <br><b><a name="UpdatesAfterRunningOracleUniversalInstaller">Updates after Running Oracle Universal Installer</b><br><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><br> <i> Note that the path for <tt>ORACLE_HOME</tt> might be different on your system!</i><br> <i> Also note that <tt>LD_LIBRARY_PATH</tt> is needed for some Oracle binaries such as </i><tt>sysresv</tt>! <br> <br> For 10g (10.1.0.3) on my system: <pre><font color="#0000FF">su - oracle</font> $ <font color="#0000FF">cat >> ~oracle/.bash_profile << EOF export ORACLE_HOME=\$ORACLE_BASE/product/10.1.0/Db_1 export PATH=$PATH:\$ORACLE_HOME/bin export LD_LIBRARY_PATH=\$ORACLE_HOME/lib EOF . ~oracle/.bash_profile </font></pre> This commmand will add the environment variables to the <tt>~oracle/.profile</tt> and source in the file for the current shell by executing "<tt>. ~oracle/.bash_profile</tt>". <br> <br> NOTE: <font color="#ff0000">Do not add a trailing "/" on the <tt>ORACLE_HOME</tt> environment variable.</font> Otherwise you will get the error "<tt>ORACLE not available</tt>" when you try to connect to sys, see <a href="http://www.puschitz.com/InstallingOracle10gOnSUSE.shtml#Oracle10gLinuxErrorsAndProblems">Oracle10g/Linux Errors and Problems</a> for more information. <br> <br> <h2><font color="#0000FF"><u><a name="OraclePostInstallationTasks"> Oracle Post-installation Tasks</font></font></b></p> </u></font></h2> <i>Before you continue, make sure you followed the steps at <a href="http://www.puschitz.com/InstallingOracle10g.shtml#UpdatesAfterRunningOracleUniversalInstaller"> Updates after Running Oracle Universal Installer</a>.</i> <br> <br> <br> <b><a name="StartupAndShutdownOfTheOracle10gDatabase">Startup and Shutdown of the Oracle10g Database</b><br><br> To startup the database: <pre> oracle$ <font color="#0000FF">sqlplus /nolog</font> SQL> <font color="#0000FF">connect / as sysdba</font> SQL> <font color="#0000FF">startup</font></pre> To shutdown the database: <pre> oracle$ <font color="#0000FF">sqlplus /nolog</font> SQL> <font color="#0000FF">connect / as sysdba</font> SQL> <font color="#0000FF">shutdown</font></pre> 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> <br><br><b><a name="ShutdownOfOtherOracle10gBackgroundProcesses">Shutdown of other Oracle 10g Background Processes</b><br><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: <pre><font color="#0000FF">ps -ef </font></pre> To shutdown the Oracle background processes after an Oracle Database 10g installation, you can execute the following commands: <br> <br> <li>iSQL*Plus</li> <ul> To stop iSQL*Plus, run: <pre><font color="#0000FF">su - oracle isqlplusctl stop</font></pre> </ul> <li>Database Management Processes</li> <ul> During the installation of Oracle 10g, OUI offered two Database Management Options: <br><br> If you selected "Database Control for Database Management", 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: <pre><font color="#0000FF">su - oracle emctl stop dbconsole</font></pre> If you selected "Grid Control for Database Management" which is used for full "Grid Control" installations, then the Oracle Management Agent (standalone agent) for the Oracle Enterprise Manager Grid Control (Grid Control) can be stopped with the following command: <pre><font color="#0000FF">su - oracle emctl stop agent</font></pre> </ul> <li>Oracle Net Listener</li> <ul> To stop the listener, run: <pre><font color="#0000FF">su - oracle lsnrctl stop</font></pre> </ul> <li>Cluster Synchronization Services (CSS)</li> <ul> To shutdown Oracle CSS daemon, run: <pre><font color="#0000FF">su - root /etc/rc.d/init.d/init.cssd stop</font></pre> </ul> <br> <h2><font color="#0000FF"><u><a name="TipsAndHintsForOracle10gOnLinux"> Tips and Hints for Oracle10g on Linux</font></font></b></p> </u></font></h2> <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. <pre><font color="#0000FF">su - root export ORACLE_HOME=/u01/app/oracle/product/10.1.0/Db_1 . $ORACLE_HOME/bin/localconfig delete </font># stops the Oracle CSS daemon and deletes configuration<font color="#0000FF"> rm -rf /u01/app/oracle/* rm -f /etc/oraInst.loc /etc/oratab /etc/oracle rm -f /etc/inittab.cssd rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv </font></pre> Make also sure to <tt><font color="#0000FF">unset</font></tt> and uncomment <tt><font color="#0000FF">ORACLE_HOME</font></tt> from <tt><font color="#0000FF">~oracle/.bash_profile</font></tt>. </ul> </li> <br> <h2><font color="#0000FF"><u><a name="Oracle10gLinuxErrorsAndProblems"> Oracle10g/Linux Errors and Problems</font></font></b></p> </u></font></h2> Here is a list of common Oracle10g installation problems and other issues. <br> <br> <i>Note that most of the issues are due to not following correctly the installation procedure. And some errors are due to not using an Oracle supported Linux OS.</i> <br><br> The Installation log file can be found in <tt>$ORACLE_BASE/oraInventory/logs</tt>. <br> The Database Creation log file can be found in <tt>$ORACLE_BASE/admin/$ORACLE_SID/create</tt>. <br><br> <pre><font color="#ff0000"> <li>Starting Oracle Universal Installer...
</font></pre> <ul> At the time of this writing, Oracle10g (10.1.0) is supported on Red Hat Enterprise Linux 2.1 and 3, and on UnitedLinux 1.0. <br> <br> If you get this error on Red Hat Enterprise Linux 3, then the <tt>redhat-release</tt> RPM is not installed. To rectify this problem, execute the following command: <pre><font color="#0000FF">su - root rpm -ivh redhat-release-3AS-1.i386.rpm openmotif-2.2.2-16.i386.rpm</font></pre> <br> For all other Linux systems that are not supported by Oracle, you have to edit the <tt>/etc/redhat-release</tt> file to make Oracle10g believe it is running on a supported Linux operating system. For RH9 and FC1 you can simply copy/paste the following commands: <pre><font color="#0000FF">su - root cp /etc/redhat-release /etc/redhat-release.backup cat > /etc/redhat-release << EOF Red Hat Enterprise Linux AS release 3 (Taroon) EOF </font></pre> After you are done with the Oracle10g installation, undo the changes you made to <tt>/etc/redhat-release</tt>: <pre><font color="#0000FF">su - root cp /etc/redhat-release.backup /etc/redhat-release</font></pre> <i>I do not recommend to execute "<tt>runInstaller -ignoreSysPrereqs</tt>" since this will disable other checks you probably don't want to.</i> </ul> </li> <pre><font color="#ff0000"> <li>Checking for gcc-2.96; found Not found. Failed <<<< </font></pre> <ul> See <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingGccMakeBinutilsRPM"> Checking gcc, make, and binutils RPMs</a>. <br><br> Note that "Retry" in the "Product-specific Prerequisite Checks" window does not work. So you either set it manually to Passed or you restart OUI. </ul> </li> <pre><font color="#ff0000"> <li>Checking for openmotif-2.1.30-11; found Not found. Failed << </font></pre> <ul> See <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingOpenmotifRPM"> Checking the openmotif RPM</a>. <br><br> Note that "Retry" in the "Product-specific Prerequisite Checks" window does not work. So you either set it manually to Passed or you restart OUI. </ul> </li> <pre><font color="#ff0000"> <li>Checking for shmmax=2147483648; found shmmax=33554432. Failed <<<< </font></pre> <ul> Increase the <tt>shmmax</tt> kernel parameter. <br><br> For more information on <tt>shmmax</tt>, see <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingKernelParameters"> Checking Kernel Parameters</a>. <br><br> Note that "Retry" in the "Product-specific Prerequisite Checks" window does not work. So you either set it manually to Passed or you restart OUI. </ul> </li> <pre><font color="#ff0000"> <li>Checking for semopm=100; found semopm=32. Failed <<<< </font></pre> <ul> Increase the <tt>semopm</tt> kernel parameter. <br><br> For more information on <tt>semopm</tt>, see <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingKernelParameters"> Checking Kernel Parameters</a>. <br><br> Note that "Retry" in the "Product-specific Prerequisite Checks" window does not work. So you either set it manually to Passed or you restart OUI. </ul> </li> <pre><font color="#ff0000"> <li>Checking for filemax=65536; found filemax=26163. Failed <<<< </font></pre> <ul> Increase the <tt>file-max</tt> kernel parameter: <br><br> For more information on <tt>file-max</tt>, see <a href="http://www.puschitz.com/InstallingOracle10g.shtml#CheckingKernelParameters"> Checking Kernel Parameters</a>. <br><br> Note that "Retry" in the "Product-specific Prerequisite Checks" window does not work. So you either set it manually to Passed or you restart OUI. </ul> </li> <pre><font color="#ff0000"> <li>ORA-01034: ORACLE not available
<font color="#ff0000"> ORA-01034: ORACLE not available</font> </font></pre> <ul> First check if <tt>ORACLE_SID</tt> is set correctly. <br> If <tt>ORACLE_SID</tt> is set correctly, then you probably have a trailing slash "/" on the <tt>ORACLE_HOME</tt> environment variable. Remove it and try again to connect to sys. </ul> </li> <pre><font color="#ff0000"> <li>ORA-00988 missing or invalid password(s). </font></pre> <ul> During the Oracle10g installation you probably provided a password for the Oracle database accounts that started with a digit number. Ignore this error message and change the password when you are done with the Oracle10g installation. <br> <br> </ul> </li> <pre> <li>$ sysresv -i<font color="#ff0000">
</font></pre> <ul> Make sure <tt>LD_LIBRARY_PATH</tt> is set to <tt>$ORACLE_HOME/lib</tt>: <pre>oracle$ <font color="#0000FF">export LD_LIBRARY_PATH=$ORACLE_HOME/lib</font></pre> </ul> </li> <pre><font color="#ff0000"> <li>X11 connection rejected because of wrong authentication.
</font></pre> <ul> To rectify this problem, try to login to the remote Oracle server again by using the "X11 forward" feature of ssh. Execute the following command from your <u>local desktop</u>: <pre>$ <font color="#0000FF">ssh -X oracle@oracle_remote_server_name</font></pre> 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 "<tt>no</tt>" in <tt>/etc/ssh/ssh_config</tt> on your remote server: <pre><font color="#0000FF">su - root</font> # <font color="#0000FF">grep ForwardX11 /etc/ssh/ssh_config | grep -v "^#"</font>
#</font></pre> If you are using <tt>telnet</tt>, however, you will have to set <tt>DISPLAY</tt> manually, see my other article <a href="http://www.puschitz.com/InstallingOracle9i.shtml#StartingrunInstaller"> Starting runInstaller</a> for more information. <br> <br> </ul> </li> <font color="#FF0000"> <li> Recovery Manager <tt>rman</tt> hangs</tt> </font> <ul> You are probably running the wrong <tt>rman</tt> binary which belongs to the <tt>XFree86-devel</tt> RPM: <pre>$ <font color="#0000FF">which rman</font> /usr/X11R6/bin/rman</pre> </ul> </li> <pre><font color="#ff0000"> <li>ORA-00988 missing or invalid password(s). </font></pre> <ul> During the Oracle10g installation you probably provided a password for the Oracle database accounts that started with a digit number. Ignore this error message and change the password when you are done with the Oracle10g installation. <br> <br> </ul> </li> <pre> <li>$ ./runInstaller
</pre></font> <ul> If you are missing a shared library, simply run the following command to find out which RPM you are missing: <pre># <font color="#0000FF">rpm -q --whatprovides libXp.so.6</font> xorg-x11-deprecated-libs-6.8.1-12.FC3.21</pre> In this example install the <tt>xorg-x11-deprecated-libs</tt> RPM. <br> <br> </ul> <pre> <li>$ lsnrctl start
</pre></font> <ul> Make sure the loopback entry in <tt><font color="#0000FF">/etc/hosts</font></tt> is not missing when you start the listener: <pre><font color="#0000FF">127.0.0.1 localhost.localdomain localhost</font></pre> Now try to run <tt>lsnrctl start</tt> as <tt>oracle</tt> again. <br> <br> </ul> <h2><font color="#0000FF"><u><a name="References"> References</font></font></b></p> </u></font></h2> <a href="http://download-east.oracle.com/docs/html/B10811_01/toc.htm"> Oracle Database 10g Installation Guide for UNIX Systems</a> <br> <a href="http://otn.oracle.com/documentation/database10g.html"> Oracle Database 10g Release 1 (10.1) Documentation</a> <br> <a href="http://www.puschitz.com/OracleOnLinux.shtml"> Werner's Oracle - Linux Page</a> <br> <br> <br> <center><b>Copyright ©</b></center> <br> <center><small> The information provided in this article shows how I installed Oracle10g on my server(s) and is distributed AS IS. Every effort has been made to provide the information as accurate as possible, but no warranty or fitness is implied. The use of this information described herein is your responsibility, and to use it in your own environments do so at your own risk. </font></center>
Tags:
none |