0% found this document useful (0 votes)
56 views7 pages

Installing Oracle 9i on RHEL5 Guide

The document provides step-by-step instructions for installing Oracle 9i on Red Hat Enterprise Linux 5 (RHEL5). It describes downloading required files, installing prerequisite packages and patches, configuring kernel parameters, creating Oracle-specific users and groups, setting environment variables, and running the Oracle installer and database configuration assistant (DBCA). The key steps are: 1) disabling SELinux and installing Java Runtime Environment 1.3.1, 2) installing missing package dependencies, 3) creating Oracle software directories and users, 4) configuring environment variables, and 5) running the Oracle installer and retrying failed DBCA services selection-by-selection.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views7 pages

Installing Oracle 9i on RHEL5 Guide

The document provides step-by-step instructions for installing Oracle 9i on Red Hat Enterprise Linux 5 (RHEL5). It describes downloading required files, installing prerequisite packages and patches, configuring kernel parameters, creating Oracle-specific users and groups, setting environment variables, and running the Oracle installer and database configuration assistant (DBCA). The key steps are: 1) disabling SELinux and installing Java Runtime Environment 1.3.1, 2) installing missing package dependencies, 3) creating Oracle software directories and users, 4) configuring environment variables, and 5) running the Oracle installer and retrying failed DBCA services selection-by-selection.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Installing Oracle 9i on RHEL5.

December 16, 2008

Filed under: Installing Oracle 9i on RHEL5.,Linux — kienmanowar @ 9:39 am

I have to install Oracle 9i on RHEL5, i follow all steps to set up OS, environment
variables, install all require rpm files. When run the /runinstaller , select appropriate
choices. After few clicks Oracle will be installed. However i face a problem during
dbca configuration, like this :
Try to fix but i can’t find the solution, i guess may be wrong with JRE, after few
minutes for google … i found the solution to run DbCA. Here is all the steps from
nirajkvinit’s blog to install oracle9i :

Assuming

• You know how to operate a Linux Box. (Navigating directories/ knowhow of basic
commands)

• You know how to install software modules/libraries (Mostly rpms for RHEL5).

• You have a system installed with RHEL5 or you know how to install it.

Important tips during installation of RHEL5

• Do not install Virtualization support during RHEL5 installation. I don’t know why but
my Oracle 9i Installation behaved erratically whenever this Virtualization module was
present in my system. It installs a different Kernel (Xen). So skip it.

• During RHEL5 Installation disable SELinux. If you couldn’t do it in the first place then
don’t worry, read ahead to know how to disable it.

1. Installing Oracle 9i on RHEL5 (Logged in as root)

• Disabling SELinux – Disable SELinux now (If you couldn’t disable it during
installation).

#gedit /etc/selinux/config

And make sure to set the SELINUX Flag disabled.

SELINUX=disabled

Installing JRE – Newer version of JRE behaved badly in my Oracle installation, so


Download the Java Runtime Enviroment (I used j2re-1_3_1_19-[Link])
from [Link] . Fire the
command prompt and navigate to the location where you have stored the
downloaded file. Most probably it will be Root’s Desktop Directory. So go there.

#cd /root/Desktop

Give the file, execute permission and then execute it. When the JRE is
exracted, move the extracted directory into the “/usr/local” directory.

# chmod +x j2re-1_3_1_19-[Link]
# ./ j2re-1_3_1_19-[Link]
# mv jre1.3.1_19 /usr/local/
• Installing missing libraries – You don’t know whether you have the required packages
installed or not. Right! Don’t sweat. Run following commands to check whether you
have those packages or not. If they are installed, the command prompt will return you
their version, else ‘Not installed’ message.

#rpm -q compat-db compat-gcc-34 compat-gcc-34-c++ compat-libgcc-296 compat-


libstdc++-296

If everything is alright, then it will show the following:

[root@localhost ~]# rpm -q compat-db compat-gcc-34 compat-gcc-34-c++ compat-


libgcc-296 compat-libstdc++-296

compat-db-4.2.52-5.1

compat-gcc-34-3.4.6-4

compat-gcc-34-c++-3.4.6-4

compat-libgcc-296-2.96-138

compat-libstdc++-296-2.96-138

[root@localhost ~]# rpm -q compat-libstdc++-33 gcc gcc-c++ glibc glibc-common


