在linux系統中用oracle用戶執行DBCA出現:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
解決方式有兩種:(推薦第二種好記)
1)用root登陸,在#提示符後輸入:
xhost local:oracle non-network local connections being added to access control list
回車之後出現一下內容:
non-network local connections being added to access control list
xhost: bad hostname "non-network"
xhost: bad hostname "local"
xhost: bad hostname "connections"
xhost: bad hostname "being"
xhost: bad hostname "added"
xhost: bad hostname "to"
xhost: bad hostname "access"
xhost: bad hostname "control"
xhost: bad hostname "list"
然後用oracle用戶執行dbca問題解決。
2)root用戶直接執行 xhost + 然後用oracle用戶執行dbca問題解決。
--都是用來解決Linux下命令或java程序調用圖形化程序出現的問題,遇到好幾次了就是記不住啊~暈~