- when the basis is the pre-installation configuration
1, the root user is provided (in front of the # represents the root user, delete the line output system):
# vim /etc/sysconfig/selinux
SELINUX=disabled
2, turn off the firewall
1 # systemctl stop firewalld - turn off the firewall
2 # systemctl disable firewalld - the next will not turn on the firewall
# Check disk space
# df -h
# Check memory
# free -m
# Check modify the host name
. 1 # hostname / ip 2 . 3 # hostnamectl SET the -HostName demo.example.com - modify the host name . 4 . 5 # ip A - See ip address
3, here is the setting card, you can use a graphical interface to set
# nmcli device status
DEVICE TYPE STATE CONNECTION
eno16777736 ethernet connected eno16777736
lo loopback unmanaged --
# nmcli connection show
NAME UUID TYPE DEVICE
eno16777736 1fb51113-0b9c-450a-b435-cfde1b220401 802-3-ethernet eno16777736
# nmcli connection add con-name demo ifname eno16777736 type ethernet autoconnect yes (dhcp)
# nmcli connection up demo
# Ip a - you can see an IP address
# #nmcli connection modify demo ipv4.method manual ipv4.addresses '192.168.78.128/24 192.168.78.1' --修改IP配置(rhel7.0)
# nmcli connection modify demo ipv4.method manual ipv4.addresses '192.168.78.128/24' ipv4.gateway 192.168.78.1 (rhel7.1 and after)
# nmcli connection up demo
4, just reboot and test set
Reboot - Restart
systemctl status firewalld
getenforce
hostnamectl
ip a
5, create the required installation oracle user groups, set the main group and sub-group added to the
# Groupadd oinstall - This is the main group
# Groupadd dba - here and below for the second group
# groupadd oper
# groupadd dgdba
# groupadd kmdba
# groupadd racdba
# groupadd backupdba
#useradd -g oinstall -G dba, oper, dgdba, racdba, kmdba, backupdbaoracle - If you already have oracle user, will have to use the usermod
6, create the necessary directory, set permissions, copy the installation files
# Passwd oracle - set a user's password
# Mkdir -p / u01 / app / - create a directory
# Chown -R oracle: oinstall / u01 / app / - Change the owner
# Chmod -R 775 / u01 / app / - change the permissions
xmanager: xshell / xftp (ssh) - used to transfer files xFTP
67 unzip p17694377_121020_Linux-x86-64_1of8.zip - decompression
68 unzip p17694377_121020_Linux-x86-64_2of8.zip
69 ls
7, there is provided a graphic display of where
[Root @ demo u01] # echo $ DISPLAY - viewed on a monitor a few numbers
:0
[root@demou01]# xhost +
access control disabled, clients can connect from any host
[root@demou01]#
[Root @ demou01] # su - oracle - here should exit, change can not be repeated
[Oracle @ demo ~] $ export DISPLAY =: 0 - Set Monitor
[Oracle @ demo ~] $ / u01 / database / runInstaller - to start the installation
(1) If the message PRVF-0002: could not retrieve local nodename, unable to retrieve local node name, meaning not find the corresponding IP host name
Modify: Modify the / etc / host finally add the host name and ip
/etc/hosts
Rearmost add ip hostname
Important options (also available as needed):
installsoftware only - only install software
singleinstance (stand alone) - Single Instance
- The following two important directories
(ORACLE_BASE):/u01/app/oracle
(ORACLE_HOME):/u01/app/oracle/product/12.2.0/dbhome_1
The installation process will be detected pass of:
(1) First click fix & check again and run the file provided part of the process
(2) install the missing program
installsoftware:
yum install
- mount the CD using the CD-ROM installation files
[Root @ demou01] # mkdir / mnt / cdrom - create a directory
[root@demou01]# mount /dev/cdrom /mnt/cdrom
mount: /dev/sr0 is write-protected, mounting read-only
[Root @ demou01] # ls / mnt / cdrom - view the file, mounted
- The following install any missing files
yum-config-Manager #---add the repo = File: /// mnt / CDROM - Set Source
#ls /etc/yum.repos.d/ - Viewing Profile
mnt_cdrom.repo packagekit-media.repo
Open the configuration file mnt_cdrom.repo generated, and finally add in the file:
gpgcheck = 0-- GPG is a free tool for encryption and digital signatures, mostly for transferring encrypted information.
#yum install xxx yyy zzz - without parentheses installation file
安装为:yum install compat-libcap1 libstdc++-devel gcc-c++ ksh glibc-devel libaio-devel
#rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
Finally, there is not a file? 12c does not appear, there have been soft limit maximum stack sizea need to find 10240 8192.
The oracle database installation prerequisite check is failingon the Soft Limit: maximum stack size.
PRVG-0449 : Proper soft limitfor maximum stack size was not found on node "XXXXX" [Expected >="10240" ; Found = "8192"].
- Cause: The Cluster Verification Utilitydetermined that the setting for the indicated soft limit did not meet Oracle''srecommendations for proper operation on the indicated nodes.
- Action: Modify the resource limits to meet therequirement and take operating system specific measures to ensure that thecorrected value takes effect for the current user before retrying this check.
oracle database installation prerequisite checking fails on soft limit: The maximum stack size.
0449-PRVG : node "XXXXX" correct soft limit the maximum stack size is not found on the [ expected > = "10240"; found = "8192"] . - Cause: The cluster verification utility to determine the indication of soft limit settings do not meet Oracle recommended instructions for proper operation of the node. - Operation: Modify resource constraints and to take measures to meet the requirements specific to the operating system to ensure that the value of this check before retrying corrections to the current user.
Resolution: Using vi /etc/security/limits.conf modify the file, check the stack size size. If confirmed no mistake, it is ignored.
Then start the installation! ! !
Finally, a window pops up to use the root user run the two files are sh
8, set the oracle user's environment variables
[oracle@demo~]$ cd
[Oracle @ demo ~] $ vi .bash_profile, inserted before export PATH:
ORACLE_BASE = Export / u01 / App / the Oracle
Export ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1
Export the PATH = $ ORACLE_HOME / bin: $ the PATH - case sensitive
$ Source .bash_profile - reload file
9, install the database
$ Dbca - install command
(1) Select Advanced Options
(2) the middle can not create a listener
(3) to set some memory of these, it is best to create a sample database
After installing the database, system-related reasons, to start the graphical interface does not load .bash_profile, so after opening a terminal to load the file, and then open the database startup, then landed use.