HOW TO: Install Oracle Database 11.2.0.x on Linux 64bit

Oracle database 11.2.0.x on Linux 64bit including the prerequisites in preparation for OIM (OFM) 11gR2 11.2.0.x
November 21, 2012
Oracle-Database
E_WARNING Error in file posts.php at line 313: fopen(http://www.technicalconfessions.com/images/postimages/postIcons/pp97.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found E_WARNING Error in file posts.php at line 313: fclose() expects parameter 1 to be resource, boolean given

Pre-requisites packages

Before you can install Oracle Database, you need to install some packages which are essential prior to running the installation package. There's 19 packages that need to install which, if you've installed via RPM in the past can be a nightmare, though there's now a single package that can install all the other packages called oracle-rdbms-server-11gR2-preinstall

Dependency Installed:
libstdc++-devel-4.4.6-4.el6.x86_64
glibc-2.12-1.80.el6_3.6.x86_64
glibc-common-2.12-1.80.el6_3.6.x86_64
mpfr-2.4.1-6.el6.x86_64
cpp-4.4.6-4.el6.x86_64
compat-libcap1-1.10-1.x86_64
ksh-20100621-16.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
ppl-0.10.2-11.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
kernel-uek-headers-2.6.32-300.39.1.el6uek.x86_64
glibc-headers-2.12-1.80.el6_3.6.x86_64
glibc-devel-2.12-1.80.el6_3.6.x86_64
gcc-4.4.6-4.el6.x86_64
gcc-c++-4.4.6-4.el6.x86_64
libaio-devel-0.3.107-10.el6.x86_64
oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
glibc-2.12-1.80.el6_3.5.x86_64
glibc-common-2.12-1.80.el6_3.5.x86_64
compat-libcap1-1.10-1.x86_64
ksh-20100621-16.el6.x86_64
glibc-common-2.12-1.80.el6_3.6.x86_64
gcc-4.4.6-4.el6.x86_64
libaio-devel-0.3.107-10.el6.x86_64
oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
gcc-c++-4.4.6-4.el6.x86_64
glibc-headers-2.12-1.80.el6_3.6.x86_64
libstdc++-devel-4.4.6-4.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
glibc-2.12-1.80.el6_3.6.x86_64
mpfr-2.4.1-6.el6.x86_64
kernel-uek-headers-2.6.32-300.39.1.el6uek.x86_64
cpp-4.4.6-4.el6.x86_64
glibc-devel-2.12-1.80.el6_3.6.x86_64
ppl-0.10.2-11.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
glibc-2.12-1.80.el6_3.5.x86_64
glibc-common-2.12-1.80.el6_3.5.x86_64

cd /etc/yum.repos.d
rm /etc/yum.repos.d/*
yum clean all
su Enter Password
# yum install oracle-rdbms-server-11gR2-preinstall


Set Environment Variables

https://technicalconfessions.com/images/postimages/postimages/_97_3_edited bash profile.png

In this task, you are required to set the Oracle environment variable for both the installation and also based on a permanent basis. You need to edit /home/oracle/.bash_profile. To do this, execute the following:

vi /home/oracle/.bash_profile

Once you're in vi editor, include the following lines Note: you need to press 'a' to edit then 'esc' when you've finished editing

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/112
ORACLE_SID=orcl
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

Save and exit vi editor by pressing the following:

:wq!

For your efforts to take effect, enter in terminal the following command:

. /home/oracle/.bash_profile

To test your efforts were successful, test by typing in the following:

echo $ORACLE_HOME

You should get back the value you entered in the file. If the value is blank, then the variable has not been set correctly.


Modify 'opt' Directory

As part of the installation, you will need write access because you cannot install via root. A quick and dirty way would be to modify the 'opt' directory (which by default is 755)

sudo chmod 777 /opt/

Note: Providing full access to the opt directory is not recommended though I've decided to do this for the purpose of this demonstration. Also, make a new directory where you will be installing the Oracle Database.

mkdir /opt/oracle/


Start the Installation

https://technicalconfessions.com/images/postimages/postimages/_97_5_Download Oracle database for linux.png

You need to download both files from the Oracle website, un-package them, then combined them both together.

Oracle Database Software Download Website

From your extracted packages, navigate to the 'runInstaller' file and enter in the following command:

./runInstaller

https://technicalconfessions.com/images/postimages/postimages/_97_6_Configue security updates.png
https://technicalconfessions.com/images/postimages/postimages/_97_7_Installation Options.png
https://technicalconfessions.com/images/postimages/postimages/_97_8_System class.png
https://technicalconfessions.com/images/postimages/postimages/_97_9_Typical Installation.png
https://technicalconfessions.com/images/postimages/postimages/_97_10_Oracle Inventory.png
https://technicalconfessions.com/images/postimages/postimages/_97_11_Prerequisite_Checks.png
https://technicalconfessions.com/images/postimages/postimages/_97_12_Prerequisite Checks2.png

Important
You may notice that the minimum requirements fail during the testing.

Package:libaio-0.3.105 - This is a prerequisite condition to test whether the package "libaio-0.3.105 is available on the system. List of errors:
- PRVF-7532: Package "libaio-0.3.105 (i386)" is missing on node "Localhost"

This is a little miss leading because I noticed that these are 32-bit packages, not the 64bit packages. You installed the 64bit packages because so go ahead and click 'ignore all'

https://technicalconfessions.com/images/postimages/postimages/_97_13_Summary.png

Password Management

https://technicalconfessions.com/images/postimages/postimages/_97_14_Installation Procedure.png

Click in on the button password management and add a password to the vital users. I activated all of them to avoid further complications with other functions later. Again, if this is a live environment, reconsider taking this option.


Execute configuration scripts

https://technicalconfessions.com/images/postimages/postimages/_97_15_Installation run root.png

When you see this screen, you will be required to execute some shell scripts.

cd /opt/oraInventory/
./orainstRoot.sh
./root.sh

Once you've executed these scripts, carry on with the installation.

https://technicalconfessions.com/images/postimages/postimages/_97_16_Finish 11g Installation.png

Testing Oracle Enterprise Manager

You should now be able to test Oracle enterprise manager by entering in the following URL:

http://localhost:1158/em

https://technicalconfessions.com/images/postimages/postimages/_97_18_Oracle Enterprise Manager11gR2.png

Enter in the credentials of sys that you activated in the password management.

https://technicalconfessions.com/images/postimages/postimages/_97_19_OEM Dashboard.png

Next Chapter


Complete!

If you're following the OFM installation, go to the next blog:
HOW TO: Install Weblogic 10.3.6 for OIM 11gR2

About the author

Daniel is a Technical Manager with over 10 years of consulting expertise in the Identity and Access Management space.
Daniel has built from scratch this blog as well as technicalconfessions.com
Follow Daniel on twitter @nervouswiggles

Comments

Other Posts

ForgeRock OpenIDM - InvalidCredentialException: Remote framework key is invalid

ICFIDMOpenIDMOpenICF

November 8, 2017
Created by: Daniel Redfern
In the past, the similar error occurred though for the Oracle Identity Management solution. invalidcredentialexception remote framework key is invalid Because they all share the ICF connector framework, the error/solution would be the same.
Read More...

org.forgerock.script.exception.ScriptCompilationException: missing ; before statement

IDMsync.confforgerockopenidm

November 8, 2017
Created by: Daniel Redfern
org.forgerock.script.exception.ScriptCompilationException: missing ; before statement
Read More...

ForgeRock IDM - org.forgerock.script.exception.ScriptCompilationException: missing ; before statemen

OpenIDMsync.confForgeRock

September 17, 2017
Created by: Daniel Redfern
ForgeRock IDM - org.forgerock.script.exception.ScriptCompilationException: missing ; before statement
Read More...

Caused by: org.forgerock.json.resource.BadRequestException: Target does not support attribute groups

OpenIDMForgeRockICFConnector

September 17, 2017
Created by: Daniel Redfern
When performing the attempt of a reconciliation from ForgeRock IDM to Active Directory, I would get the following error
Read More...

ForgeRock OpenIDM - InvalidCredentialException: Remote framework key is invalid

OpenIDMForgeRockICFConnectorAD

September 17, 2017
Created by: Daniel Redfern
In the past, the similar error occurred though for the Oracle Identity Management solution. invalidcredentialexception remote framework key is invalid Because they all share the ICF connector framework, the error/solution would be the same.
Read More...

ERROR Caused by com.google.api.client.auth.oauth2.TokenResponseException 400 Bad Request - invalid_g

OpenIDMIDMGoogleGoogle-AppsICFreconciliation

September 12, 2017
Created by: Daniel Redfern
During the reconcilation from OpenIDM to the ICF google apps connector, the following error response would occur. ERROR Caused by com.google.api.client.auth.oauth2.TokenResponseException 400 Bad Request - invalid_grant
Read More...

forgerock-openidm-encryptedjwt-error

OpenIDMIDMForgeRockJWTIAM

August 29, 2017
Created by: Daniel Redfern
Received the JWT error
Read More...

Unexpected character ('¾' (code 190)): expected a valid value

ForgeRock-OpenIDMOpenIDMIDMKeystore

June 25, 2017
Created by: Daniel Redfern
Unexpected character occurred when the IP addresses changes and the virtual instance was migrated into a separate network subnet.
Read More...
E_WARNING Error in file posts.php at line 464: fopen(http://www.technicalconfessions.com/images/postimages/postIcons/pp444.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found E_WARNING Error in file posts.php at line 464: fclose() expects parameter 1 to be resource, boolean given

OpenDJ Error - Connect Error Result Code: 91 (Connect Error)

OpenDJLDAPldapsearchForgeRock

June 5, 2017
Created by: Daniel Redfern
When trying to connect, I would then receive the following error "Connect Error Result Code: 91 (Connect Error)"
Read More...

Tomcat NioEndpoint$SocketProcessor.doRun java.lang.NullPointerException error

TomcatJava-8PKICAS

June 5, 2017
Created by: Daniel Redfern
When initiating the Tomcat instance, the cas-stderr log file will log a SEVERE error logging multiple times every few seconds
Read More...