时间:2021-07-01 10:21:17 帮助过:19人阅读
创建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