oracle 11g r2 install
TRANSCRIPT
-
7/31/2019 Oracle 11g R2 Install
1/5
Oracle 11g R2 Install and Getting-Started on RHEL 6 Linux
This is an Easy and Step-by-Step Guide to Install the Oracle 11g R2 Database on RHEL 6Relax and Take the Time to Reading, Understanding and Executing Carefully the Instructions
Contained here.
1. Download the Database ReleaseOracle 11g R2
2. Open a Terminal Window3. Login as SuperUser:
su
4. Make Network ConfigurationCheck you hostname and IP is on/etc/hosts
Get your hostname:
hostname
Get your IP:
/sbin/ifconfig
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
If It's Not Present then Insert it!
nano /etc/hosts
Insert:
Example: '127.0.0.1 localhost.localdomain localhost'
Add you Host IP to the List of Hosts Granted ofConnection with the X Server
xhost +
Example: #xhost +127.0.0.1
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttp://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttp://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html -
7/31/2019 Oracle 11g R2 Install
2/5
5. Link to Setup YUM for Oracle 11g on RHEL:YUM6. Install dependencies7. 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
10.Add Groups and Usergroupadd -g 502 oinstallgroupadd -g 503 dbagroupadd -g 504 opergroupadd -g 505 asmadmin
useradd -u 502 -g oinstall -G dba,asmadmin,oper oracle
passwd oracle
11.Create the directories where Oracle will be installed and give right ownership andpermission
mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1chown -R oracle:oinstall /u01chmod -R 775 /u01
12.Set Kernel's Parametersnano /etc/sysctl.conf
Add or amend the following lines in the/etc/sysctl.conffile.#### Oracle 11g Kernel Parameters ####fs.suid_dumpable = 1fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586
Comment out these lines below than give an error
http://install-climber.blogspot.in/2011/05/href=http://install-climber.blogspot.in/2011/05/href=http://install-climber.blogspot.in/2011/05/href=http://install-climber.blogspot.in/2011/05/href= -
7/31/2019 Oracle 11g R2 Install
3/5
#net.bridge.bridge-nf-call-ip6tables = 0
#net.bridge.bridge-nf-call-iptables = 0#net.bridge.bridge-nf-call-arptables = 0
nano /etc/security/limits.conf
Add the following lines to the/etc/security/limits.conffile.#### oracle User Settings 4 Oracle 11g ####oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 10240
nano /etc/selinux/config
Disable Secure Linux by editing the/etc/selinux/config file, making sure the SELINUXflag is set as follows.SELINUX=disabled
Run the following command to Load the New Kernel Parameters.
/sbin/sysctl -p
13.Unzip the Oracle 11g Database, Set oracle as Owner and Move it into the oracle'sHome
cd unzip linux_11gR2_database_1of2.zipunzip linux_11gR2_database_2of2.zipchown -R oracle:oinstall databasemv database /home/oracle
14.Add Paths to Oracle's .bash_profileLogin as Oracle
su oracle
Edit .bashrc file
nano /home/oracle/.bash_profile
Insert:
-
7/31/2019 Oracle 11g R2 Install
4/5
# Oracle SettingsTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=; export ORACLE_HOSTNAMEORACLE_UNQNAME=DB11G; export ORACLE_UNQNAMEORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOMEORACLE_SID=; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
Substitute HOSTNAME and DBSID with the Values you Will Use During SoftwareInstallation
In this Example Respectively:
o HOSTNAME = 127.0.0.1o DBSID = SID
15.Install the Oracle 11g Softwarecd /home/oracle/database./runInstaller
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
On Step 4 Select your Language and Click on Next
http://install-climber.blogspot.com/2012/06/oracle11gdatabasetroubleshootingguides.htmlhttp://install-climber.blogspot.com/2012/06/oracle11gdatabasetroubleshootingguides.htmlhttp://install-climber.blogspot.com/2012/06/oracle11gdatabasetroubleshootingguides.html -
7/31/2019 Oracle 11g R2 Install
5/5
On Step 5 Leave Default Enterprise Edition and Click on Next
On "Installation Location" Set All As Here Below and Click on Next
o Oracle Base:/u01/app/oracleo Software Location:/u01/app/oracle/product/11.2.0/dbhome_1
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 HereLeave 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 thenClick 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!
Last Oracle Should Confirm you of a Successful Installation End.)