Install oracle client in docker container(在 docker 容器中安装 oracle 客户端)
问题描述
我使用 alpine linux 作为基础镜像,我需要安装一个 oracle 客户端原生库.我相信你可以从这里下载:
I am using alpine linux as a base image, and I need to install an oracle client native library. I believe you can download from here:
https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
看来我必须登录才能下载,有谁知道如何在不登录的情况下下载客户端库的 zip 文件?
it looks like I have to login to download, does anyone know how to download a zip file of the client lib without login?
有谁知道如何在 bash 脚本或 dockerfile 中正确安装客户端库?
does anyone know how to install the client library properly in a bash script or dockerfile?
推荐答案
我想出了一些在 ubuntu Docker 中安装 Oracle 即时客户端的不同方法,它可能对其他人有帮助
I have figure out some different way to install Oracle instant client in ubuntu
Docker, it might help others
请按照以下简单步骤操作:
Follow these simple steps:
从 .rpm 文件)64-downloads.html"rel="noreferrer">oracle官方下载中心
Download oracle instant client (
.rpm
file) from oracle official download center
转换为 .deb
(您可以使用 apt-get install Alien
)并移动到您工作目录中的某个位置.
Convert into .deb
(you can use apt-get install alien
) and move somewhere in your working directory.
现在更新您的 Dockerfile
并进行构建
Now Update your Dockerfile
and make build
RUN apt-get update
WORKDIR /opt
ADD ./ORACLE-INSTANT-CLIENT.deb /opt
#if libaio also required
RUN apt-get install libaio1
RUN dpkg -i oracle-instantclient.deb
这篇关于在 docker 容器中安装 oracle 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 docker 容器中安装 oracle 客户端


- SQL 临时表问题 2022-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 更改自动增量起始编号? 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01