Sie sind auf Seite 1von 19

ORACLE Database 11g Release 2 Installation Steps on Redhat Enterprise Linux 5

Step 1. Login from Root user on RedHat Linux System


Step 2. To create the oracle account and groups, execute the following commands on the terminal:

# groupadd dba # group of users to be granted SYSDBA system privilege # groupadd oinstall # group owner of Oracle files # useradd -g oinstall -G dba oracle # passwd oracle

Jrg-Dic-2012

Pgina 1

Step 3. Setting System parameters i. Edit the /etc/sysctl.conf and add following lines: kernel.shmall = 4294967295 kernel.shmmax = 268435456 kernel.shmmni = 4096 kernel.sem = two hundred fifty 32 000 100 128 fs.file-max = 6553600 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262 144 net.core.wmem_max = 262144

Jrg-Dic-2012

Pgina 2

You need reboot system or execute "sysctl -p" command to apply above settings

Jrg-Dic-2012

Pgina 3

ii. Edit the /etc/pam.d/login file and add following line: session required pam_limits.so

iii. Edit the /etc/security/limits.conf file and add following lines:


Jrg-Dic-2012 Pgina 4

Oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536

Step 4. Creating oracle directories # mkdir /opt/oracle # Mkdir / opt/oracle/OraDB11gR2 # chown -R oracle:oinstall /opt/oracle/ # chmod 775 /opt/oracle/ -R

Jrg-Dic-2012

Pgina 5

Step 5. Setting Oracle Enviroment Edit the /home/oracle/.bash_profile file and add following lines: ORACLE_BASE=/opt/oracle ORACLE_HOME = $ ORACLE_BASE/OraDB11gR2 ORACLE_SID=ORCL ORACLE_OWNER=oracle LD_LIBRARY_PATH=$ORACLE_HOME/lib PATH=$PATH:$ORACLE_HOME/bin export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH ORACLE_OWNER Save the .bash_profile and execute following commands for load new enviroment: cd /home/oracle . .bash_profile

Jrg-Dic-2012

Pgina 6

Step 6. Download and install required .rpm packages Some additional packages are required for succesful instalation of Oracle software. To check wheter required packages are installed on your operating system use following command:

Jrg-Dic-2012

Pgina 7

# rpm -q binutils elfutils elfutils-libelf gcc gcc-c++ glibc glibc-common glibc-devel compat-libstdc++-33 cpp make compat-db sysstat libaio libaio-devel unixODBC unixODBC-devel|sort

Step 7. Copy Oracle Database 11g Release 2 software into / mnt directory. Extract the files using following command: unzip linux_11gR2_database_1of2.zip

Step 8. Change the Ownership and Group of database folder # chown oracle /mnt/database R # chgrp oinstall /mnt/database R

Jrg-Dic-2012

Pgina 8

Step 9. Login from oracle user on RedHat Linux

Step 10. Start the Oracle software installation process.


Jrg-Dic-2012 Pgina 9

Now the system is prepared for Oracle software installation. To start the installation process execute the following commands: cd /mnt/database ./runInstaller

Oracle Universal Installer will walk you through with self explanatory instructions. Here are screen-shots from simple Oracle 11g R2 Installation:

Jrg-Dic-2012

Pgina 10

Provide your email address to be informed of security issues

Select installation options


Jrg-Dic-2012 Pgina 11

Node Selection

Jrg-Dic-2012

Pgina 12

Select Product Languages

Select Database Edition

Jrg-Dic-2012

Pgina 13

Specify Installation Location

Create inventory

Jrg-Dic-2012

Pgina 14

Privileged Operating System Groups

Perform prerequisite checks

Jrg-Dic-2012

Pgina 15

Review Oracle Database 11g Installation summary and click install

Jrg-Dic-2012

Pgina 16

At the end of the installation process a dialog box appear that shows two scripts must run as root user before you further proceed. These scripts are orainstRoot.sh and root.sh. Open new termianl and login as root user and run these scripts.

Jrg-Dic-2012

Pgina 17

Installation completed successfully

Common Installation Errors


Jrg-Dic-2012 Pgina 18

DISPLAY not set. Please set the DISPLAY and try again.

Solution: Execute "export DISPLAY=:0.0" when you perform installation on local machine or "export DISPLAY=:0.0 when you perform installation on remote machine connected over SSH". Don't forget to execute "xhost +" command on client machine.

Error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

Solution: Install libaio and libaio-devel packages. If packages already installed and error still occurs try execute "ldconfig" as root.

Check complete. The overall result of this check is: Failed <<<<

Solution: Install missing package or set check system parameters (See reason of failure).

Jrg-Dic-2012

Pgina 19

Das könnte Ihnen auch gefallen