果然革命的道路是曲折的,前两天刚搞定SQL > startup的毛病,今天又出问题了。
在linux系统中用Oracle帐号执行DBCA或其他JAVA图形界面程序时,报错: Xlib: connection to ":0.0" refused by server Error: Can't open display: :0.0 查了一下解决办法如下:
用root登陆,在#提示符后输入:
xhost local:oracle non-network local connections being added to access control list
敲回车运行后出现(这是我的 centOS 4 的结果,其他系统可能有不同):
non-network local connections being added to access control list
此时再 su - oracle 切换到Oracle用户执行图形界面任务就可以了(我的用户名是oracle)。
PostScripts:
man xhost中有这样一段 A complete name has the syntax ‘‘family:name’’ where the families are as follows: inet Internet host (IPv4) 其中local那一行就是用来解决同一台机器的不同用户访问X的问题的。 |