首页 > 代码库 > Oracle 12cR2 Installation On CentOS-7

Oracle 12cR2 Installation On CentOS-7

安装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 update
yum install oracle-database-server-12cR2-preinstall -y

 创建oracle环境变量配置文件

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