标签:文件 dir host usr rpm rac port centos rod
安装oracle-database-server-12cR2-preinstall
wget http://public-yum.oracle.com/public-yum-ol7.repo -O /etc/yum.repos.d/public-yum-ol7.repo wget 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 Settings export TMP=/tmp export TMPDIR=\$TMP export ORACLE_HOSTNAME=oracle12c.local export ORACLE_UNQNAME=cdb1 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=\$ORACLE_BASE/product/12.2.0.1/db_1 export ORACLE_SID=cdb1 export PATH=\$PATH:\$ORACLE_HOME/bin export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib EOF
echo ". /home/oracle/scripts/setEnv.sh" >> /home/oracle/.bash_profile
chown -R oracle.oinstall /home/oracle/scripts chmod u+x /home/oracle/scripts/*.sh
Oracle 12cR2 Installation On CentOS-7
标签:文件 dir host usr rpm rac port centos rod
原文地址:http://www.cnblogs.com/javaite/p/7062390.html