How to install Oracle 12c in Redhat 6 environment, oracle12c
Step 1:
To install Oracle on Linux, you must install the corresponding software package before installing Oracle. The requirements for software packages vary with operating system environments. Specific corresponding software packages, see the official documentation: https://docs.oracle.com/cd/E23104_01/sysreqs1213/sysrs.htm#BABGGJGJ
Install the corresponding software package using YUM
Step 2: Create an OS Group and User
Create three groups and one User as follows:
# Groupadd oinstall
# Groupadd dba
# Groupadd rule
# Useradd-u 500-g oinstall-G dba, role oracle
Step 3: unzip the Oracle binary installation package
$ Mkdir-p/home/oracle/orainst/11.2.0.2
$ Mkdir-p/home/oracle/orainst/12.1.0.1
$ Mv linux_12c_database_1of2.zip/home/oracle/orainst/12.1.0.1
$ Mv linux_12c_databasesilicate f2.zip/home/oracle/orainst/12.1.0.1
$ Unzip linux_12cR1_database_1of2.zip
$ Unzip linux_12cr1_databasesilicate f2.zip
Step 4: run the unzipped runInstaller for Installation
Step 5: Configure environment variables after installation
# Oracle Enivronment
Export ORACLE_SID = orcl
Export ORACLE_BASE =/home/oracle/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/12.1.0.2/db_1
Export LD_LIBRARY_PATH =/usr/lib: $ ORACLE_HOME/lib
Export PATH = $ ORACLE_HOME/bin: $ PATH