---restore content starts---
1. Determine if the VM's hard disk space is df-h enough, the hard disk space free disk 15G is more secure
2. Identify the network and require remote connect ifconfig
3. Verify kernel. Confirm that the Linux version meets Oracle requirements
4. Install the package Yum
Yum install-y binutils.x86_64 compat-libcap1.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.i686 glibc.x86_64 glibc-devel.i686 Glibc-devel.x86_64 Ksh compat-libstdc++-33 libaio.i686 libaio.x86_64
libxtst.i686 libxtst.x86_64 make.x86_64 sysstat.x86_64 zip unzip
Problem found: yum install ERROR–GPG key retrieval failed: [Errno] Could not open/read File:///etc/pki/rpm-gpg/RPM-GPG-KEY -oracle
Workaround: wget Http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6-O/etc/pki/rpm-gpg/rpm-gpg-key-oracle
5. Create users and Groups:
Groupadd Oinstall-Create Oinstall zu
Groupadd dba
Useradd oracle-g oinstall-g dba-belongs to two groups, one primary group, one sub-group
passwd Oracle-Create password
ID Oracle-View users, confirm grouping
6. Building your Directory
Df-k, see which space is larger, I this is the/dev space is relatively large (field is mounted on), directly under this directory created
# mkdir-p/dev/app/Create directory # chown-r oracle:oinstall/dev/app/Group
# Chmod-r 775/dev/app Authorization
7. Oarlce setting
Export Tmp=/tmp
Export tmpdir= $TMP
Export Oracle_home=zhuvmbmf.localdomain
Export ORACLE_UNQNAME=ORA12C
Export Oracle_base=/dev/app
Export Oracle_home= $oracle _base/product/12/ora12c
Export ORACLE_SID=ORA12C
Export Path=/usr/sbin: $path
Export path= $oracle _home/bin, $path
---restore content ends---
Install Oracle 12c on Redhat