oracle中xhost报错

一.命令找不到

xhost:command not found

yum whatprovides "*/xhost"

Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
base/filelists_db                                                               | 3.4 MB     00:00 ...
xorg-x11-server-utils-7.7-2.el6.x86_64 : X.Org X11 X server utilities
Repo        : base
Matched from:
Filename    : /usr/bin/xhost

yum -y install xorg-x11-server-utils-7.7-2.el6.x86_64

二.安装oracle11g时出现xhost:  unable to open display "192.168.1.10:0.0"、打不开图形化界面等。

终极解决方法:
1.使用Xmanager中xshell登陆到要安装oracle服务的主机上的root用户;

2.关键的第一步:设置DISPLAY环境变量为登陆机器的IP地址(注意:这里你本机windows的IP地址,即你的xmanager的安装主机,我本机的IP是10.10.11.16);
# export DISPLAY=10.10.11.16:0.0
# echo $DISPLAY
10.10.11.16:0.0

注意:这块是0.0还是1.0查看xmanage左上角就可以看到,这里点击Xmanager - Broadcast

使用“xhost +”命令;
# xhost +
access control disabled, clients can connect from any host

4.切换到oracle用户;
# su - oracle

5.关键的二步:在oracle用户再一次设置DISPLAY环境变量为登陆机器的IP地址;
如果不操作这一步骤,su到oracle用户后这个环境变量可能会丢失——郁闷之所在。
$ export DISPLAY=10.10.11.16:0.0
$ echo $DISPLAY
10.10.11.16:0.0

6.另外两个关键注意事项;

a.用root用户登录修改
在 /etc/inittab -- init进程的主配置文件 把默认级别改為 5 :

id:5:initdefault:    #意思是从图形界面启动
b.设置连接属性

打开的图形化界面是乱码

export LANG=en_US.UTF-8 切记使用oracle用户,先执行这个,在执行./runInstaller

还有一种方法:

使用vnc远程安装工具

vnc配置

1.安装vnc
yum install vnc-server
2.启动vnc
注意这里需要ps -ef |grep vncserver

vncserver

在root用户下启动,我们采用默认配置即可。
vncserver :1
会提示输入密码
3.通过vnc客户端连接l
vnc连接后打开终端,需要先设置DISPLAY
export DISPLAY=:1.0
注意:我们启动的vncserver是:1,因此我们定义DISPLAY时也需要设置成1.0,执行xhost + :
[[email protected] ~]# xhost +
access control disabled, clients can connect from any host
否则启动xhost + 会报错:
[[email protected] ~]# xhost +
xhost: unable to open display ":0.0"
4.vnc中安装oracle 11g
[[email protected] ~]# xhost +
access control disabled, clients can connect from any host
[[email protected] ~]# su - oracle
[[email protected] ~]# cd /oracle11g/database
[[email protected] ~]# ./runInstaller
执行完命令后会在vnc中打开安装界面,否则安装界面会打开在服务器本机上。

,在使用VNC远程安装时提示以下错误:
>>> Could not execute auto check for
display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY
variable is set.    Failed <<<<
解决办法,检查是否设置了DISPLAY变量:
1.在root下执行#xdpyinfo,记录下name of display:后的字符串,如  :39
2.在root下执行 #xhost +
返回信息为: access control disabled,clients canconnect from any host
3.切换到Oracle用户:#su – oracle
4.在Oracle用户下执行命令:export DISPLAY=:39
5.在Oracle下执行xdpyinfo命令,如果能正常显示,说明设置成功
重新安装即可。

原文地址:https://www.cnblogs.com/fengzhongzhuzu/p/9947049.html

时间: 2024-08-04 13:57:10

oracle中xhost报错的相关文章

oracle中触发器报错:未找到数据

select ts.tbcxsx into param_timeLimit from winf_sv_ex_hybs_tbcxsq ts  where ts.sblsh=:new.sblsh and ts.xh=:new.xh; 如果未找到任何记录,后面加一句 Exception when no_data_found then     param_timeLimit := 0;   即可:

使用Oracle SQL Developer报错:Unable to find a Java Virtual Machine

1.环境 win7 x64,oracle 11g r2,jdk6 x64 2.问题 第一次启动Oracle SQL Developer的时候会让我们填写java.exe的路径,我在jdk安装目录下的bin中找到了java.exe,但是填写以后报如下错误: 3.原因 oracle 11g中安装的Oracle SQL Developer是32位的,而我们现在给他指定的java.exe却是64位的,所以会出现这种错误. 4.解决方法 1)从网上下载Oracle SQL Developer x64,然后

navicat 连接oracle 数据库会报错

navicat 直连oracle 数据库会报错 ORA-12737 Instant Client Light:unsupported server character set ZHS16GBK 今天使用Navicat连接Oracle数据库,报了下面的这个错误:“ORA-12737 Instant Client Light:unsupported server character set ZHS16GBK” 从这个错误上看,可以知道是客户端不支持服务器端的字符集造成的,但是修改服务器端的字符集是不

oracle数据库启动报错,不能启动ASM实例

数据库rac启动时报错,日志如下,后来使用 Sat Jun  7 06:02:11 2014 GATHER_STATS_JOB encountered errors.  Check the trace file. Sat Jun  7 06:02:11 2014 Errors in file /oracle/product/admin/dqb/bdump/dqb2_j001_13352.trc: ORA-08103: object no longer exists Sat Jun  7 06:0

IE对象最后一个属性后不要加逗号,否则在IE7及以下版本中会报错

某函数返回一个对象,如果在最后一个属性后加逗号,IE7及以下版本中会报错 正确代码: return{ top:rect.top-top, bottom:rect.bottom-top, left:rect.left-left, right:rect.right-left } 错误代码(IE8以上都不会报错) return{ top:rect.top-top, bottom:rect.bottom-top, left:rect.left-left, right:rect.right-left, }

maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener

本篇文章主要介绍了"maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener ",主要涉及到maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener 方面的内容,对于maven web 项目中启动报错jav

VC中编译报错:error C2011: &#39;fd_set&#39; : &#39;struct&#39; type redefinition

这是头文件包含顺序的问题,原因与解决办法见下面代码的注释. /* 包含下面这两个头文件时,必须把winsock2.h放在前面 否则编译报错,N多的重定义错误:例如 error C2011: 'fd_set' : 'struct' type redefinition */ #include <WinSock2.h> #include <Windows.h> int main(int argc, _TCHAR* argv[]) { Sleep(1); return 0; } 其实可以不

node 中 npm报错 Error: ENOENT, stat &#39;C:\Users\Administrator\AppData\Roaming\npm&#39;

今天在看node书本时,安装express,看看里面的包.没想到出现这样一种情况. 报错了.后来思考了一下,可能是修改了node的默认安装路径.于是准备在出错的路径下建一个npm文件夹. 注意,有个时候会出现找不到AppData文件夹.看图: 看到这张图时大家应该明白了.因为这张图是隐藏起来的.大家要把他显示出来.至于如何在win7下显示文件夹,就不在这罗嗦了. 完成npm文件夹的创建后: 安装express试试: 看到下面那么一大坨东西,相信大家已经知道express暗转成功了. 在看看有没有

Oracle 11g安装报错Environment variable: "PATH"

Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.预期值 : 1023实际值 : 1245 PRVF-3929 : Adding the Oracle binary location to the PATH environment var