oracle for linux安装报错 file /home/oracle/.Xauthority does not exist
2017-10-12 11:20
537 查看
今天,一新手学oracle,安装完oracle数据库软件后,执行dbca时报错,核心错误是: file /home/oracle/.Xauthority does not exist
然后,使用oracle用户登录数据库后,执行ls -a发现报错,bash:command not found
估计是环境变量配置错了,然后使用root用户登录,root执行ls命令正常,然后cd /home/oracle查看.bash_profile
发现PATH环境变量设置是:export PATH=$ORACLE_HOME/bin:$path
而.bash_profile没有path的设置,这就是为什么执行数据库相关命令sqlplus正常,但是执行操作命令报错的原因了。
解决方法:
将export PATH=$ORACLE_HOME/bin:$path
改为:export PATH=$ORACLE_HOME/bin:$PATH
然后,oracle用户退出系统重新登录即可,注意这里oracle用户必须重新登录,因为oracle已经不能再执行操作系统相关的命令了。
oracle重新登录系统后,netca、dbca可以正常执行,问题解决。
然后,使用oracle用户登录数据库后,执行ls -a发现报错,bash:command not found
估计是环境变量配置错了,然后使用root用户登录,root执行ls命令正常,然后cd /home/oracle查看.bash_profile
发现PATH环境变量设置是:export PATH=$ORACLE_HOME/bin:$path
而.bash_profile没有path的设置,这就是为什么执行数据库相关命令sqlplus正常,但是执行操作命令报错的原因了。
解决方法:
将export PATH=$ORACLE_HOME/bin:$path
改为:export PATH=$ORACLE_HOME/bin:$PATH
然后,oracle用户退出系统重新登录即可,注意这里oracle用户必须重新登录,因为oracle已经不能再执行操作系统相关的命令了。
oracle重新登录系统后,netca、dbca可以正常执行,问题解决。
相关文章推荐
- archlinux yaourt安装 以及出错细节 database file for "archlinuxfr" does not exist.
- yii2框架刚安装上报The file or directory to be published does not exist: /home/wwwroot/advanced/vendor/bower
- ECM: The inventory location file for the special Windows NT case does not exist or is unreadable
- ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux Error: 2: No suc
- Linux下Oracle11G RAC报错:在安装oracle软件时报file not found一例
- 解决Android Studio编译后安装apk报错:The APK file does not exist on
- 安装Yii碰到“the file or directory to be published does not exist bower/jquery/dist”
- GC安装中出现oracle gc pm state file does not exit opmndat
- AS Error:File xxx specified for property 'resourceFile' does not exist
- specified for property 'resourceFile' does not exist
- release-stripped.ap_' specified for property 'resourceFile' does not exist.
- Oracle 11g linux 安装【oc4j_applications/applications/WFMLRSVCApp.ear File not found】
- AS2.2打包:release-stripped.ap_' specified for property 'resourceFile' does not exist
- java.io.FileNotFoundException: File does not exist: hdfs ://sxt/home/sqoop-1.4.6/lib/commons-codec-1
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- The file does not exist for the external tool
- Linux 安装*src.rpm的时候出现:warning: user mandrake does not exist - using root warning
- FreeBSD下安装Zend3.2.8提示File:./dialog does not exist!
- File xxx specified for property 'resourceFile' does not exist.解决方法
- 我的Android进阶之旅------>解决Android Studio编译后安装apk报错:The APK file does not exist on disk