Oracle Database XE: Installing on a Linux Platform

In this third part of a five-part article series on installing Oracle Database XE, you’ll begin the installation process on a Linux platform. This article is excerpted from chapter 27 of the book Beginning PHP and Oracle: From Novice to Professional, written by W. Jason Gilmore and Bob Bryla (Apress; ISBN: 1590597702).

Linux Installation Tasks

This section covers the Linux installation tasks: determining operating system prerequisites, obtaining the installation files, performing the installation, and testing out your installation. There are a few more setup tasks in the Linux environment than in a Windows environment.

Linux Prerequisites

In addition to the general Oracle Database XE requirements listed earlier in this chapter, there are some Linux-specific requirements explained in the following sections. Be sure to follow these instructions carefully. Your installation may succeed if you ignore some of these requirements, but you will most likely run into performance problems later if your environment is not configured correctly.

Linux Distribution

You must be using one of the Linux distributions from the following list:

  1. Red Hat Enterprise Linux, version 3 or 4
  2. SUSE Linux SLES-9 or higher 
     
  3. Fedora Core 4 
     
  4. Red Flag DC Server 5.0 / Miracle Linux 4.0 / Haansoft Linux 2006 Server (Asianux 2.0 Inside) 
     
  5. Debian 3.1

While your installation may work fine for testing and development on other Linux distributions, Oracle will not support them and strongly recommends that you do not deploy any production applications on a nonsupported distribution.

Required Packages

Regardless of the Linux distribution, you must also ensure you have these packages installed:

  1. glibc 2.3.2 or later 
     
  2. libaio 0.3.96 or later

See the installation instructions for your Linux distribution to install or update these packages. All of the Linux distributions listed previously include these packages in their distribution media.

{mospagebreak title=Kernel Parameters}

For Oracle Database XE to install and run successfully, you must ensure that the kernel parameters in Table 27-1 have the corresponding minimum values. The Oracle installer checks these values before installation will proceed.

Table 27-1. Minimum Linux Kernel Parameter Values

Kernel Parameter Minimum Parameter Value
semmsl 250
semmns 32000
semopm 100
semmni 128
shmmax 536870912
shmmni 4096
shmall 2097152
file-max 65536
ip_local_port_range 1024 – 65000

 

   

   

   

   

   

   

   

   

   

You can confirm these parameters from a shell prompt using the sysctl and egrep commands as follows:

[root@phpxe ~]# /sbin/sysctl -a | egrep ‘sem|shm|file-max|ip_local’ net.ipv4.ip_local_port_range = 1024  65000 vm.hugetlb_shm_group = 0
kernel.sem = 250       32000    100  128 kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 2147483648
fs.file-max = 65536
[root@phpxe ~]#

The kernel parameters semmsl , semmns , semopm , and semmni correspond to the four values in the sysctl output for parameter kernel.sem . Many of these parameters will already be at least set at their minimum values. For those parameters that need to be changed, edit the file /etc/sysctl.conf and change the parameters to these minimum values. You can change these values in the running kernel immediately by running the command
/sbin/sysctl -p . These values will be set automatically in the future when your workstation starts.

Please check back next week for the continuation of this article.

[gp-comments width="770" linklove="off" ]

chat