linux下装数据库的时候,图形界面在root下能起来,但在别的用户下起不来,报错
[oradev@dudu ~]$ xclock
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
单独export DISPLAY也不好使。
解决方法:
oradev为用户
[root@dudu ~]# xhost local
radev non-network local connections being added to access control list
non-network local connections being added to access control list
xhost:bad hostname "non-network"
xhost:bad hostname "local"
xhost:bad hostname "connections"
xhost:bad hostname "being"
xhost:bad hostname "added"
xhost:bad hostname "to"
xhost:bad hostname "access"
xhost:bad hostname "control"
xhost:bad hostname "list"
之后就正常起来了。
另,执行这个之后,别的用户也貌似正常了。
Nowadays, X Window is a no-brainer for Oracle users, DBA's especially. I find the easiest X Window software is XMing:
http://yong321.freeshell.org/oranotes/XWindow.txt
Just read the first section for the simple instruction.
Yong Huang