netca error

$su - oracle

$ cd $ORACLE_HOME/bin

$ ls netca*

netca

$netca

 

DISPLAY environment variable is not set!

........

 

So I began to set the DISPLAY variable:

 

$DISPLAY=:0.0

$export DISPLAY

$echo $DISPLAY

:0.0

 

But when I execute netca again, it showed the error message as below:

 

Oracle Net Services Configuration:

Xlib: connection to ":0.0" refused by server

Xlib: no protocol is specified

 

Then I refered to the following content:

 

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

Error: Can't open display: :0.0

这是老问题了,不过这次对我来说却有些不同。想在自己的本本ubuntu上安装oracle10,结果新增加的用户oracle不能运行X程序。

查了查资料和手册,以日常工作用的那个用户登录,在shell中运行
xhost local:oracle
non-network local connections being added to access control list

然后oracle身份就可以运行X程序了。

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的问题的。

It's said that I should execute the command "xhost +". What does "+" here mean?

 

I can only find the xhost in /usr/openwin/bin but I can't execute it. Why?

 

To be continued...

 

I use the 'oracle' account to login the operating system,then I execute the 'netca' command and it started.I wonder why. Maybe I must set the correct environment variables when using root account.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值