Escolar Documentos
Profissional Documentos
Cultura Documentos
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:
It’s me a great pleasure if this installation cook helps someone meet their company
requirement. If you have further query please drop message to our forum section at
http://oracleboss.com or mail me samiuzzaman@yahoo.com
1
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
2
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
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
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
• 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.
• 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
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
• 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
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
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
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
• 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 affect you may restart the system.
7
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
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
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
9
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
10
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
11
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
12
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
13
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
14
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
15
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
16
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
17
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
Figure: Oracle Universal Installer: Specify Database Config Details (Character Sets)
18
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
19
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
Figure: Oracle Universal Installer: Specify Database Config Details (Sample Schemas)
20
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
21
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
22
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
23
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
24
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
25
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
26
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
20. Summary
• A summary of the products being installed is presented.
• Click on Install.
27
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
21. Install
• The Installation process of Oracle 11g 11.1.0.6.0 is running
automatically.
• After Finishing 100% Configuration assistants will appear.
28
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
29
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
30
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
31
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
32
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
27. Exit
• Click on Yes to Exit.
33
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
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
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
35
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
• 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