Legal | Privacy


Pre-Installation Tasks on Linux





Pre-installation Tasks on Linux

This module describes how to configure Linux and prepare for the installation of Oracle Application Server 10g.

This module will discuss the following:

Overview

Pre-installation Tasks

Creating group and user
Adding Swap Space
Checking Kernel Packages
Modifying the /etc/hosts file

Place the cursor on this icon to display all screenshots. You can also place the cursor on each icon to see only the screenshot associated with it.

This lesson describes how to verify the kernel version of the Linux system and set up parameters to prepare for the installation of Oracle Application Server 10g.

1.

Open a terminal window and log in as root user. Check the id of the logged-in user. To be able to verify and make changes to the kernel parameters, you should be logged in as super user (root).

Move your mouse over this icon to see the image

 

2.

The following are the kernel parameters and their appropriate values as per the Oracle Application Server 10g Installation Guide.

Move your mouse over this icon to see the image

 

3.

To change the kernel parameters issue the following commands:

cd /proc/sys/kernel
echo 256 32000 100 142 > sem
echo 2097152 > shmall
echo 2147483648 > shmmax
echo 4096 > shmmni
echo 8192 > msgmax
echo 65535 > msgmnb
echo 2878 > msgmni

cd /proc/sys/fs
echo 131072 > file-max

cd /proc/sys/net/ipv4
echo 20000 65000 > ip_local_port_range

Move your mouse over this icon to see the image

 

4.

If, after reboot, you want these changes to be reflected, then edit the parameters in the /etc/sysctl.conf file as shown below:

Move your mouse over this icon to see the image

After editing, save and close the file.

 

1.

After all the parameters are properly set, the next step is to create a database group named oinstall that will be used while installing Oracle Application Server 10g.

Before creating a group, check whether the oinstall group exists by using the following command:

# grep oinstall /etc/group

If the group exist, you will get an output like oinstall:x:500:.

If the group does not exist, use the following command to create a database group with the name oinstall:

# /usr/sbin/groupadd oinstall

 

2.

Use the following command to create a user with the name oracle that will be part of the oinstall group:

# /usr/sbin/useradd -g oinstall oracle

 

3.

Finally, assign a password to the newly created user named oracle by using the following command:

# passwd oracle

The system will prompt you to enter the new password and confirm it by reentering the password. Remember that for security reasons when you type the password no text will be displayed on the screen, not even the traditional asterisk (*) symbols.

To install Oracle Application Server 10g you must allocate temporary memory space called Swap Space. It helps you perform memory-intense operations or run applications that require a large amount of memory. Before installing the application server, it is better to check whether the space allocated is sufficient to perform the installation. You can change the parameters if they are not as per the specifications required to install Oracle Applcation Server.

To add swap space, perform the following steps:

1.

Open a terminal window and log in as root user. Check the id of the logged-in user. To verify and make changes to the kernel parameters, you should be logged in as super user (root).

Move your mouse over this icon to see the image

 

2.

Check the current availability of memory and swap space by using the free command. You might see different figures than those given in the screenshots.

Move your mouse over this icon to see the image

 

3.

Note that the system has around 1 GB of total memory and 500 MB of swap space. As per the installation guide, for better performance, it is recommended that swap area should be at least 1.5 or 2 times the total memory. To find whether you have sufficient free space on the disk to increase the swap area, issue the df -m command.

Move your mouse over this icon to see the image

 

4.

As shown above, there is 4561 MB (around 4 GB) of free space available. Create a swap file by using the following command:

dd if=/dev/zero of=/bigswap bs=1k count=1548576

Note: Name = /bigswap, Block size = 1 KB and File size 1.5 GB.

Move your mouse over this icon to see the image

 

5.

Change the access rights of the file by using the chmod 600 /bigswap command so that others do not accidentally delete the file.

Move your mouse over this icon to see the image

 

6.

Use the mkswap /bigswap command to make this file a swap file.

Move your mouse over this icon to see the image

 

7.

The next step is to enable swap on to the designated file by using swapon /bigswap command.

Move your mouse over this icon to see the image

 

8.

Check whether the swap space is added by using the free command.

Move your mouse over this icon to see the image

 

9.

Finally, choose the editor of your choice and add an entry in the /etc/fstab file as shown below to ensure that the new swap file is available after you reboot the machine. After adding the entry, save and close the file. So next time you log in, the system will read this file and use the /bigswap file to increase the swap space.

Move your mouse over this icon to see the image

Note: This is not a mandatory step.

To install Oracle Application Server 10g, you need to install proper kernel patches. They need to be installed for a proper installation of Oracle Application Server 10g. If any of the package is not installed or an incorrect version is installed, the Oracle Application Server installation won't be successful. These kernel patches are also termed as packages.

