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.
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).
2.
The following are the kernel parameters and their appropriate values
as per the Oracle Application Server 10gInstallation Guide.
3.
To change the kernel parameters issue the following commands:
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).
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.
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.
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.
5.
Change the access rights of the file by using the chmod 600 /bigswap
command so that others do not accidentally delete the file.
6.
Use the mkswap/bigswap command to make this file a swap
file.
7.
The next step is to enable swap on to the designated file by using swapon
/bigswap command.
8.
Check whether the swap space is added by using the free command.
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.
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.
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.
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.
6.
Check the gcc package for the version 2.96-108.1 or higher
by using the rpm -q gcc command.
7.
Check the pdksh package for the version 5.2.14-13 or higher
by using the rpm -q pdksh command.
8
Check the openmotif package for the version 2.1.30 or higher
by using the rpm -q openmotif command.
9.
Check the sysstat package for the version 4.0.1 or higher
by using the rpm -q sysstat command.
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.
11.
Check the libstdc++ package for the version 2.96-108.18.1
or higher by using the rpm -q libstdc++ command.
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.
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.