RHEL4 Oracle Database 10g Installation Xlib: connection to “:0.0″ refused by server
Computer software installation sometimes present some surprises especially on the Linux system. I have encountered such case when installing Oracle Database 10g Release 2 on a Redhat Enterprise Linux version 4.
Expecting for an Oracle GUI for a Universal Installer, I was prompted by a series of text. It’s good to read closely those text when installing software. The error goes as follows:
$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Cant' connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
The detailed error text goes a long way.
The error is basically about the DISPLAY which was not set properly for “oracle” user. Thus, correcting error requires adding the user “oracle” for local access to the display. To correct the error run the following command as “root” user:
$xhost local:oracle
The oracle user then way able to run the GUI of the Oracle Database 10g Installation without being prompted by Xlib: connection to “:0.0″ refused by server error.

Posted on
Tuesday, January 19th, 2010 at 9:49 am under 
Terrific tip!!! Most of the websites I’ve been to neglect to mention this as a solution. You just saved me a lot of pain! THANK YOU!!!
April 23rd, 2010 at 4:09 pm