|
Login as root and create the user “oracle” which belongs to “dba” group.
|
1.2 Setting System parameters
For doing this we have to edit the sysctl.conf file. This can be done in 2 ways-
# vi /etc/sysctl.conf
kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 6815744fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576
Note: You need reboot system or execute “sysctl -p” command to apply above settings. /sbin/sysctl -p |
|
|
|
ls -a
# su oracle
#$ vi ~/.bash_profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
2. Download & Install
2.2.1 1. 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:
rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libstdc++ gdbm make ksh elfutils-libelf sysstat libaio libaio-devel setarch unixODBC libXp libXtst xorg-x11-utils –qf ‘%{name}.%{arch}\n’|sort
Output for 32 bit (i386) Linuxversion:
binutils.i386
compat-db.i386 compat-libstdc++-33.i386 elfutils-libelf.i386 gcc-c++.i386 gcc.i386 gdbm.i386 glibc-devel.i386 glibc-headers.i386 glibc.i386 glibc.i686 ksh.i386 libaio-devel.i386 libaio.i386 libstdc++.i386 libXp.i386 libXtst.i386 make.i386 setarch.i386 sysstat.i386 unixODBC.i386 xorg-x11-utils.i386 |
NOTE:If some package is not installed then install it from installation media or download it from following locations:
CentOS Linux 5i386
|
Extract the files using following command:
unzip linux.x64_11gR2_database_2of2.zip
Now the system is prepared for Oracle software installation. To start the installation process execute the following commands: Now the system is prepared for Oracle software installation. To start the installation process execute the following commands after going into the installation folder:
./runInstaller
Post-Instalation Tasks
Open sql developer and do a test connection. If the Test connection work successfull, it means that you have successfully installed the Oracle Database in Linux Environment
Common Installation Errors
DISPLAY not set. Please set the DISPLAY and try again.
> This issue I had faced as this failed at time of the Prerequisites. I ran the installable using the open terminal doing a su of the user. Instead switch via the GUI or enter directly as the user you created for the Installation. In this case oracle is the user.
Test connection not successful in sql plus after the Oracle 11G Installation
This might be because the database is down. Execute the following commands mentioned below.
id
env | sort
sqlplus
/ as sysdba
startup