Oracle初始化环境参数脚本orcl_env.sh

初始化环境参数脚本orcl_env.sh

#!/bin/sh
ORACLE_BASE=/app/oracle
ORACLE_SID=orcl
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_SID ORACLE_HOME PATH
echo $ORACLE_BASE
echo $PATH

单独执行脚本好像有问题,可以将脚本添加到/etc/profile

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *