This tutorial describes how to install and configure Oracle Enterprise Linux
5 General Availability.
When completed, operating system Oracle Enterprise Linux 5
General Availability will be installed.
| 1. |
Power on the machine with the DVD or disc1(CD) of OEL5GA.
|
| 2. |
Press ENTER at the "boot:"
prompt.
Note: If you don't press ENTER within
60 seconds, the installer will
automatically go to the next step. This is fine!
|
| 3. |
Screen: "Welcome to Enterprise Linux" "CD Found"
Press the Tab key to highlight "Skip."
Press the Enter key.
|
| 4. |
Screen: "Welcome to Enterprise Linux" GUI
Click Next.
|
| 5. |
Screen: "Language Selection"
Select the appropriate language.
Click Next.
|
| 6. |
Screen: "Keyboard Configuration"
Select the appropriate keyboard.
Click Next.
|
| 7. |
Screen: "Warning." Read the warning.
Click Yes.
Note: If Linux already exists on the target hardware
a choice will be given between "Install Enterprise Linux" or "Upgrade
an existing Installation."
|
| 8. |
Screen: "Disk Partitioning"
Check Review and Modify partitioning layout.
Click Next.
|
| 9. |
Screen: "Warning"
Click Yes to each warning.
Note: This warning will appear for
each defined disk.
|
| 10. |
Screen: "Disk Partitioning"
Use the right hand side slide and review the disk configuration.
Click Next.
|
| 11. |
Screen: "Boot Loader Configuration"
Click Next.
|
| 12. |
Screen: "Network Configuration"
Select eth0 from Network Devices.
Check Active on Boot.
Click Edit.
|
| 13. |
Screen: "Edit Interface eth0"
Uncheck Use dynamic IP configuration (DHCP)
Uncheck Enable IPv6 support
IP Address: 192.168.203.11
NetMask: 255.255.255.0
Click OK.
|
| 14. |
Screen: "Network Configuration"
Under "Hostname" / Set the hostname:
Select manually
Enter hostname: stctestbox01.us.oracle.com
Under "Miscellaneous Settings"
Gateway: 192.168.203.2
Primary DNS: 144.20.190.70
Secondary DNS: 138.2.202.15
Click Next.
|
| 15. |
Screen: "Time Zone Selection"
Choose the appropriate time zone.
Click Next.
|
| 16. |
Screen: "Set Root Password"
Enter a secure password.
|
| 17. |
Check the box next to Software Development. Select
Customize now. Click Next.
|
| 18. |
Select Development. Check the box next to Legacy
Software Development.
|
| 19. |
Select Base System. Check the box next to Legacy
Software Development. Click Optional packages.
|
| 20. |
Check the box next to compat-db. Click Close.
|
| 21. |
Select Base System. Check the box next to System
Tools. Click Optional packages.
|
| 22. |
Slide down and check the box next to sysstat.
Click Close.
|
| 23. |
Click Next.
|
| 24. |
Click Next.
|
| 25. |
Installing Packages.
|
| 26. |
Click Reboot.
|
| 27. |
Click Forward.
|
| 28. |
Read the license agreement. If you agree, select Yes,
I agress to the License Agreement.
Click Forward.
|
| 29. |
Click on the Firewall drop down menu and select Disabled.
Click Forward.
|
| 30. |
Read the warning. Click Yes.
|
| 31. |
Click on the SELinux Setting drop down menu and select
Disabled. Click Forward.
|
| 32. |
Read the warning. Click Yes.
|
| 33. |
Click Forward.
|
| 34. |
Set the correct date and time. Click Forward.
|
| 35. |
Click Forward.
|
| 36. |
Read the warning. Click Continue.
|
| 37. |
Click Forward.
|
| 38. |
Click Finished. Click OK.
|
| 39. |
OS installation complete.
Login. User root. Password oracle.
|
| 40. |
Open a terminal window. Two options for opening a terminal
window:
1. Right click on the desktop and select Open Terminal.
2. From the menu bar select Applications ->
Accessories -> Terminal.
|
| 41. |
Install additional RPMs needed for the Oracle Database
installation.
Mount the OS installation media.
In the open terminal window execute these commands:
mkdir /media/cdrom
mount -t iso9660 -o ro /dev/cdrom /media/cdrom
cd /media/cdrom/Server
|
| 42. |
Install RPM libaio-devel.
Execute:
rpm -ivh libaio-devel*rpm
|
| 43. |
Install RPMs unixODBC and unixODBC-devel..
Execute:
rpm -ivh unixODBC-2*rpm unixODBC-devel-2*rpm
|
| 1. |
As root, open a terminal window and perform these steps:
Edit /etc/hosts.
The file should contain text similar to the following:
127.0.0.1 localhost.localdomain localhost
192.168.203.11 stctestbox01.us.oracle.com stctestbox01
|
| 2. |
Now check /etc/hosts
the network settings are good.
Issue these commands in a terminal window.
hostname
cat /etc/hosts | grep `eval hostname`
Note: The character before eval and
after hostname above is not a single quote, it is a grave accent. On a
standard US keyboard, the key for the grave accent is in the upper left-hand
corner, on the same key as the tilde.
The results should be similar to the following:
stctestbox01.us.oracle.com
192.168.203.11 stctestbox01.us.oracle.com stctestbox01
|
| 3. |
Configure the kernel.
Edit /etc/sysctl.conf.
Add the following to the file:
# Kernel paramaters required by Oracle 11gR1
fs.file-max = 6553600 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144
|
| 4. |
For the /etc/sysctl.conf
changes to take effect now issue this command.
sysctl
-p
|
| 5. |
Edit /etc/security/limits.conf
Add these lines:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
|
| 6. |
Edit /etc/pam.d/login
Add these lines:
session required /lib/security/pam_limits.so
session required pam_limits.so
|
| 7. |
Edit /etc/profile
Add these lines:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
|
| 8. |
Create the operating system user to own the software
installation and the supporting groups.
groupadd oinstall
groupadd dba
groupadd oper
useradd oracle
usermod -g oinstall -G dba,oper,oracle oracle
passwd oracle
|
| 9. |
Edit /home/oracle/.bash_profile
Add these lines:
umask 022
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH
export PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID
|
| 10. |
Create the software installation directory.
mkdir -p /u01/app
chown root:oinstall /u01/app
|