安裝oracle數據時需要用到圖形界面安裝,當我們用root用戶登錄后切換到oracle用戶時運行./runInstaller
提示報錯: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.
這是因為沒有賦予oracle運行圖形界面的權限,這時只要在root下運行xhost + 然后回車即可解決問題。
[root@oracle ~]# xhost +
access control disabled, clients can connect from any host
[root@oracle ~]#
[root@oracle ~]# su - oracle
再運行./runInstaller就可以出安裝界面了。