Installing Oracle-database-server-12cr2-preinstall
wget http://public-yum.oracle.com/public-yum-ol7.repo-o/etc/yum.repos.d/ Public-yum-ol7.repowget http://public-yum.oracle.com/rpm-gpg-key-oracle-ol7-o/etc/ Pki/rpm-gpg/rpm-gpg-key-oracle
Yum Clean All
Yum updateyuminstall oracle-database-server-12cr2-preinstall-y
Create an Oracle environment variable configuration file
mkdir/home/oracle/scripts
Cat>/home/oracle/scripts/setenv.SH<<eof# Oracle settingsexport TMP=/Tmpexport TMPDIR=\ $TMPexport Oracle_hostname=Oracle12c.localexport Oracle_unqname=Cdb1export oracle_base=/u01/app/Oracleexport Oracle_home=\ $ORACLE _base/product/12.2.0.1/Db_1export Oracle_sid=Cdb1export PATH=\ $PATH: \ $ORACLE _home/Binexport Ld_library_path=\ $ORACLE _home/lib:/lib:/usr/Libexport CLASSPATH=\ $ORACLE _home/jlib:\ $ORACLE _home/rdbms/jlibeof
echo ". /home/oracle/scripts/setenv.sh ">>/home/oracle/.bash_profile
Chown-r Oracle.oinstall/home/oracle/scriptschmod u+x/home/oracle/scripts/*.sh
Oracle 12CR2 installation on CentOS-7