golang连接orcale数据库
Orcale安装在远程服务器(centos7)中,采用docker-compose部署,Navicat连接成功。版本为12.1.0.2.0
docker-compose.yml
version: '2'
services:
oracle:
image: absolutapps/oracle-12c-ee
environment:
- ORACLE_PDB=system
- ORACLE_PWD=oracle
- ORACLE_CHARACTERSET=AL32UTF8
restart: always
container_name: oracle
volumes:
- /home/docker-compose/oracle/my-docker-data/oracle-11g/data:/u01/app/oracle
ports:
- 1521:1521
本机系统为:macOS Sierra
版本:10.12.6
go-oci8环境:
安装:
instantclient-basic-macos.x64-12.1.0.2.0.zip
instantclient-sdk-macos.x64-12.2.0.1.0-2.zip
下载地址:http://www.oracle.com/technetwork/topics/intel-macso