glibc-devel glibc-headers libgcc make libXp

compat-libstdc++-33-3.2.3-61

gcc-4.1.1-52.el5

gcc-c++-4.1.1-52.el5

glibc-2.5-12

glibc-common-2.5-12

glibc-devel-2.5-12

glibc-headers-2.5-12

libgcc-4.1.1-52.el5

make-3.81-1.1

libXp-1.0.0-8

If you get the ‘Not installed’ message with any of the package; then load your
installation media (RHEL5 Installation Disk), and run the following commands to
install the necessary packages.
#cd /media/cdrom/Server

#rpm -Uvh make-3*

#rpm -Uvh glibc-2*

#rpm -Uvh compat-libstdc++-33-3*

#rpm -Uvh compat-gcc-34-3*

#rpm -Uvh compat-gcc-34-c++-3*

#rpm -Uvh gcc-4*

#rpm -Uvh libXp-1*

#rpm -Uvh compat-db-4*

• Installing patches – You need to download two patches and install it. These patches are:

[Link]
[Link]

[Link]
[Link]

Navigate to the location where you have stored the downloaded file. Most
probably it will be Root’s Desktop Directory. So go there.

#cd /root/Desktop

#rpm -Uvh [Link]

#rpm -Uvh [Link] –nodeps

• Now the Workarounds – Some libraries aren’t available for RHEL5, so you can use the
substitutes available in the RHEL5 itself. All you have to do is linking. So, here you go.

1. #cd /usr/lib
#ln -s libstdc++-[Link] libstdc++-[Link].2

2. #cd /usr/bin
#ln -s gcc34 gcc32

3. #cd /usr/lib
#ln -s [Link].2.0.0 [Link].2

• User and Group Creation – Oracle installer wouldn’t run as the root user, so you need
to create a user. It would be better, if you create a special group for Oracle. To do these,
run the following commands in the command prompt.
#groupadd oinstall

#groupadd dba

#groupadd oper

#useradd -g oinstall -G dba oracle

#passwd oracle

• ORACLE_BASE Directory Creation -Login as root and create base directory for
Oracle ($ORACLE_BASE).

# cd /opt
# mkdir oracle
# chown –R [Link] oracle

#cd oracle

#mkdir 920

• Setting Environment Variables – Now since you have created the oracle user, you need
to setup its environment variables. For that, you need to update oracle’s .bash_profile
file.

Open bash profile of Oracle:

#gedit /home/oracle/.bash_profile

Now add the following lines in the file –

PATH=$PATH:$HOME/bin; export PATH

ORACLE_BASE=/opt/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/920; export ORACLE_HOME

ORACLE_SID=orcl; export ORACLE_SID

LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH

ORACLE_OEM_JAVARUNTIME=/usr/local/jre1.3.1_19; export
ORACLE_OEM_JAVARUNTIME

PATH=$PATH:$ORACLE_HOME/bin; export PATH

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then


ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

Save and close the file.

• Setting up the kernel parameters – You also need to do a little modification in the the
kernel parameters. You need to open the [Link] file -

#gedit /etc/[Link]

And add the following lines -

[Link] = 4096
[Link] = 250 32000 100 128
[Link]-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
[Link].rmem_default=262144
[Link].wmem_default=262144
[Link].rmem_max=262144
[Link].wmem_max=262144

Save and close the file. You need to run a command to update the parameters

#sysctl –p

• Logout of root and login again as oracle user.

2. Installing Oracle 9i on RHEL5 (Logged in as oracle):

• Download Oracle 9i – Download the Oracle 9i ([Link]) software from Oracle website.
Store the files in oracle’s home directory. Launch the command prompt and navigate
there.

$cd /home/oracle

Unzip the files -


$ gunzip ship_9204_linux_disk1.[Link]
$gunzip ship_9204_linux_disk2.[Link]
$gunzip ship_9204_linux_disk3.[Link]

Unpack the cpio files –

$cpio -idmv “<” ship_9204_linux_disk1.cpio


$cpio -idmv “<” ship_9204_linux_disk2.cpio
$cpio -idmv “< “ship_9204_linux_disk3.cpio

• Setting [Link] file – When all archives files are extracted you’ll have three
directories Disk1, Disk2 and Disk3. Locate the [Link] and update it with new
information. [Link] is in Disk1/install/linux/ directory.

