To install the Oracle Database 11g on a server follow the following steps:
1. Prepare a Centos/Oracle system and update it.
2. Remove open-java and install oracle-jdk.
3. Specify a fully qualified hostname and a static ip address.
4. Do the entry in /etc/hosts file of hostname and ip-address.
5. Disable selinux and iptables.
6. For Centos
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ol6.repo
# wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
# yum install oracle-rdbms-server-11gR2-preinstall
It installs the required dependencies . We can install these dependencies one by one or manually using rpm command.
# /etc/security/limits.d/90-nproc.conf
* soft nofile 65536
* hard nofile 65536 // Now database user have permission to open this number of files.//
Check the following kernel parameters value. It should be equivalent to as described below or greater then. If a
kernel parameter value is greater then as described below then you do not need to specify it in kernel parameter file.
# /etc/sysctl.conf
kernel.shmall = 4294967296
kernel.shmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 256 32000 100 142
kernel.msgmni = 2878
kernel.msgmax = 1892
kernel.msgmnb = 65535
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
# sysctl -p
For Oracle Linux
# yum install oracle-rdbms-server-11gR2-preinstall
# /etc/sysctl.conf
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
# sysctl -p
7. usermod -G oinstall oracle
passwd oracle
mkdir /u01
chmod -R 775 /u01
chown -R oracle:oinstall /u01
8. Now logout from system and login with oracle user
# unzip Oracle-Database-11.2.0.3.zip
# unzip p10404530_112030_Linux-x86-64_1of7.zip
# unzip p10404530_112030_Linux-x86-64_2of7.zip
# cd database
# ./runInstaller
1. I am not providing oracle e-mail id and password in my practice environment.
2. Skip software updates and click next...
3. Select Install database software only...
1. Prepare a Centos/Oracle system and update it.
2. Remove open-java and install oracle-jdk.
3. Specify a fully qualified hostname and a static ip address.
4. Do the entry in /etc/hosts file of hostname and ip-address.
5. Disable selinux and iptables.
6. For Centos
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ol6.repo
# wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
# yum install oracle-rdbms-server-11gR2-preinstall
It installs the required dependencies . We can install these dependencies one by one or manually using rpm command.
# /etc/security/limits.d/90-nproc.conf
* soft nofile 65536
* hard nofile 65536 // Now database user have permission to open this number of files.//
Check the following kernel parameters value. It should be equivalent to as described below or greater then. If a
kernel parameter value is greater then as described below then you do not need to specify it in kernel parameter file.
# /etc/sysctl.conf
kernel.shmall = 4294967296
kernel.shmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 256 32000 100 142
kernel.msgmni = 2878
kernel.msgmax = 1892
kernel.msgmnb = 65535
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
# sysctl -p
For Oracle Linux
# yum install oracle-rdbms-server-11gR2-preinstall
# /etc/sysctl.conf
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
# sysctl -p
7. usermod -G oinstall oracle
passwd oracle
mkdir /u01
chmod -R 775 /u01
chown -R oracle:oinstall /u01
8. Now logout from system and login with oracle user
# unzip Oracle-Database-11.2.0.3.zip
# unzip p10404530_112030_Linux-x86-64_1of7.zip
# unzip p10404530_112030_Linux-x86-64_2of7.zip
# cd database
# ./runInstaller
1. I am not providing oracle e-mail id and password in my practice environment.
2. Skip software updates and click next...
3. Select Install database software only...
4. Select single instance database installation and click next...
5. Select Enterprise edition and click next....
6. Shows the software location and Oracle Base location...
7. It describe you OraInventory location and group name....
8. Describes Database admin and operator group name...
9. Now checking the kernel-parameters and and required softwares.
10. Save this response file. It will help to install Oracle database via command line OR in silent installation.
11. Started the installation...
12. After installation is complete run these two scripts using root user login.
No comments:
Post a Comment