1, the official download installation package: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Linuxamd64_12102_database_1of2.zip
Linuxamd64_12102_database_1of2.zip
2, creating oracle Users and Groups
[Email protected]]# groupadd Oinstall
[[Email protected]]# groupadd dba
[[Email protected]]# useradd-g oinstall-g dba Oracle
[[Email protected]]# passwd Oracle
3. Create a Directory
[Email protected]]# mkdir-p/oracle/
[Email protected]]# chown-r oracle:oinstall/oracle/
[Email protected]]# chmod-r 775/oracle/
4. Modify Kernel Parameters
Add the following parameters under the/etc/sysctl.conf file:
[[Email protected]]# vi/etc/sysctl.conf
FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 536870912
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048586
execute/sbin/sysctl-p to make configuration parameters effective
[[Email protected]]#/sbin/sysctl-p
5. Modify User Restrictions
Add the following parameters to the/etc/security/limits.conf:
[[Email protected]]# vi/etc/security/limits.conf
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
Oracle Hard Stack 10240
6, configuration environment variable
Add the following parameters to/home/oracle/ .bash_profile:
[Email protected] ~]$ Vi. bash_profile
Export ORACLE_BASE=/ORACLE/12C
Export Oracle_home= $ORACLE _BASE/DB1
Export ORACLE_SID=ORCL12C
Export path= $ORACLE _home/bin: $PATH: $HOME/bin
Export Editor=/bin/vi
executes the source. Bash_profile make the configuration file effective
[email protected]~]$ source. Bash_profile
7. Expand Swap Space
[[email protected]] #dd If=/dev/zero of=/home/swap bs=1024 count=16400000
[[email protected]] #mkswap/home/swap
[[email protected]] #swapon/home/swap
At the end of the/etc/fstab, add the following parameters:
[Email protected]t] #vi/etc/fstab
/home/swap Swap swap default 0 0
At the end of the/etc/inittab, add the following parameters:
[[Email protected]]# vi/etc/inittab
Swapon/home/swap
8. Install the dependent package:
[[Email protected]]# compat-libstdc++-33-3.2.3-61.x86_64.rpm
[[Email protected]]# compat-libstdc++-33-3.2.3-61.i386.rpm
[Email protected]]# rpm-ivh libaio-devel-0.3.109-12.el7.i686.rpm
[Email protected]]# rpm-ivh libaio-devel-0.3.109-12.el7.x86_64.rpm
9, upload the installation files to/home/oracle/
10, with the root user to open another terminal, configure the graphical installation (configuration completed cannot close the window)
[Email protected]]# Export display=:0.0
[Email protected]]# xhost +
Oracle User Settings Environment variables
[Email protected]~]$ Export display=:0.0
11. Unzip the installation package installation file
[email protected] oracle]# unzip Linuxamd64_12102_database_1of2.zip
[email protected] oralce]# unzip Linuxamd64_12102_database_1of2.zip
12. Check
[[Email protected]~]$ cd/home/oracle/database/
[Email protected]]$./runinstaller-executesysprereqs
13. Installation
[Email protected]]$./runinstaller