$gedit /home/oracle/Disk1/install/linux/[Link]

Modify JRE_LOCATION variable and set it to

JRE_LOCATION=/usr/local/jre1.3.1_19

Save the file and close.

• Starting Oracle Installer – Now you are all set for Oracle installation. In the command
prompt go to the Disk1 directory and run runInstaller file.

$cd /home/oracle/Disk1

$./runinstaller

–> When you see DBCA Fail, do the following :

You need to change the installer’s JRE. Launch the command prompt, and do the
following –

$cd $ORACLE_HOME
$rm JRE
$ln -s $ORACLE_BASE/jre/1.3.1 JRE
$cd JRE/bin
$ln -s java jre
$cd i386/native_threads/
$ln -s java jre

When you are done, select DBCA and every failed services and click retry button, one-
be-one. Your installation will succeed.

Common questions

Powered by AI

Installing Oracle 9i on a system with RHEL5's virtualization support enabled can lead to erratic behavior during the installation process because this module installs a different kernel (Xen). To mitigate these issues, it is advised to skip installing virtualization support during the RHEL5 installation, thereby ensuring a stable installation environment for Oracle 9i .

After Oracle 9i source files are downloaded, they should be stored in the oracle user's home directory. The files, typically in .gz format, must be unzipped using 'gunzip'. Next, the archived .cpio files must be unpacked using the 'cpio' command to extract them into readable directories. This provides access to installation directories Disk1, Disk2, and Disk3 which are required for the subsequent installation steps .

SELinux, if not disabled, can interfere with the installation process of Oracle 9i by enforcing security policies that may block necessary operations. Therefore, it is recommended to disable SELinux during or after RHEL5 installation. This can be done by setting the SELINUX flag to 'disabled' in the /etc/selinux/config file .

If DBCA fails during the Oracle 9i installation due to JRE issues, the solution involves changing the installer's JRE by running specific commands in the terminal. This involves removing the existing JRE and creating symbolic links to the correct JRE version in the ORACLE_BASE directory. After making these changes, retrying the DBCA and any failed services should allow the installation to proceed successfully .

Environment variables play a critical role in defining the Oracle runtime environment, specifying where software and associated components are located. Variables like ORACLE_BASE, ORACLE_HOME, and LD_LIBRARY_PATH ensure that the system knows where to find the Oracle binaries and libraries, while PATH enhancements ensure that relevant executables can be found and executed. Properly configuring these variables in the oracle user's .bash_profile is necessary for successful installation and operation .

Oracle installation requires specific user permissions and group associations to ensure proper access to databases and resources during its operation. The installer will not run as the root user, necessitating the creation of an 'oinstall' group, along with 'dba' and 'oper' groups for administrative purposes. An 'oracle' user should then be created, associated with these groups, to manage the Oracle environment securely .

Manual installation of specific RPM packages is crucial because Oracle 9i requires certain libraries and development tools that may not be available by default on RHEL5. If these packages are missing, they can be manually installed using commands from the RHEL5 installation media. Checking the presence of packages with rpm -q and using rpm -Uvh for installation ensures that necessary components are available for a smooth Oracle installation .

Using older versions of the Java Runtime Environment (JRE) for Oracle 9i installation on RHEL5 is necessary because newer JRE versions may exhibit compatibility issues that affect Oracle's graphical user interface and tools like the Database Configuration Assistant (DBCA). The installation instructions specify using a specific older JRE version to ensure these tools function correctly .

Symbolic links are used to direct Oracle 9i to compatible library and compiler versions that may not be present otherwise on RHEL5. For example, when specific libraries are missing or incompatible, creating symbolic links like linking libstdc++ to an older version can simulate the presence of required libraries, allowing the Oracle installation to function as expected .

The configuration of kernel parameters is crucial for Oracle 9i installation, as it ensures the Linux kernel can handle database operations efficiently. Important parameters include setting kernel.shmmni to 4096, kernel.sem to '250 32000 100 128', fs.file-max to 65536, net.ipv4.ip_local_port_range to '1024 65000', and appropriate values for net.core.rmem and wmem defaults and maximums. These parameters can be added to the /etc/sysctl.conf file and loaded using the sysctl -p command .

You might also like