异常:Message 850 not found; No message file for product=network, facility=NL解决方案
2015-01-06 22:11
513 查看
一、异常信息:
Message 850 not found; No message file for product=network, facility=NL
二、解决方案:
后来在网上查了一下,是找不到oracle安装主目录的原因。想了一想可能是环境变量出问题了,export了一下发现果然没有$ORACLE_HOME 那几个环境变量,看了一下?.bash_profile没有发现问题,于是source .bash_profile了一下,正常启动了oracle
想了一阵子之后明白了问题所在:用ssh登录服务器时用的是其它用户名,而切换至oracle时用的是su oracle而不是su - oracle,用su oracle时不会切换用户环境,也不会加载新用户的环境变量。
在网上查了一下发现加不加这一个小横杠的区别大了:
Java代码
su 是切换到其他用户,但是不切换环境变量(比如说那些你用export命令查看一下,就知道两个命令的区别了)
su - 是完整的切换到一个用户环境
再贴点资料:
Java代码
.bash_profile只在登陆的时候读取,在X下登陆打开一个console的话是不读取该文件的。如果你在字符模式下登陆输入用户和密码的话是读取的。如果在X下打开一个console要读取配置,就要写在.bashrc里面,而不是.bash_profile里面.
你可以在.bashrc里面加入:
if test -f .bash_profile; then
. .bash_profile
fi
这样.bash_profile里面内容变了就不需要再改.bashrc面的内容了.
bash 登陆的时候读取配置文件的顺序如下:
.bash_profile
.bash_login
.profile
按这个顺序只要读到一个就不再读取其他的两个. 当然全局的/etc/profile是最先读的,/etc/profile里面的配置可以在以上三个文件中覆盖掉.
当bash不是作为登陆shell打开时,比如你先用csh登陆,然后再输入bash切换到bash ,那么只读取.bashrc
里的内容.不读取.bash_profile
Message 850 not found; No message file for product=network, facility=NL
二、解决方案:
后来在网上查了一下,是找不到oracle安装主目录的原因。想了一想可能是环境变量出问题了,export了一下发现果然没有$ORACLE_HOME 那几个环境变量,看了一下?.bash_profile没有发现问题,于是source .bash_profile了一下,正常启动了oracle
想了一阵子之后明白了问题所在:用ssh登录服务器时用的是其它用户名,而切换至oracle时用的是su oracle而不是su - oracle,用su oracle时不会切换用户环境,也不会加载新用户的环境变量。
在网上查了一下发现加不加这一个小横杠的区别大了:
Java代码
su 是切换到其他用户,但是不切换环境变量(比如说那些你用export命令查看一下,就知道两个命令的区别了)
su - 是完整的切换到一个用户环境
再贴点资料:
Java代码
.bash_profile只在登陆的时候读取,在X下登陆打开一个console的话是不读取该文件的。如果你在字符模式下登陆输入用户和密码的话是读取的。如果在X下打开一个console要读取配置,就要写在.bashrc里面,而不是.bash_profile里面.
你可以在.bashrc里面加入:
if test -f .bash_profile; then
. .bash_profile
fi
这样.bash_profile里面内容变了就不需要再改.bashrc面的内容了.
bash 登陆的时候读取配置文件的顺序如下:
.bash_profile
.bash_login
.profile
按这个顺序只要读到一个就不再读取其他的两个. 当然全局的/etc/profile是最先读的,/etc/profile里面的配置可以在以上三个文件中覆盖掉.
当bash不是作为登陆shell打开时,比如你先用csh登陆,然后再输入bash切换到bash ,那么只读取.bashrc
里的内容.不读取.bash_profile
相关文章推荐
- Message 1070 not found; No message file for product=network, facility=TNSTNS-12546: Message 12546 no
- Message 1070 not found; No message file for product=network, facility=TNSTNSLSNR for Linux: Version
- tnsping 报错Message 3511 not found; No message file for product=network, facility=TNSTNS-03505:
- TNS-01106: Message 1106 not found; No message file for product=network, facility=TNS
- TNS-01106: Message 1106 not found; No message file for product=network, facility=TNS
- EXP-00000: Message 0 not found; No message file for product=RDBMS, facility=EXP问题的解决方案
- TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS报错
- oracle数据泵impdp命令导入报错UDI-00013: Message 13 not found; No message file for product=RDBMS, facility=UDI
- TNS-01106: Message 1106 not found; No message file for product=network, facility=TNS(转)
- EXP-00000: Message 0 not found; No message file for product=RDBMS, facility=EXP问题的解决方案
- Message 2100 not found; No message file for product=RDBMS, facility=UL
- Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No mes
- EXP-00000: Message 0 not found; No message file for product=RDBMS, facility=EXP问题的解决方案
- 拷贝本地文件至HDFS异常:No FileSystem for scheme: file
- 【甘道夫】HBase开发环境搭建过程中可能遇到的异常:No FileSystem for scheme: hdfs
- AAPT err(Facade for 1191041091) : No Delegate set : lost message:libpng error: Not a PNG file
- java.io.IOException: No FileSystem for scheme: hdfs异常解决
- Siebel异常:No server connect string for Siebel Component servermgr in Siebel Enterprise解决方案
- PCC-F-NOERRFILE, unable to open error message file, facility PR2
- 【甘道夫】HBase开发环境搭建过程中可能遇到的异常:No FileSystem for scheme: hdfs