`
zhyiwww
  • 浏览: 90027 次
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

how to install oracle 10g on fedora (转载)

阅读更多

Written by Werner Puschitz.


Installing Oracle Database 10g on Red Hat Enterprise
Linux AS 4, 3, 2.1, Red Hat Fedora Core 3 , 1 and on RH 9

www.puschitz.com

* I felt I had to copy Mr. Werner Puschitz Oracle 10g install guide since I think its one of the best and more concise guides on the internet. Beleive me, ive followed several install guides for Linux and also for MacOsX and this guide is world class. Thanks a lot Werner, in case you see this. (Felipe Cruz) *


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.

This guide shows how I installed:
- Oracle 10g (10.1.0.3) on Red Hat Enterprise Linux Advanced Server 4 (RHELAS4)
- Oracle 10g (10.1.0.2) on Red Hat Enterprise Linux Advanced Server 3 (RHELAS3)
- Oracle 10g (10.1.0.2) on Red Hat Enterprise Linux Advanced Server 2.1 (RHELAS2.1)
- Oracle 10g (10.1.0.3) on Red Hat Fedora Core 3 (FC3)
- Oracle 10g (10.1.0.2) on Red Hat Fedora Core 3 (FC3)
- Oracle 10g (10.1.0.2) on Red Hat Fedora Core 1 (FC1)
- Oracle 10g (10.1.0.2) on Red Hat 9 (RH9)

These instructions will also work for Red Hat Enterprise Linux ES 2.1 and 3.


Oracle Database 10g on other Linux Distributions

People recommended this installation guide also for:

WhiteBox Linux 3

Works exactly like on RHELAS3.

Validation/Certification

For Validations/Certifications, go to Oracle's Certification Matrices.


This article covers the following subjects and steps:

* Downloading Oracle10g Software and Burning Oracle10g CDs
* Checking Memory and Swap Space
* Checking /tmp Space
* Checking Software Packages (RPMs)
Checking the kernel RPM
Checking glibc RPMs
Checking gcc, make, and binutils RPMs
Checking the openmotif RPM
Checking the setarch RPM
Checking the redhat-release RPM
* Checking Kernel Parameters
* Sizing Disk Space for Oracle10g
* Creating Oracle User Accounts
* Setting Shell Limits for the Oracle User
* Creating Oracle Directories
Optimal Flexible Architecture (OFA) for 10g (10.1.0.2)
* Setting Oracle Environments
* Installing Oracle10g
Installing Oracle10g on a Remote Linux Server
Starting Oracle Universal Installer
Using Oracle Universal Installer
Updates after Running Oracle Universal Installer
* Oracle Post-installation Tasks
Startup and Shutdown of the Oracle10g Database
Shutdown of other Oracle 10g Background Processes
* Tips and Hints for Oracle10g on Linux
* Oracle10g/Linux Errors and Problems
* References


Downloading Oracle10g Software and Burning Oracle10g CDs

Download Oracle10g for Linux from OTN:
http://otn.oracle.com/software/products/database/oracle10g/index.html

NOTE: To install a Oracle Database 10g (without RAC) you only need to download the file ship.db.lnx32.cpio.gz.

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:

cksum ship.db.lnx32.cpio.gz

Uncompress the downloaded file(s):

gunzip ship.db.lnx32.cpio.gz

Unpack ship.db.lnx32.cpio:

$ cpio -idmv < ship.db.lnx32.cpio
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
...

I executed the following command to burn the Disk1 directory on a CD:

# mkisofs -r Disk1 | cdrecord -v dev=0,0,0 speed=20 -

(Drives' speed varies; you can get the dev numbers when you execute cdrecord -scanbus).

Checking Memory and Swap Space

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 Sizing Swap Space.
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.

To check the size of physical memory, execute:

grep MemTotal /proc/meminfo

To check the size of swap space, execute:

grep SwapTotal /proc/meminfo


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:

su - root
dd if=/dev/zero of=tmpswap bs=1k count=900000
chmod 600 tmpswap
mkswap tmpswap
swapon tmpswap

To disable the temporary swap space execute the following commands:

su - root
swapoff tmpswap
rm tmpswap


Checking /tmp Space

According to Oracle's documentation, the Oracle Universal Installer (OUI) requires up to 400 MB of free space in the /tmp directory. But OUI checks if /tmp is only greater than 80 MB.

To check the space in /tmp, run:

$ df /tmp

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

su - root
mkdir /<anotherfilesystem>/tmp</anotherfilesystem>
chown root.root /<anotherfilesystem>/tmp</anotherfilesystem>
chmod 1777 /<anotherfilesystem>/tmp</anotherfilesystem>
export TEMP=/<anotherfilesystem> # used by Oracle</anotherfilesystem>
export TMPDIR=/<anotherfilesystem> # used by Linux programs like the linker "ld"</anotherfilesystem>

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

su - root
rmdir /<anotherfilesystem>/tmp</anotherfilesystem>
unset TEMP
unset TMPDIR


Checking Software Packages (RPMs)

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 gcc, redhat-release, and others were missing.

The installation of Oracle10g on my RHELAS3 and RHELAS4 systems worked fine without installing any compatibility RPMs like compat-gcc, compat-libstdc++, etc.


Checking the kernel RPM

It is important that the kernel version for RHELAS2.1 is 2.4.9-e.25 or higher. To check the kernel version run:

uname -r

For more information on upgrading the kernel, see Upgrading the Linux Kernel.


Checking glibc RPMs

The glibc version that comes with RHELAS4, RHELAS3, RH9, FC1, and FC3 CDs passed Oracle's "Product-specific Prerequisite" checks.

For RHELAS2.1 I had to upgrade glibc in order to pass Oracle's "Product-specific Prerequisite" checks. Oracle's recommended glibc version is 2.2.4.31.7 or higher. For RHELAS2.1 I downloaded the latest glibc RPMs and I executed the following command:

su - root
rpm -Uvh glibc-2.2.4-32.11.i686.rpm glibc-common-2.2.4-32.11.i386.rpm


Checking gcc, make, and binutils RPMs

Verify that the following RPMs are installed:
- For RHELAS4 the 10g 10.1.0.3 check will fail for gcc and binutils. Ignore this failed check and proceed.
- For RHELAS3 and RHELAS2.1: make-3.79 or newer
- For RHELAS3 and RHELAS2.1: binutils-2.11.90.0.8-12 or newer
- For RHELAS3: gcc-3.2.3-2 or newer
- For RHELAS2.1: gcc-2.96-108.1 or newer

rpm -q gcc make binutils


On my RHELAS4 system, the make and binutils RPMs were already installed. However, I had to install a few other RPMs to satisfy dependencies of gcc which was not installed on my system. You can find these RPMs on RHELAS4 disk 3 (you can also use newer package versions).
Note that the 10g 10.1.0.3 OUI Product-specific Prerequisite check will fail for the gcc and binutils versions on RHELAS4. You can ignore this failed check and proceed.

su - root
rpm -Uvh gcc-3.4.3-9.EL4.i386.rpm \
glibc-devel-2.3.4-2.i386.rpm \
glibc-headers-2.3.4-2.i386.rpm \
glibc-kernheaders-2.4-9.1.87.i386.rpm

On my RHELAS3 system, the make and binutils RPMs were already installed. However, I had to install a few other RPMs to satisfy dependencies of gcc which was not installed on my system. You can find these RPMs on RHELAS3 disk 3 (you can also use newer package versions).

su - root
rpm -Uvh gcc-3.2.3-20.i386.rpm \
glibc-devel-2.3.2-95.3.i386.rpm \
glibc-headers-2.3.2-95.3.i386.rpm \
glibc-kernheaders-2.4-8.34.i386.rpm

On RHELAS2.1 system, the binutils and gcc 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:

su - root
rpm -ivh gcc-2.96-108.1.i386.rpm \
binutils-2.11.90.0.8-12.i386.rpm \
cpp-2.96-108.1.i386.rpm \
glibc-devel-2.2.4-32.11.i386.rpm \
kernel-headers-2.4.9-e.3.i386.rpm

On my RH9 system, the make RPM was already installed. However, I had to install a few other RPMs to satisfy dependencies of gcc which was not installed on my system (you can also a use newer gcc version). 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:

su - root
rpm -Uvh gcc-3.2.2-5.i386.rpm \
glibc-devel-2.3.2-5.i386.rpm \
cpp-3.2.2-5.i386.rpm \
glibc-kernheaders-2.4-8.10.i386.rpm \
binutils-2.13.90.0.18-9.i386.rpm

On my FC1 system, the make RPM was already installed. However, I had to install a few other RPMs to satisfy dependencies of gcc which was not installed on my system (you can also a use newer gcc version). 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:

su - root
rpm -Uvh gcc-3.3.2-1.i386.rpm \
glibc-devel-2.3.2-101.i386.rpm \
cpp-3.3.2-1.i386.rpm \
glibc-headers-2.3.2-101.i386.rpm \
glibc-kernheaders-2.4-8.36.i386.rpm \
binutils-2.14.90.0.6-3.i386.rpm

On my FC3 system, the make RPM was already installed. However, I had to install a few other RPMs to satisfy dependencies of gcc which was not installed on my system (you can also a use newer gcc version). 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:

su - root
rpm -Uvh gcc-3.4.2-6.fc3.i386.rpm \
cpp-3.4.2-6.fc3.i386.rpm \
glibc-devel-2.3.3-74.i386.rpm \
glibc-headers-2.3.3-74.i386.rpm \
glibc-kernheaders-2.4-9.1.87.i386.rpm

NOTE: The gcc version that comes with FC3 will not pass Oracle's "Product-specific Prerequisite" checks. I ignored this warning on FC3.

Checking the openmotif RPM

For RHELAS4 the 10g 10.1.0.3 check will fail for openmotif. Ignore this failed check and proceed.
For RHELAS3 verify that openmotif-2.2.2-16 or a newer RPM version is installed.
For RHELAS2.1 verify that openmotif-2.1.30-11 or a newer RPM version is installed.

rpm -q openmotif


For RHELAS4, execute the following command if openmotif is not installed (you can also use a newer package version).
Note that the 10g 10.1.0.3 OUI Product-specific Prerequisite check will fail for the openmotif version on RHELAS4. You can ignore this failed check and proceed.

su - root
rpm -ivh openmotif-2.2.3-6.RHEL4.2.i386.rpm xorg-x11-deprecated-libs-6.8.1-23.EL.i386.rpm

For RHELAS3, execute the following command if openmotif is not installed (you can also use a newer package version):

su - root
rpm -ivh openmotif-2.2.2-16.i386.rpm

For RHELAS2.1, execute the following command if openmotif is not installed (you can also use a newer package version):

su - root
rpm -ivh openmotif-2.1.30-11.i386.rpm

On RH9, I executed the following command to install openmotif (you can also use a newer package version). 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.

su - root
rpm -Uvh openmotif-2.2.2-14.i386.rpm

On FC1, I executed the following command to install openmotif (you can also use a newer package version). 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.

su - root
rpm -Uvh openmotif-2.2.2-16.1.i386.rpm

On FC3, I executed the following command to install openmotif (you can also use a newer package version). 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.

su - root
rpm -Uvh openmotif-2.2.3-6.i386.rpm xorg-x11-deprecated-libs-6.8.1-12.i386.rpm


Checking the setarch RPM

For RHELAS3, verify that the setarch-1.3-1 RPM or a newer RPM version is installed on your system:

rpm -q setarch

The setarch 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.

On RHELAS4, the setarch RPM should already be installed by default.

For RHELAS3, execute the following command if setarch is not installed (you can also use a newer package version):

su - root
rpm -Uvh setarch-1.3-1.i386.rpm

For RHELAS2.1 and RH9 there is no setarch RPM.

For FC1, you can execute the following command if setarch is not installed (you can also use a newer package version). But you won't really need it.

su - root
rpm -Uvh setarch-1.0-1.i386.rpm

For FC3, you can execute the following command if setarch is not installed (you can also use a newer package version). But you won't really need it.

su - root
rpm -Uvh setarch-1.6-1.i386.rpm


Checking the redhat-release RPM

Verify that the redhat-release RPM is installed on your Red Hat system:

rpm -q redhat-release

This RPM is important for RHEL since RHELAS4, RHELAS3, and RHELAS2.1 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 /etc/redhat-release file, see below.

On RHELAS4, the redhat-release 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 /etc/redhat-release file, see below.

For RHELAS3, execute the following command if redhat-release was not installed on your system (redhat-release can be found on RHELAS3 disk 1):

su - root
rpm -ivh redhat-release-3AS-1.i386.rpm

For RHELAS2.1, execute the following command if redhat-release is not installed on your system (redhat-release can be found on RHELAS3 disk 1):

su - root
rpm -ivh redhat-release-as-2.1AS-4.noarch.rpm


NOTE: On RHELAS4, RH9, and FC you have to change the /etc/redhat-release file to make Oracle 10g believe it's running on a supported release.
Regarding RHELAS4, the 10g 10.1.0.3 installer does not recognize RHELAS4 as a supported release yet.

To change the /etc/redhat-release file, you can simply copy/paste the following commands:

su - root
cp /etc/redhat-release /etc/redhat-release.orig
cat > /etc/redhat-release << EOF
Red Hat Enterprise Linux AS release 3 (Taroon)
EOF

After you are done with the Oracle10g installation, undo the changes you made to /etc/redhat-release:

su - root
cp /etc/redhat-release.orig /etc/redhat-release


NOTE: On FC3 you don't have to edit /etc/redhat-release since the OUI is not very clever. If OUI finds e.g. digit number "3" in the /etc/redhat-release file, you pass the "operating system version" check.

I do not recommend to execute "runInstaller -ignoreSysPrereqs" since this will disable other checks you probably don't want to.

Checking Kernel Parameters

To see all kernel parameters, execute:

su - root
sysctl -a


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 proc filesystem:

shmmax = 2147483648 (To verify, execute: cat /proc/sys/kernel/shmmax)
shmmni = 4096 (To verify, execute: cat /proc/sys/kernel/shmmni)
shmall = 2097152 (To verify, execute: cat /proc/sys/kernel/shmall)
shmmin = 1 (To verify, execute: ipcs -lm |grep "min seg size")
shmseg = 10 (It's hardcoded in the kernel - the default is much higher)

semmsl = 250 (To verify, execute: cat /proc/sys/kernel/sem | awk '{print $1}')
semmns = 32000 (To verify, execute: cat /proc/sys/kernel/sem | awk '{print $2}')
semopm = 100 (To verify, execute: cat /proc/sys/kernel/sem | awk '{print $3}')
semmni = 128 (To verify, execute: cat /proc/sys/kernel/sem | awk '{print $4}')

file-max = 65536 (To verify, execute: cat /proc/sys/fs/file-max)
font-
分享到:
评论

相关推荐

    Linux rpm for fedora 7 oracle 10g install 4

    Linux rpm for fedora 7 oracle 10g install oracle 10g Linux rpm for fedora 7 oracle 10g install oracle 10g

    Linux rpm Linux rpm for fedora 7 oracle 10g install

    Linux rpm for fedora 7 oracle 10g install oracle 10g

    fedora11安装Oracle 10g .pdf

    Fedora11 安装 oracle10g_10.2的步骤

    fedora13上面安装oracle10g

    在Fedora 13上安装Oracle 10g是一个相对复杂的过程,因为Oracle官方并不直接支持Fedora操作系统,特别是较旧的版本如Fedora 13。然而,通过一些技巧和工作,我们可以让这个过程变得可行。以下是安装Oracle 10g在...

    Install Oracle 9i (R2) on Fedora 2, 3, 4, 5 and 6

    在本教程中,我们将深入探讨如何在Fedora的不同版本(从2到6)上安装Oracle 9i Release 2(R2)。Oracle数据库是企业级的关系型数据库管理系统,广泛用于大型企业的数据存储和处理。而Fedora是基于RHEL(Red Hat ...

    oracle 10g在fedora 7安装所需的软件

    Fedora 7安装oracle缺少不少东西,我安装F7的时候还算是比较全面的安装,但是还是缺少不少东西,测试需要的软件如下: &lt;br&gt;$ rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-...

    Oracle10g_Linux安装步骤

    以下是对Oracle10g在Linux系统(如Fedora11)上安装的详细步骤的解析: 1. **配置安装环境** 在安装Oracle数据库之前,确保系统满足最低硬件和软件需求。Fedora11需要更新到最新补丁,以确保与Oracle10g兼容。检查...

    fedora 7安装oracle10g所需软件2

    在Fedora 7系统上安装Oracle 10g是一项复杂的工作,因为Oracle数据库软件通常对操作系统版本和依赖性有特定的要求。在这个过程中,你需要确保所有必要的软件包都已安装并且是最适合Oracle 10g的版本。以下是标题和...

    fedora8上安装oracle

    Oracle 11g不支持Red Hat 8,因此需要确保你的Fedora 8系统的内核版本至少是2.4.21-138。可以使用`uname -r`命令检查当前内核版本。如果版本过低,可能需要通过升级内核或者寻找与Oracle兼容的旧版Fedora来满足需求...

    Fedora Core 5系统下安装Oracle 10g

    在Fedora Core 5系统上安装Oracle 10g是一项技术性较强的任务,涉及到操作系统与数据库软件的集成。以下是详细的步骤和相关知识点: 1. **创建Oracle组和用户**: 在Linux环境下,为了安全和管理的便利,通常会...

    How to Install_Linux( linux的安装)

    本文将详细介绍如何使用wingrub这一工具来引导并安装Linux操作系统,特别是以Fedora 4.0为例进行详述。 #### 二、wingrub简介 **wingrub**是一款基于Windows平台的系统引导管理工具,它是GRUB(Grand Unified ...

    openstack install guid for Linux,CentOS,Fedora

    how to install OpenStack by using packages available through Fedora 20 as well as on Red Hat Enterprise Linux and its derivatives through the EPEL repository. Explanations of configuration options and...

    推荐下载-linux命令行下安装oracle10G 精品.docx

    以下是在Fedora Core 6上安装Oracle 10g的详细步骤: 1. **安装前的准备** - **设置语言环境**:首先,确保你的环境变量`LANG`设置为英文,因为命令行可能无法正确显示中文。你可以通过`export LANG=en_US.UTF-8`...

    FC5中安装oracle10g

    然而,Oracle 10g官方并没有直接提供对Fedora Core 5 (简称FC5)的支持。但这并不意味着无法在FC5上安装Oracle 10g,只需要采用一些特定的方法即可实现。本文将详细介绍在FC5上安装Oracle 10g的过程,并提供实用的...

    oracle11g依赖包

    Oracle 11g是一款广泛应用的关系型数据库管理系统,其在安装过程中需要依赖于一系列的系统库和工具。在没有网络连接的环境下,确保所有必要的依赖包已经准备就绪至关重要。在这个场景下,我们有一个名为"oracle11g...

    Install_GitLab_on_Fedora_Linux._在_Fedora_Linux_上安装_

    Install_GitLab_on_Fedora_Linux._在_Fedora_Linux_上安装_gitlab-fedora

    oracle11g所有rpm包大全

    Oracle 11g是一款广泛应用的关系型数据库管理系统,由甲骨文公司开发,广泛服务于企业级的数据存储、管理和分析。RPM(Red Hat Package Manager)是Linux系统中用于软件包管理的一种格式,尤其在基于Red Hat的发行版...

Global site tag (gtag.js) - Google Analytics