-bash: netca: command not found
-bash: dbca: command not found
如果oracle安装后执行netca或dbca command not found 可能是环境变量设置问题
查看这个配置文件vi .bash_profile是否正确
像我的
export PATH
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export SQLPATH=/home/oracle/labs
export PATH=$ORACLE_HOME/bin:$PATH
保证你的ORACL_HOME和自己的安装目录是一样的。
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
sid未设置
export ORACLE_SID=ora10g
Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
主机名不能是localhost 换一个主机名
localhostctl set-hostname 新主机名
./netca
****DISPLAY environment variable not set!
Oracle Net Configuration Assistant is a GUI tool
which requires that DISPLAY specify a location
where GUI tools can display.
Set and export DISPLAY, then re-run.
未设置变量
export DISPLAY=192.168.30.2:0.0