终端下输入dbca命令出现No protocol specifi

2017-12-06  本文已影响0人  十野早望

dbca命令创建数据库必须要有图形界面的支持,先输入xlock看是否有小闹钟的界面出来,没有的话命令

export DISPLAY=192.168.8.1:0.0

上述方法我是没有行的通,另一种方法如下

问题:执行dbca提示:

[oracle@localhost ~]$ dbca

Xlib: connection to ":0.0" refused by server

Xlib: No protocol specified

Exception in thread "main" [oracle@localhost ~]$

解决办法:用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用户执行图形界面任务就可以了

上一篇下一篇

猜你喜欢

热点阅读