Oracle 11g R2 Install
Oracle 11g R2 Install
This is an Easy and Step-by-Step Guide to Install the Oracle 11g R2 Database on RHEL 6 Relax and Take the Time to Reading, Understanding and Executing Carefully the Instructions Contained here.
1. Download the Database Release Oracle 11g R2 2. Open a Terminal Window 3. Login as SuperUser:
su
4. Make Network Configuration Check you hostname and IP is on /etc/hosts Get your hostname:
hostname
You will Find your Ip under the Output "lo" Section. Check if Hostname and IP are already inserted into the Enabled Hosts File.
cat /etc/hosts
Insert: <IP HOSTNAME.DOMAINNAME HOSTNAME> Example: '127.0.0.1 localhost.localdomain localhost' Add you Host IP to the List of Hosts Granted of Connection with the X Server
xhost +<yourIP>
5. Link to Setup YUM for Oracle 11g on RHEL: YUM 6. Install dependencies
7. yum install binutils glibc compat-libstdc++-33 glibc-common \ 8. glibc-devel glibc-headers elfutils-libelf elfutils-libelf-devel \ 9. elfutils gcc gcc-c++ ksh libaio libaio-devel libgcc libstdc++-devel \ make numactl-devel sysstat mksh
11. Create the directories where Oracle will be installed and give right ownership and permission
mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1 chown -R oracle:oinstall /u01 chmod -R 775 /u01
nano /etc/selinux/config
Disable Secure Linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows.
SELINUX=disabled
13. Unzip the Oracle 11g Database, Set oracle as Owner and Move it into the oracle's Home
cd </path/To/linux_11gR2*.zip> unzip linux_11gR2_database_1of2.zip unzip linux_11gR2_database_2of2.zip chown -R oracle:oinstall database mv database /home/oracle
Insert:
# Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_HOSTNAME=<HOSTNAME>; export ORACLE_HOSTNAME ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME ORACLE_SID=<DBSID>; export ORACLE_SID 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/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
Substitute HOSTNAME and DBSID with the Values you Will Use During Software Installation In this Example Respectively: HOSTNAME = 127.0.0.1 DBSID = SID 15. Install the Oracle 11g Software
cd /home/oracle/database ./runInstaller o o
If you Get: "Check if the DISPLAY variable is set. Failed". Look Link Below. Link2+ Oracle 11g Database Troubleshooting
On the first screen Just Insert your email and Click on Next
On "Select Installation Option" Select "Install database software only" and Click on Next
On Step 3 Leave Default "Single instance database installation" and Click on Next
These are the Same Settings Inserted into the .bash_profile File...
On "Create Inventory" if you Setup the Path on .bash_profile Like Here Leave Default and Click on Next
On "Operating System Groups" if you Setup the Path on .bash_profile Like Here Leave Default and Click on Next
On "Prerequisite Checks" you will Get Easily a "Warning Message" about some Missing Requirements
On the "Summary" Click on "Save Response File" to Take Note of Settings and then Click on Finish
The Installation Product Procedure should Start... Wait Until Successful Achievement. Right Before the End of Process a Pop-Up Window will Show the Path to Two Configuration Scripts you Need to Execute on Terminal!