[Feelings & Sharing] 在deepin上使用oracle
Tofloor
poster avatar
HelloWorld!
deepin
2024-03-19 00:44
Author

一:开启 vnc 桌面

用另一个帐号登陆开启 vnc,这里用 Deepin-MHC 帐号,该帐号不能进入图形界面,否则 vnc 黑屏

image.png

image.png

image.png

image.png

成功进入 vnc 桌面

二:设置 DISPLAY

在 Deepin-MHC 帐号 执行

image.png

Deepin-MHC@deepin:~$ export DISPLAY=:1
Deepin-MHC@deepin:~$ xhost +
access control disabled, clients can connect from any host
# 出现上面这句就成功了

在 oracle 账户执行

oracle@deepin:~$ export DISPLAY=:1
oracle@deepin:~$ xhost +
access control disabled, clients can connect from any host
# 同上

三 : 切换到 oracle 的 bin 目录

在 bin 目录执行

oracle@deepin:/usr/local/oracle/Oracle/product/11.2.0/db_1/bin$ dbc

image.png

image.png

image.png

在 vnc 桌面上就打开了 dbca 的图形界面,这里中文变括号,记得是要在 oracle 帐号设置用户变量。

这个问题明天再解决

四:今天遇到的问题


Deepin-MHC@deepin:~$ su - oracle
请输入密码:
验证成功
oracle@deepin:~$ tigervncserver 
Cleaning stale pidfile '/home/oracle/.vnc/deepin:1.pid'!

New 'deepin:1 (oracle)' desktop at :1 on machine deepin

Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/deepin:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/oracle/.vnc/passwd :1 to connect to the VNC server.


tigervncserver: Failed command '/home/oracle/.vnc/xstartup': 256!

=================== tail -15 /home/oracle/.vnc/deepin:1.log ===================

Mon Mar 18 23:11:08 2024
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

Xvnc TigerVNC 1.9.0 - built Jul 15 2021 07:40:49
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12004000, The X.Org Foundation


Tue Mar 19 00:32:45 2024
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0

===============================================================================

Starting applications specified in /home/oracle/.vnc/xstartup has failed.
Maybe try something simple first, e.g.,
        tigervncserver -xstartup /usr/bin/xterm

我在开启oracle账户的vnc时,没有正常开启,导致连接黑屏

image.png

按照提示输入

oracle@deepin:~$ tigervncserver -xstartup /usr/bin/xterm

New 'deepin:1 (oracle)' desktop at :1 on machine deepin

Starting applications specified in /usr/bin/xterm
Log file is /home/oracle/.vnc/deepin:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/oracle/.vnc/passwd :1 to connect to the VNC server.


现在没有错误提示,但是连接到vnc桌面,只有命令行界面

image.png

这个为什么没有图形界面了?

现在只能用oracle登录图形界面,用另一个帐号开启vnc,折腾一下午了还没找到办法sob

Reply Favorite View the author
All Replies
👀偷偷观察
deepin
2024-03-19 08:16
#1

docker 一键安装,别试图把这些东西装在桌面系统上,弄的环境乱糟糟。docker是最好的选择

Reply View the author
HelloWorld!
deepin
2024-03-19 13:33
#2
👀偷偷观察

docker 一键安装,别试图把这些东西装在桌面系统上,弄的环境乱糟糟。docker是最好的选择

桌面环境安装这个的确麻烦,各种环境容易乱,当时安装的时候不知道用docker

Reply View the author
luyh
deepin
2024-03-20 19:49
#3

确实,数据库这种最多垃圾

Reply View the author