Vagrant安装Oracle数据库错误的解决

最近笔记本升级到Windows 11后,利用Oralce Vagrant项目安装19.3.0企业版总是出错,错误为:

复制代码
...
    oracle-19c-vagrant:   Installing : 2:ethtool-4.8-10.el7.x86_64                                54/55
    oracle-19c-vagrant:   Installing : oracle-database-preinstall-19c-1.0-3.el7.x86_64            55/55
The SSH connection was unexpectedly closed by the remote end. This
usually indicates that SSH within the guest machine was unable to
properly start up. Please boot the VM in GUI mode to check whether
it is booting properly.

目前没有找到原因,但有一个临时解决方法。

首先,修改scripts目录下的install.sh文件,将yum install -y oracle-database-preinstall-19c openssl语句移动到前面,即注释# get up to date的下方:

bash 复制代码
# get up to date
# 新的位置
yum install -y oracle-database-preinstall-19c openssl
yum upgrade -y

echo 'INSTALLER: System updated'

# fix locale warning
yum reinstall -y glibc-common
echo LANG=en_US.utf-8 >> /etc/environment
echo LC_ALL=en_US.utf-8 >> /etc/environment

echo 'INSTALLER: Locale set'

# set system time zone
sudo timedatectl set-timezone $SYSTEM_TIMEZONE
echo "INSTALLER: System time zone set to $SYSTEM_TIMEZONE"
# 原来的位置
# yum install -y oracle-database-preinstall-19c openssl
...

然后,可以开始安装。在进行到以下界面时,界面会停住:

bash 复制代码
...
    oracle-19c-vagrant-ok:   Verifying  : psmisc-22.20-17.el7.x86_64                                 55/59
    oracle-19c-vagrant-ok:   Verifying  : libX11-common-1.6.7-4.el7_9.noarch                         56/59
    oracle-19c-vagrant-ok:   Verifying  : 1:quota-nls-4.01-19.el7.noarch                             57/59
    oracle-19c-vagrant-ok:   Verifying  : 1:openssl-1.0.2k-25.el7_9.x86_64                           58/59
    oracle-19c-vagrant-ok:   Verifying  : 1:openssl-libs-1.0.2k-25.el7_9.x86_64                      59/59
    oracle-19c-vagrant-ok:
    oracle-19c-vagrant-ok: Installed:
    oracle-19c-vagrant-ok:   oracle-database-preinstall-19c.x86_64 0:1.0-3.el7
...

此时只需要另起一个窗口,进入vagrant项目的目录,执行vagrant ssh或vagrant putty命令登录虚机,然后上面停顿的命令就可以继续了。接下来就正常安装了。

所以还是很怀疑是ssh的问题。

相关推荐
—Miss. Z—1 小时前
计算机二级MySQL——基本操作题
数据库·mysql·oracle
G.O.G.O.G18 小时前
《LeetCode SQL 从入门到进阶(MySQL)》06(下)
数据库·sql·oracle
爱刷碗的苏泓舒1 天前
网络通信入门:电脑连接 GNSS 定位终端的Wi‑Fi热点下载文件的原理
ssh·网络通信·gnss·嵌入式系统·数据传输·wifi热点·终端调试
Leon-Ning Liu1 天前
【真实经验分享】Oracle RAC 修改 db_file_name_convert / log_file_name_convert 参数实践
数据库·oracle
Leon-Ning Liu1 天前
【真实经验分享】Oracle RAC + ASM 下 db_recovery_file_dest 路径格式导致 ORA-01261 无法 NOMOUNT
数据库·oracle
踏月的造梦星球2 天前
DMHS同步原理与DM8到DM8基础搭建
数据库·oracle
微三云 - 廖会灵 (私域系统开发)2 天前
电商系统监控告警体系从0到1:Prometheus+Grafana+AlertManager的全链路可观测性实践
oracle·grafana·prometheus
G.O.G.O.G2 天前
LeetCode SQL 从入门到精通(MySQL)05(下)
数据库·sql·oracle
alxraves2 天前
医院远程会诊系统:数据库模块设计与实现
数据库·oracle
苦瓜汤补钙2 天前
Oracle JDK8 环境配置-Win11
开发语言·数据库·笔记·oracle