Upload
roberto-hernandez
View
226
Download
0
Embed Size (px)
7/30/2019 Instala Oracle 11g en Linux RH5
1/19
Jrg-Dic-2012 Pgina 1
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 theterminal:
# 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
7/30/2019 Instala Oracle 11g en Linux RH5
2/19
Jrg-Dic-2012 Pgina 2
Step 3. Setting System parametersi. Edit the /etc/sysctl.conf and add following lines:kernel.shmall = 4294967295kernel.shmmax = 268435456kernel.shmmni = 4096kernel.sem = two hundred fifty 32 000 100 128fs.file-max = 6553600net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262 144net.core.wmem_max = 262144
7/30/2019 Instala Oracle 11g en Linux RH5
3/19
Jrg-Dic-2012 Pgina 3
You need reboot system or execute "sysctl -p" command to apply above settings
7/30/2019 Instala Oracle 11g en Linux RH5
4/19
Jrg-Dic-2012 Pgina 4
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:
7/30/2019 Instala Oracle 11g en Linux RH5
5/19
Jrg-Dic-2012 Pgina 5
Oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle 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
7/30/2019 Instala Oracle 11g en Linux RH5
6/19
Jrg-Dic-2012 Pgina 6
Step 5. Setting Oracle EnviromentEdit the /home/oracle/.bash_profile file and add following lines:
ORACLE_BASE=/opt/oracleORACLE_HOME = $ ORACLE_BASE/OraDB11gR2ORACLE_SID=ORCLORACLE_OWNER=oracleLD_LIBRARY_PATH=$ORACLE_HOME/libPATH=$PATH:$ORACLE_HOME/binexport ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATHPATH ORACLE_OWNERSave the .bash_profile and execute following commands for load new enviroment:
cd /home/oracle. .bash_profile
7/30/2019 Instala Oracle 11g en Linux RH5
7/19
Jrg-Dic-2012 Pgina 7
Step 6. Download and install required .rpm packagesSome additional packages are required for succesful instalation of Oracle software.To check wheter required packages are installed on your operating system usefollowing command:
7/30/2019 Instala Oracle 11g en Linux RH5
8/19
Jrg-Dic-2012 Pgina 8
# rpm -q binutils elfutils elfutils-libelf gcc gcc-c++ glibc glibc-common glibc-develcompat-libstdc++-33 cpp make compat-db sysstat libaio libaio-devel unixODBCunixODBC-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
7/30/2019 Instala Oracle 11g en Linux RH5
9/19
Jrg-Dic-2012 Pgina 9
Step 9. Login from oracle user on RedHat Linux
Step 10. Start the Oracle software installation process.
7/30/2019 Instala Oracle 11g en Linux RH5
10/19
Jrg-Dic-2012 Pgina 10
Now the system is prepared for Oracle software installation. To start the installationprocess 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:
7/30/2019 Instala Oracle 11g en Linux RH5
11/19
Jrg-Dic-2012 Pgina 11
Provide your email address to be informed of security issues
Select installation options
7/30/2019 Instala Oracle 11g en Linux RH5
12/19
Jrg-Dic-2012 Pgina 12
Node Selection
7/30/2019 Instala Oracle 11g en Linux RH5
13/19
Jrg-Dic-2012 Pgina 13
Select Product Languages
Select Database Edition
7/30/2019 Instala Oracle 11g en Linux RH5
14/19
Jrg-Dic-2012 Pgina 14
Specify Installation Location
Create inventory
7/30/2019 Instala Oracle 11g en Linux RH5
15/19
Jrg-Dic-2012 Pgina 15
Privileged Operating System Groups
Perform prerequisite checks
7/30/2019 Instala Oracle 11g en Linux RH5
16/19
Jrg-Dic-2012 Pgina 16
Review Oracle Database 11g Installation summary and click install
7/30/2019 Instala Oracle 11g en Linux RH5
17/19
Jrg-Dic-2012 Pgina 17
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.
7/30/2019 Instala Oracle 11g en Linux RH5
18/19
Jrg-Dic-2012 Pgina 18
Installation completed successfully
Common Installation Errors
7/30/2019 Instala Oracle 11g en Linux RH5
19/19
Jrg-Dic-2012 Pgina 19
DISPLAY not set. Please set the DISPLAY and try again.
Solution: Execute "export DISPLAY=:0.0" when you perform installation on localmachine 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