Oracle19c单实例数据库搭建

2022/5/3 2:12:55

本文主要是介绍Oracle19c单实例数据库搭建,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

学习的途中不免有磕磕绊绊,总归得学会自己去解决问题。下面对本人学习安装Oracle数据库遇到的问题进行记录:

 

linux通过包VNC-Server-6.9.1-Linux-x64.rpm,安装vncserver(桌面0起始端口号为5900,桌面1:5901,以后一次递增)

windows安装VNC-Viewer-6.19.715_Windows.exe,目的是为了连接Linux,能够使用图形化在Linux上安装Oracle。

以下是在运行安装程序时报的错。一开始以为需要另外安装xclock,但经学习发现vnc和xclock是不同的。xclock是基于ssh连接的。

vncserver :1 先配置vncserver的服务桌面为本地(Linux)IP:1(5901)

/*  ll /root/.Xauthority
-rw-------. 1 root root 576 May 2 18:45 /root/.Xauthority
[root@db ~]# ll /home/oracle/.
./ .bash_logout .cache/ .esd_auth .kshrc .ssh/
../ .bash_profile .config/ .ICEauthority .local/ .viminfo
.bash_history .bashrc .dbus/ .java/ .mozilla/ .vnc/
[root@db ~]# cp /root/.Xauthority /home/oracle/.Xauthority
[root@db ~]# chown oracle /home/oracle/.Xauthority

*/这是检查Oracle是否与root有相同配置文件,没有则复制过去且文件权限改为Oracle
[root@db ~]# echo $DISPLAY //输出发现并没有显示变量,这里咱们进行手动添加。

[root@db ~]# export DISPLAY=192.168.43.254:1.0
[root@db ~]# echo $DISPLAY
192.168.43.254:1.0//到这里运行./runInstaller

[oracle@db db_1]$ ./runInstaller
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.

Can't connect to X11 window server using '192.168.43.254:1.0' as the value of the DISPLAY variable. //这里报错,不能将连接到这个DISPLAY,接下来更改变量。

[root@db ~]# export DISPLAY=192.168.43.10:1.0
[oracle@db db_1]$ export DISPLAY=192.168.43.10:1.0
[oracle@db db_1]$ ./runInstaller
Launching Oracle Database Setup Wizard..

 

 

至此,成功显示Linux图形界面。

 



这篇关于Oracle19c单实例数据库搭建的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程