Install Oracle11gR2 database under CentOS6.9

1、 Download the 11g R2 database Linux installation package from the Oracle official website

https://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html

2、 You can refer to the official website installation guide document to check the installation environment of the Linux server

https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm

1) Install the RPM support package required by Oracle

yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 ksh elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 make sysstat unixODBC unixODBC-devel

2) Configure kernel parameters

Add the following parameters at the bottom of the vi /etc/sysctl.conf configuration file

net.ipv4.ip_local_port_range = 9000 65500

fs.file-max = 6815744

kernel.shmall = 10523004

kernel.shmmax = 6465333657

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

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 makes the kernel parameters take effect

3) Create users and user groups

[ root@localhost ~]# groupadd -g 200 oinstall

[ root@localhost ~]# groupadd -g 201 dba

[ root@localhost ~]#useradd -u 440 -g oinstall -G dba -d /database/oracle oracle

[ root@localhost ~]# passwd oracle

4) Modify user's SHELL limit

[ root@localhost ~]# vi /etc/pam.d/login

Add session required pam_limits.so line

vi /etc/security/limits.conf

Add

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

vi /etc/profile

Add the following at the end

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

5) Log in with the oracle user just created and create the relevant directory, modify the directory permissions

[ oracle@localhost ~]$ chmod 755 /database/oracle

[ oracle@localhost ~]$ mkdir /database/oracle/app

[ oracle@localhost ~]$ chmod 755 /database/oracle/app

[ oracle@localhost ~]$ mkdir /database/oracle/oradata

[ oracle@localhost ~]$ chmod 755 /database/oracle/oradata

vi ~/.bash_profile

umask 022

export ORACLE_BASE=/database/oracle/app

6) mkdir tmp is used to upload the installation package

cd tmp

ll -trh

unzip linux.x64_11gR2_database_1of2.zip

unzip linux.x64_11gR2_database_2of2.zip

7) Because Oracle installation requires a graphical interface

**yum groupinstall "X Window System" **

yum groupinstall "Desktop"

You can refer to the previous article [PXE+Kickstart to realize unattended automatic installation of CentOS system] (http://mp.weixin.qq.com/s?__biz=MzU2MjU1OTE0MA==&mid=2247485106&idx=1&sn=b4939cb6c9c95a2438f386a4b4de6c71&chksm=fc66e779cb116e6ff1b318a75c6698891a611eb7854891ab6ad4616aa726aa84095712483331&scene=21#wechat_redirect) for the steps to install the graphical interface, which is omitted here

8) In a remote environment, you can install Xmanager, open Xmanager-Passive under Xmanager, and the user will receive and display the graphical interface from ssh

Then open the xstart session, connect to the server and use gnome-terminal first

9 ) After running, enter ./tmp/database/runInstaller in the pop-up graphical terminal to start the installation wizard

3、 Next, proceed to the steps of Oracle graphical installation

The installation steps are as follows

  1. The first step does not fill in the email address to continue

  1. Install database software only

  1. Select Single Instance Database Installation

  1. Choose your language

  1. Select the version to install Enterprise Edtion

  1. Specify the Oracle base directory and files. In this example, keep the default values and proceed to the next step

  1. Specify Inventory directory

  1. Specify a privilege group

  1. Part of the basic package check chooses to ignore all

  1. Display the overall installation configuration summary, select Finish to install

  1. The installation progress bar will be displayed next

  1. When the following window is displayed, then open a terminal and execute two scripts as root user

  1. Create a new Terminal window, and then switch to the root user to execute these two script files

  1. Then the installation is complete

4、 Configuration work after installation

  1. Re-modify the environment variable vi ./.bash_profile

export ORACLE_BASE=/database/oracle/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

export PATH=PATH:ORACLE_HOME/bin

User variables will take effect after re-login, verify

  1. After confirming that there is no problem with the environment variables, enter the netca command to add the network monitoring configuration wizard, and keep the default options in the next step. The screenshots of the steps are omitted

Tips: SecureCRT login server and enter the netca command to pop up a graphical wizard interface. Make sure that Xmanager Xmanager-Passive is turned on

Here the Oracle database is all installed

Recommended Posts

Install Oracle11gR2 database under CentOS6.9
Install MongoDB database under CentOS7
Install mysql5.7 under CentOS7
Install CentOS under VMware
Install mysql under Centos 7
Centos7 install Mysql database
Install Jenkins under Centos 7
Install MariaDB under MariaDB Centos7
Install mysql5.1 under CentOS6.5
Install MySQL under Linux (CentOS 7)
Install Java JDK8 under CentOS6
CentOS 6.8 under linux install mongodb
Install Mesos tutorial under CentOS7
1.5 Install Centos7
Install and configure keepalived under CentOS 5.9
Compile and install LAMP under Centos 5.2
[Introduction to redis] Install redis under Centos
Install Percona Server database (in CentOS 8)
Install Harbor mirror warehouse under CentOS
​Install Oracle database on CentOS Linux
Install Python3 and ansible under CentOS8
CentOS7.2 install lepus database monitoring system
Install the latest OpenCV4.3 under Centos8
Install and use docker under CentOS 6.8
Install Python3 and Py under CentOS7
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Centos6 install Python2.7.13
Compile and install libmodbus library under CentOS7
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
Install mysql8.0.13 version under Linux CentOS7 system
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3