DEV Community

Captain Corgi
Captain Corgi

Posted on

7 2

Golang Oracle DB Example

This is a small example of connect and use Oracle DB in Golang

Check out at:
https://github.com/captain-corgi/golang-oracledb-example

Materials
Tutorals:

https://www.oracletutorial.com/

Driver:

https://github.com/sijms/go-ora

Custom Dialector for GORM references from:

https://github.com/CengSin/oracle

Gorm (With my oracle custom dialector):

https://gorm.io/

Note
Container Database: Username: SYS

Role: SYSDBA

Password: Oradoc_db1

Host: localhost

SID: ORCLCDB
Pluggable Database: Username: SYS

Role: SYSDBA

Password: Oradoc_db1

Host: localhost

Service Name: ORCLPDB1.localdomain
The download page (with details and > comments) is here:

https://hub.docker.com/_/oracle-database-enterprise-edition

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay