我使用 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 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
有没有办法使用 SQL 获取有关服务器的信息Is there a way to get information about a server using SQL(有没有办法使用 SQL 获取有关服务器的信息)
如何在 Oracle 中通过 XPath 获取第一个元素How to get first element by XPath in Oracle(如何在 Oracle 中通过 XPath 获取第一个元素)
Oracle XMLTable-从父节点获取列Oracle XMLTable- fetching column from parent node(Oracle XMLTable-从父节点获取列)
如何从 XMLType 节点中提取元素路径?How to extract element-path from XMLType Node?(如何从 XMLType 节点中提取元素路径?)
使用取自序列的值将属性添加到 xmltypeAdd attribute to xmltype with value taken from sequence(使用取自序列的值将属性添加到 xmltype)
即使表达式值为空,如何强制执行 xmlforest creatHow to enforce xmlforest creat elements even if expression value is null?(即使表达式值为空,如何强制执行 xmlforest creat 元素?)