Oracle 10g R2 (10.2.0.1.0) on Fedora Core Linux 2, 3 and 4

From Oracle FAQ
Jump to: navigation, search

This HOWTO describes the step-by-step installation of Oracle 10gR2 database software on Fedora core 2, 3 and 4. However, it does not cover the database creation process, nor ASM instance creation.

Note that Fedora Core distribution is not certified by Oracle Corporation.

Contents

[edit] Pre-installation tasks

1. Create oracle User Account

Login as root and create the user oracle which belongs to dba group.

su -
# groupadd dba
# useradd -g dba oracle

2. Setting system parameters

Edit the /etc/sysctl.conf and add following lines:

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

Note: You need reboot system or execute "sysctl -p" command to apply above settings.

Edit the /etc/pam.d/login file and add following line:

session    required     /lib/security/pam_limits.so

Edit the /etc/security/limits.conf file and add following lines:

oracle    soft  nproc   2047
oracle    hard  nproc   16384
oracle    soft  nofile  1024
oracle    hard  nofile  65536

This step is important for Fedora Core 4 only:

Edit /etc/selinux/config and change value of SELINUX variable to "disabled".

SELINUX=disabled

Note: You need reboot computer to apply above settings.

3. Creating oracle directories

# mkdir /opt/oracle
# mkdir /opt/oracle/10gR2
# chown -R oracle:dba /opt/oracle

4. Setting Oracle Environment

Edit the /home/oracle/.bash_profile file and add following lines:

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/10gR2
ORACLE_SID=MY_ORACLE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

Save the .bash_profile and execute following commands for load new environment:

cd /home/oracle
. .bash_profile

[edit] Download and install

1. Download and install required .rpm packages

Some additional packages are required for successful installation of Oracle software. To check if the required packages are installed on your operating system use following command:

rpm -q binutils gcc glibc glibc-headers glibc-kernheaders glibc-devel compat-libstdc++ cpp compat-gcc make compat-db compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel openmotif openmotif21 setarch pdksh libaio libaio-devel

Note: Since FC4 pdksh package was renamed to ksh.

If some package is not installed then install it from installation media or download it from following locations:

Install the required packages using the rpm command:

# rpm -ivh binutils-2.15.94.0.2.2-2.i386.rpm \
compat-libgcc-296-2.96-132.fc4.i386.rpm \
compat-libstdc++-296-2.96-132.fc4.i386.rpm \
compat-libstdc++-33-3.2.3-47.fc4.i386.rpm \
cpp-4.0.0-8.i386.rpm \
gcc-4.0.0-8.i386.rpm \
gcc-c++-4.0.0-8.i386.rpm \
glibc-2.3.5-10.i386.rpm \
glibc-common-2.3.5-10.i386.rpm \
glibc-devel-2.3.5-10.i386.rpm \
glibc-headers-2.3.5-10.i386.rpm \
glibc-kernheaders-2.4-9.1.94.i386.rpm \
ksh-20050202-1.i386.rpm \
libaio-0.3.104-2.i386.rpm \
libaio-devel-0.3.104-2.i386.rpm \
libgcc-4.0.0-8.i386.rpm \
libstdc++-4.0.0-8.i386.rpm \
libstdc++-devel-4.0.0-8.i386.rpm \
make-3.80-7.i386.rpm \
openmotif-2.2.3-10.i386.rpm \
openmotif21-2.1.30-14.i386.rpm \
setarch-1.7-3.i386.rpm \
xorg-x11-deprecated-libs-6.8.2-31.i386.rpm

2. Download the Oracle 10g release 2 (10.2.0.1.0) software from http://www.oracle.com/technology/software/products/database/oracle10g/index.html

Extract the files using following command:

unzip 10201_database_linux32.zip

3. Start the Oracle software installation process.

Now the system is prepared for Oracle software installation. To start the installation process execute the following commands:

cd db/Disk1/
./runInstaller

[edit] Post-installation tasks

1. Use this step when you will be not running RAC or ASM instance.

su -
# /etc/init.d/init.cssd disable
# /etc/init.d/init.cssd stop

[edit] Common installation errors

  • Error:

DISPLAY not set. Please set the DISPLAY and try again.

Solution: Execute "export DISPLAY=:0.0" when you perform installtion on local machine or "export DISPLAY=<clientIP>:0.0 when you perform installation on remote machine connected over SSH". Don't forget to execute "xhost +" command on client machine.

  • Error:

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2005-07-07_09-40-45AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred. java.lang.UnsatisfiedLinkError: /tmp/OraInstall2005-07-07_09-40-45AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

Solution: Install the xorg-x11-deprecated-libs RPM package (>=FC) or libXp package (FC5 and later).

  • Error:

...cannot restore segment prot after reloc: Permission denied

Solution 1: Modify /etc/selinux/config and change value of SELINUX to "disabled" and reboot computer.

Solution 2: Download selinux-policy-targeted-1.25.2-4.noarch.rpm from FC4 location and upgrade existing package.

  • Error:

error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

Solution: Install libaio and libaio-devel packages. If packages already installed and error still occurs try execute "ldconfig" as root.

  • Error:

Check complete. The overall result of this check is: Failed <<<<

Solution: Install missing package or set check system parameters (See reason of failure).


Republished with permission. Original URL http://ivan.kartik.sk/oracle/install_ora10gR2_fedora.html