1.X11
ssh -X oracle@192.168.255.202
如果连到root在切oracle会报错X11 connection rejected because of wrong authentication.
然后直接dbca就行了
2.在虚拟机里
su -
export DISPLAY=:0.0
xhost +
su - oracle
export DISPLAY=:0.0
dbca
不行就export DISPLAY=IP:0.0 IP是你运行xshell,也就是macos的ip
3.用VNC
密码oracle
虚拟机要安装vncserver
然后用命令
vncserver
service vncserver start
如果出现
[root@gc1 ~]# service vncserver start
Starting VNC server: no displays configured [ OK ]
[root@gc1 ~]# service vncserver status
Xvnc is stopped
需要配置配置文件
vi /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
其中第一行’1’为端口号,如:“1:root 2:tiger”(tiger为系统另一存在用户)
mac安装vnc
用vncviewer
虚拟机ip:1连接
链接进去后root用户
xhost +
再切oracle就可以dbca了
1万+

被折叠的 条评论
为什么被折叠?



