社区应用 最新帖子 精华区 社区服务 会员列表 统计排行 银行
memoriesoff 离线
级别: 论坛版主
UID: 10
精华: 1
发帖: 387
积分: 844 分
威望: 0 点
贡献: 0 点
爱心: 0 个
好评度: 0 点
在线时间: 215(时)
注册时间: 2009-10-02
最后登录: 2024-12-04
楼主  发表于: 2013-01-28   

redhat

同步服务器时间
ntpdate x.x.x.x ; /sbin/hwclock -w
ntpdate time.windows.com ; /sbin/hwclock -w
yueimasaka 离线
级别: 总版主
UID: 2
精华: 3
发帖: 65
积分: 160 分
威望: 109 点
贡献: 100 点
爱心: 99 个
好评度: 0 点
在线时间: 25(时)
注册时间: 2000-01-01
最后登录: 2020-05-14
沙发  发表于: 2013-03-11   
同一台机器的不同用户访问
在linux系统中用Oracle帐号执行DBCA或其他JAVA图形界面程序时,报错:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0

解决办法:用root登陆,在#提示符后输入:

xhost local:oracle 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"

此时再 su - oracle 切换到Oracle用户执行图形界面任务就可以了

man xhost中有这样一段

A complete name has the syntax ‘‘family:name’’ where the families are as follows:

inet Internet host (IPv4)
inet6 Internet host (IPv6)
dnet DECnet host
nis Secure RPC network name
krb Kerberos V5 principal
local contains only one name, the empty string
si Server Interpreted

其中local那个是用来解决同一台机器的不同用户访问X的问题的。
快速回复 顶端
内容
HTML 代码不可用
 使用签名
 Wind Code自动转换
 匿名帖
 隐藏此帖
 隐藏附件
 出售
 加密
限 150 字节
验证问题:1+1= 正确答案:2
如果您在写长篇帖子又不马上发表,建议存为草稿
限 500000 字节
按 Ctrl+Enter 直接提交