Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1) Installation on Oracle
Enterprise Linux 5.0
By
This article describes the installation of Oracle Database 11g Release 1 (11.1) on Oracle
Enterprise Linux 5.0. Here I simulate the installation process based on my PC based
server which has following hardware configuration:
Its me a great pleasure if this installation cook help someone meet their company
requirement. If you have further query please drop message to our forum section at
http://oracleboss.comn or mail me samiuzzaman@yahoo.com
1
Part-1: Installing Oracle Enterprise Linux 5.0
You may download Oracle Enterprise Linux 5.0 from oracle technology network. To
download Oracle Enterprise Linux 5.0 Enterprise Edition uses the following link.
http://edelivery.oracle.com/linux
Installation Process:
1. Boot the server using the first CD.
o You may need to change your BIOS settings to allow booting from the CD.
2. The boot screen appears with the boot: prompt at the bottom of the screen.
o Select Enter to continue with a graphical install on the console.
3. CD Found
o Skip these options.
4. Click on Next.
5. What language could you like to use during the installation process.
o Accept the default.
6. Select the appropriate keyboard for the system Configuration
o Accept the default. (U.S English).
7. Disk Portioning Step
o Select Remove all partition on Selected device and create default layout the
system and Click on Next
o The disk on the first controller (/dev/sda) will hold all Linux software and
contains the following partitions:
o /boot partition - 256MB
o Swap Partition -2 GB [Set this to at least twice the amount of RAM in the system
But if the Physical RAM equal to 4 GB or greater then choose swap size exactly
as memory size.]
o root (/) partition - 19 GB This partition will be used for everything, including
/usr, /tmp, /opt, /home, and more. This approach is purely to simplify installation
for the purposes of this guide. A more robust partitioning scheme would separate
these directories onto separate file systems.
o /u01 – 18 GB - For Oracle Home Directory
o /u02 - 18GB - For Oracle Data Directory.
o /var – 19 GB
o Click on Next
o Click on Next
8. Required installation media
o Three CD Required to Successful installation of Oracle Enterprise Linux.
o If you have three disk then Click on Continue
9. Boot Loader Configuration
o Accept the default and Click on Next.
10. Network Configuration
o It is usually best to configure database servers with a static IP address. To do so,
click on Edit.
o A pop-up window appears. Uncheck the Configure using DHCP box, and enter
the IP Address and NetMask for the server. Be sure that Activate on boot is
checked, and click on OK.
o Enter Static IP Address , Prefix (Net Mask) in your required IP Block
o In the Hostname box, select manually and enter the hostname.
o In the Miscellaneous Settings box, enter the remaining network settings.
Enter Geteway, Primary DNS , Secondary DNS
Click on Next
2
11. Please Click into the map to chose a region
o Select Asia/Dhaka
o Click on Next
12. Provide Root Password and Conform
o Click on Next
13. Package Installation
o Chose Customize now and Click on Next.
14. Package Group Selection
o Desktop Environment
GEOME Desktop Environment
o Applications
Editor
Graphical Internet
Text-based Internet
o Development
Development Libraries
Development Tools
o Server
Server Configuration Tools
o Base System
Base
Administration Tools
System Tools
X Window System
15. Click on Next.
16. Reboot The System
17. Welcome
o Click on Forward
o License Agreement
Select Yes, I agree to the License Agreement and Click on Forward
o Firewall
Chose Disabled Firewall and Click on Forward
A Popup window will appear Click on Yes for Confirmation
o SE Linux
o Chose Disabled to SELinux Settings.
o Click on Forward
o A Popup window will appear Click on Yes.
o Kdump
Accept Default and Click on Forward
o Data and Time
Set the Date Time and Click on Forward
o Create User
Skip this options and Click on Forward
o Sound Card
You may Test your sound card by playing a Test Sound
Click on Forward
o Additional CD
Skip this options and Click on Finish
18. Click on OK button to reboot the system
3
Part-2: Configuring Linux for Oracle
You may download Oracle 11g from oracle technology network. To download Oracle
Database 11g Release 1 (11.1.0.6.0)
Standard Edition, Standard Edition One, and Enterprise Edition use the following link.
http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxs
oft.html
• Use the following command to add a user whish is The Oracle software owner
(oracle)
[root@testdb ~]# useradd oracle
• Use the following command to specify oinstall as the primary group and dba as
the secondary group for oracle User.
[root@testdb ~]# usermod -g oinstall -G dba oracle
• Finaly use the following command to Check the Oracle user and user group:
[root@testdb ~]# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)
• Use the following command to set the password of the oracle user:
[root@testdb ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
passwd:all authentication tokens updated successfully.
• Use the Following Command determine whether the An unprivileged user
(nobody) user exists or Not :
[root@testdb ~]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
If this command displays information about the nobody user, then you do not
need to create the nobody user.
• If the nobody user does not exist, then enter the following command to create it:
# useradd nobody
• Create directories with names similar to the following, and specify the correct
owner, group, and permissions for them:
1. The Oracle base directory (For Oracle Home directory)
2. An optional Oracle data file directory
4
• Oracle Recommand that the base directory and data file directory will be different
mount point. if you do not create the mount point during the operation system
installation then use the following command to create a directory.
mkdir -p /mount_point/app/
For example :
[root@testdb ~]# mkdir -p /u01/app
• Swap Spase
For 512 MB RAM,Swap Space Required Double the size of RAM
For 1024 MB RAM, Swap Space Required 1.5 times the size of RAM
5
[NB: /u01 is use for Oracle Software and /u01 is use for Oracle Database file]
Package Requirements
• The following or later version of packages for Oracle Enterprise Linux 5.0
1. binutils-2.17.50.0.6-2.el5 Disk-01
2. compat-libstdc++-33-3.2.3-61 Disk-02
3. elfutils-libelf-0.125-3.el5 Disk-02
4. elfutils-libelf-devel-0.125 Disk-02
5. glibc-2.5-12 Disk-02
6. glibc-common-2.5-12 Disk-01
7. glibc-devel-2.5-12 Disk-02
8. gcc-4.1.1-52 Disk-02
9. gcc-c++-4.1.1-52 Disk-02
10. libaio-0.3.106 Disk-01
11. libaio-devel-0.3.106 Disk-02
12. libgcc-4.1.1-52 Disk-01
13. libstdc++-4.1.1 Disk-01
14. libstdc++-devel-4.1.1-52.e15 Disk-02
15. make-3.81-1.1 Disk-01
16. sysstat-7.0.0 Disk-03
17. unixODBC-2.2.11 Disk-02
18. unixODBC-devel-2.2.11 Disk-02
• To determine whether the required packages are installed, use commands similar
to the following:
Example:
[root@testdb ~]# rpm -qa | grep binutils
binutils-2.17.50.0.6-2.el5
6
5. Configuring Kernel Parameters
[root@testdb ~]# sysctl -a | grep sem
kernel.sem = 250 32000 100 128
• Using any text editor, create or edit the /etc/sysctl.conf file, and add or
edit lines similar to the following:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
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
• Enter the following command to change the current values of the kernel
parameters:
Review the output from this command to verify that the values are correct.
N.B: For Safety to make sure the change effect you may restart the system.
7
6. Configuring the oracle User's Environment
Oracle Enterprise Linux 5.0 user environment is preconfigured. So skip this option.
If you are not disabling the firewall during the setup of Oracle Enterprise Linux 5.0 then
follow the following step to disable in GUI as root user.
For Oracle Enterprise Linux System -> Administration -> Security Level and Firewall
| Firewall Options -> Firewall: Disable
| SE Linux -> SE Linux Settings: Disable
To Unzip the unzip the zip file use the following Command
# unzip linux_11gR1_database.zip
After unzip to run the Oracle Universal Installer use the following command
[oracle@testdb database]$./runInstaller
8
2. Select a Product to Install
• Select Advanced Installation
• Click on Next
9
3. Specify Inventory Directory and Credentials.
• Inventory Directory: /u01/app/oraInventory
• Operating System group name: oinstall
• Click on Next
10
4. Select Installation Type
• Select Enterprise Edition (3.18 GB)
• Click on Next
11
5. Loading Product Information
• Oracle Base : /u01/app/oracle
• Software Location
Name : OraDb11g_home
Path : /u01/app/oracle/db11g
• Click on Next
12
6. Product Specific Prerequisite Checks
• All the checks should pass without difficulty. If one or more
checks fail, correct the problem before proceeding.
• Click on Retry to Recheck.
• Click on Next
[NB. If checking pass then Status Will be Succeeded]
13
7. Select Configuration Option
• Select Create Database Option.
• Click on Next.
14
8. Select Database Configuration
• Select General Purpose / Transaction Processing.
• Click on Next.
15
9. Specify Database Configuration Options
• Global Database Name : testcpdb.dnsgroup.net
• SID : testcpdb
• Click on Next
16
10. Specify Database Config Details (Memory)
• Chose Enable Automatic Memory Management.
• Click on Next.
[NB. Configure your Memory according to your requirements.]
17
11. Specify Database Config Details (Character Sets)
• Choose from the list of Character Set: Unicode Standard UTF-8
AL32UTF8.
• Click on Next
[NB. You Can Choose Character Set according to your requirements]
Figure: Oracle Universal Installer: Specify Database Config Details (Character Sets)
18
12. Specify Database Config Details (Security)
• Accept Default
• Click on Nest.
[N.B: Oracle recommends the default settings]
19
13. Specify Database Config Details (Sample Schemas)
• Accept Default
• Click on Nest.
Figure: Oracle Universal Installer: Specify Database Config Details (Sample Schemas)
20
14. Select Database Management Options.
• Select Use Database Control for Database Management.
• Click on Next.
21
15. Specify Database Storage Option
• Select File System
• Specify Database file location : /u02/oradata
• Click on Next.
22
16. Specify Backup and Recovery Options
• Select Do not enable Automated backups
• Clock on Next.
23
17. Specify Database Schema Passwords
• Select Use the same password for all the accounts
• Enter the Password and Confirm.
• Clock on Next.
24
18. Privileged Operating System Groups
• Database Administrator (OSDBA) Group : oinstall
• Database Operator (OSOPER) Group : oinstall
• ASM administrator (OSASM) Group : oinstall
• Click on Next.
25
19. Oracle Configuration Manager Registration
• If you have Metalink Account then you can Registration your
database, otherwise skip this option.
• Click on Next.
26
20. Summary
• A summary of the products being installed is presented.
• Click on Install.
27
21. Install
• The Installation process of Oracle 11g 11.1.0.6.0 is running
automatically.
• After Finishing 100% Configuration assistants will appear.
28
22. Configuration assistants
• The Oracle Net Configuration Assistant and Oracle Database
Configuration assistant will run automatically.
29
23. . Database Configuration Assistant
• Copying database file, Creating and starting Oracle Instance,
Completing Database creation process will run automatically.
30
24. Database Configuration Assistant
• This window Provide you some information about your database.
• You can Change user account password and unlock by Click on
Password Manager.
• Click on OK.
31
25. Execute Configuration Scripts
• Execute orainstRoot.sh and root.sh as root user.
• To Switch root user Open a Terminal and Type su root
• Click on OK.
32
26. End of Instillation
• Make note of the URLs presented in the summary, and click on Exit when
ready.
27. Exit
• Click on Yes to Exit.
33
Figure: Exit Window.
8. Post Installation Task
1. Edit the /etc/oratab file setting the restart flag for each instance to 'Y'
[root@testdb ~]# vi /etc/oratab
testcpdb:/u01/app/oracle/db11g:Y
2. Now you have to write a Script to Automatic Startup and Shutdown Oracle
Database.
[oracle@testdb ~]$ su -
Password:
[root@testdb ~]# cp /home/oracle/Oracle_Databases
/etc/rc.d/init.d/
[root@testdb ~]# cd /etc/rc.d/init.d/
[root@testdb init.d]# chmod 755 Oracle_Databases
[root@testdb init.d]# ls -la Oracle_Databases
-rwxr-xr-x 1 root root 420 Aug 21 21:37 Oracle_Databases
[root@testdb init.d]#chkconfig --add Oracle_Databases
[root@testdb init.d]#chkconfig --level 345 Oracle_Databases on
PATH=$PATH:$HOME/bin:$ORACLE_HOME:$DBIN
export PATH
34
[root@testdb ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
172.168.0.95 testdb.dnsgroup.net testdb
35
• To Stop the Oracle Enterprise Management Server use the following command.
[root@testdb ~]# emctl stop dbconsole
To Run Oracle SQL Developer use the following command as Oracle user in X Window System.
36