An unexpected error has been detected by HotSpot Virtual Machine及DISPLAY not set





这个错误发生在执行 ./runInstaller 命令安装Oracle时,提示以下错误:

>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-08-31_01-37-49AM. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:  			% setenv DISPLAY
- For sh, ksh and bash: 	$ DISPLAY=; export DISPLAY
Use the following command to see what shell is being used:
	echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
	echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
	% <full path to xclock.. see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.



最简单的,不要用远程ssh安装,直接在虚拟机的命令终端执行 ./runInstaller 命令进行安装即可



export DISPLAY=:0

xhost + 你的虚拟机ip

xhost +




2.执行 netca 命令报错


racle Net Services 配置:
# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGSEGV (0xb) at pc=0x00007fcbedfffc2d, pid=4047, tid=140515039180608
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode)
# Problematic frame:
# C  []  snlinGetAddrInfo+0x1b1
# An error report file with more information is saved as hs_err_pid4047.log
# If you would like to submit a bug report, please visit:
/u01/app/oracle/product/ 行 178:  4047 已放弃               (吐核)$JRE $J

这个错误是由于没有更改、设置主机名导致的,安装linux默认的主机名一般是localhost,但是执行 netca 命令的时候不能使用localhost作为主机名,需要手动更改,错误解决如下:


hostname 新的主机名(随便设置)


hostname demoliu


vim /etc/hosts


你的虚拟机ip地址 刚才设置的主机名

例如: demoliu

欢迎关注我的微信公众号 "抓几个娃", 一起聊聊技术和生活


已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 技术工厂 设计师:CSDN官方博客 返回首页