To check whether the kernel package exist and their versions, perform the following steps:

1.

Before you start checking the kernel packages, check the version of Linux installed on the machine by using the cat /etc/issue command.

Move your mouse over this icon to see the image

 

2.

Check that the errata 25 patch (2.4.9-e.25), or a higher errata patch is applied by using the uname -r command. If not, download the file kernel-headers-2.4.9-e.25.i386.rpm from http://www.redhat.com. You should have a Red Hat Network account to download errata files from this site.

Move your mouse over this icon to see the image

 

3.

The following software packages must be installed on the machine for successful installation of Oracle Application Server 10g. If any of these package (.rpm files) are not installed, you must download them from http://www.redhat.com . Perform the steps given in step 5 to check whether the package is installed and its version. Below is the list of all the rpms that you will need for successful installation of Oracle Application Server 10g.

  • glibc-2.2.4-32.3.rpm
  • gcc-2.96-108.1.rpm
  • pdksh-5.2.14-13.rpm
  • openmotif-2.1.30.rpm
  • sysstat-4.0.1.rpm
  • compat-glibc-6.2-2.1.3.2.rpm
  • libstdc++-2.96-108.18.1.rpm
  • binutils-2.11.90.0.8-12.i386.rpm
  • libaio-devel-0.3.13-3.i386.rpm
  • libgcc-3.0.4-1.i386.rpm
  • gcc-c++-2.96-118.7.2.i386.rpm
  • gcc-objc-2.96-118.7.2.i386.rpm
  • jdk-1.3.1_02.i386.rpm
  • procinfo-18-2.i386.rpm
  • kdegraphics-2.2.2-4.i386.rpm
  • sane-backends-1.0.5-4.1.i386.rpm
  • sox-12.17.1-4.i386.rpm
  • XFree86-devel-4.2.1-21.oracle.0.rh21.i386.rpm
  • XFree86-doc-4.2.1-21.oracle.0.rh21.i386.rpm*
  • XFree86-xf86cfg-4.2.1-21.oracle.0.rh21.i386.rpm*
  • XFree86-Xnest-4.2.1-21.oracle.0.rh21.i386.rpm*
  • XFree86-Xvfb-4.2.1-21.oracle.0.rh21.i386.rpm*

The list given above is not exhaustive, for more information on packages you need to refer to the Operating System manuals.

 

4.

If a package is not installed, download it as shown in step 3. After downloading the required package, use the following command to install it.

# rpm -i <package_name.rpm>

for example: # rpm -i glibc-2.2.4-32.3.rpm

If you get a dependency error while installing any of the packages, use the following command to overcome it:

# rpm -Uivh --nodeps <package_name.rpm>

for example: # rpm -Uivh --nodeps glibc-2.2.4-32.3.rpm

 

5.

To check whether the package is installed and to know its version, use the following command:

# rpm -q <package_name>

To check the glibc package for the version 2.2.4-32 or higher. use the rpm -q glibc command.

Move your mouse over this icon to see the image

 

6.

Check the gcc package for the version 2.96-108.1 or higher by using the rpm -q gcc command.

Move your mouse over this icon to see the image

 

7.

Check the pdksh package for the version 5.2.14-13 or higher by using the rpm -q pdksh command.

Move your mouse over this icon to see the image

 

8

Check the openmotif package for the version 2.1.30 or higher by using the rpm -q openmotif command.

Move your mouse over this icon to see the image

 

9.

Check the sysstat package for the version 4.0.1 or higher by using the rpm -q sysstat command.

Move your mouse over this icon to see the image

 

10.

Check the compat-glibc package for the version 6.2-2.1.3.2 or higher by using the rpm -q compat-glibc command.

Move your mouse over this icon to see the image

 

11.

Check the libstdc++ package for the version 2.96-108.18.1 or higher by using the rpm -q libstdc++ command.

Move your mouse over this icon to see the image

Similarly, you can install the other rpms mentioned in the above list. By installing these kernel packages, you are now ready to install Oracle Application Server 10g.

1.

When you install Oracle Application Server, to get a fully qualified hostname you might need to modify the /etc/hosts file.

Open the /etc/hosts file in your favorite editor and add the hostname as shown below:

<ip address> <hostname.domain name> <hostname>

for example: 148.87.40.224 edcdr15p1.us.oracle.com edcdr15p1

After adding this entry, save and close the file.

These details will be reflected when you specify Namespace in the Internet Directory while installing Oracle Application Server Infrastructure 10g. Although this is not mandatory, Oracle recommends to perform this step.

 

Place the cursor on this icon to hide all screenshots.

Copyright © 2004, Oracle Corporation. All rights reserved.

Contact Us Legal Notices and Terms of UsePrivacy Statement

 

 

 

 

 

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy