docker exec -it php81 /bin/bash
#oracle client
https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
-Base
wget https://download.oracle.com/otn_software/linux/instantclient/2113000/instantclient-basic-linux.x64-21.13.0.0.0dbru.zip
-Tools
wget https://download.oracle.com/otn_software/linux/instantclient/2113000/instantclient-sqlplus-linux.x64-21.13.0.0.0dbru.zip
-Development and Runtime
https://download.oracle.com/otn_software/linux/instantclient/2113000/instantclient-sdk-linux.x64-21.13.0.0.0dbru.zip
unzip instantclient-basic-linux.x64-21.13.0.0.0dbru.zip
unzip instantclient-sqlplus-linux.x64-21.13.0.0.0dbru.zip
unzip instantclient-sdk-linux.x64-21.13.0.0.0dbru.zip
mv instantclient_21_13 /usr/local/opt/
apt-get install build-essential libaio1
ln -s libclntsh.so.21.1 libclntsh.so
ln -s libnnz21.so libnnz.so
ln -s libclntshcore.so.21.1 libclntshcore.so
docker-php-ext-configure oci8 --with-oci8=instantclient,/usr/local/opt/instantclient_21_13
docker-php-ext-install oci8
echo /usr/local/opt/instantclient_21_13 > /etc/ld.so.conf.d/oracle-instantclient
ldconfig
-PHP 7
pecl install oci8-2.2.0
-PHP 8.0
pecl install oci8-3.0.1
-PHP 8.1
pecl install oci8-3.2.1
-PHP 8.2
pecl install oci8
-Oracle instant client library
instantclient,/usr/local/opt/instantclient_21_13
echo extension=oci8 > /usr/local/etc/php/conf.d/docker-php-ext-oci8.ini
-Unable to load dynamic library 'oci8.so'
ldd /usr/local/lib/php/extensions/no-debug-non-zts-20210902/oci8.so
cp /usr/local/opt/instantclient_21_13/libnnz21.so /lib/x86_64-linux-gnu/
cp /usr/local/opt/instantclient_21_13/libclntshcore.so.21.1 /lib/x86_64-linux-gnu/
apt-get install -y libnsl*
docker-php-ext-enable oci8
-对于PHP PDO连接Oracle数据库查询中文乱码问题
vim /usr/local/etc/php-fpm.d/www.conf
在最后一行新增:
env[NLS_LANG]=AMERICAN_AMERICA.AL32UTF8
上篇:
推进网络安全保护工作 2022年建成医保网络安全体系
下篇:
软件著作权申请简明流程
1 Unsloth:大模型微调的革命性工具,支持DeepSeek QwQ Gemma... 2 一文图解Agent智能体:60张图、14个技术点回顾Agent的基本认知 3 SFT 指令微调数据 如何构建? 4 快速对QWen2.5大模型进行微调 5 DeepseekR1+ollama+dify1.0.0搭建企业/个人知识库 6 使用Easy Dataset为大模型准备训练数据,在线部署 7 携程PB级数据基础平台2.0建设,多机房架构下的演进 8 用LLaMA-Factory,训练一个你的专属大模型!超简单易懂教程 9 一文搞懂AI关键术语:LLM、RAG、Prompt、Embedding等 10 AI大模型中 .safetensors 文件、.ckpt文件、.gguf和.pt... 11 Oracle SQL Developer - Oracle优化教程 12 使用OBD白屏部署OceanBase数据库