본문 바로가기

Oracle

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

Oracle 환경설정 후 runInstaller 를 실행시킨 후 뜨는 오류 메세지

$ ./runInstaller
[oracle@ocm Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2006-09-11_05-38-54PM/jre/bin/java. Please wait...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
 
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
        at java.awt.Window.(Window.java:188)
        at java.awt.Frame.(Frame.java:315)
        at java.awt.Frame.(Frame.java:262)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)

DISPLAY 변수를 설정하지 않았네요
오라클 홈디렉토리 /app/oracle/ 에 있는
.bash_profile 에서

서버에서 직접 수행할 경우엔 export DISPLAY=서버아이피:0.0

다른 피씨에서 xmanager를 통하여 수행할 경우 서버아이피 대신 xmanager로 접속하고 있느는 피씨의
아이피로 DISPLAY 값을 설정하시기 바랍니다.
 
export DISPLAY=원격접속 피씨의 아이피:0.0