oracle環境變量配置
配置oracle的路徑,執行以下命令
export ORACLE_HOME=/home/oracle/oracle/product/12.1.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
設置oracle實例名,
若沒有設置實例名則會有異常:ORA-12162: TNS:net service name is incorrectly specified
執行以下命令
export ORACLE_SID=orcl