3.执行sqlplus出现问题
commad not found 环境变量未设置
设置环境变量
#vi /home/oracle/.bash_profile
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:/$ORACLE_HOME/bin:$HOME/bin
[oracle@localhost lib]$ ../bin/sqlplus
../bin/sqlplus: error while loading shared libraries: /opt/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
root权限执行
semanage fcontext -a -t textrel_shlib_t /opt/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
restorecon -R -v /opt/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1