1.解决中文乱码问题

export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"

2.环境变量设置

$ export ORACLE_SID=XE 
$ export ORAENV_ASK=NO 
$ . /opt/oracle/product/18c/dbhomeXE/bin/oraenv