How to connect GoLang to Oracle Database 23c in Windows - Go Oracle Database connectivity - godror

Channel:
Subscribers:
5,740
Published on ● Video Link: https://www.youtube.com/watch?v=O_-kyqd-DD0



Category:
Tutorial
Duration: 7:40
13 views
0


In this video we are going to see how to connect GoLang with Oracle Database 23c using Go Driver for Oracle DB (godror).
Requirements: Go 1.20, Oracle Database 23c Free running on linux virtual machine and We need C/C++ compiler to be installed in our machine.
Here we are using latest mingw compiler. godror is cgo package. If you want to build your app using godror, you need gcc (a C compiler).
1. Add the Go and MingW compiler's bin directory to PATH variable.
2. Go to the directory where you have Golang source files in command prompt.
3. create a Go module (go mod init oracle23c).
4. download the godror oracle driver (go get github.com/godror/godror).
5. Run the Go Program that connects to Oracle Database.

Important Note: MingW compiler is mandatory here and Oracle Instant Client is not needed for this program which I have shown.

MingW Compiler can be downloaded from https://github.com/niXman/mingw-builds-binaries/releases
Go Driver for oracle can be downloaded from https://github.com/godror/godror
Golang can be obtained from https://go.dev/dl/

#go #goprogramming #golang #golangtutorial #golanguage #golangoracle #godror #golangwindows #gowindows




Other Videos By java frm


2023-04-18How to print length and capacity of array in GoLang 1.20
2023-04-18How to append elements to slice in GoLang 1.20
2023-04-18How to append data to a file in GoLang 1.20
2023-04-18How to create anonymous struct in GoLang 1.20
2023-04-18How to create struct with fields that contain only a type without the field name in GoLang 1.20
2023-04-18How to add elements to map in GoLang 1.20
2023-04-18How to access and modify individual fields of struct in GoLang 1.20
2023-04-18How to access individual runes using for range loop in GoLang 1.20
2023-04-18How to access individual characters of string using for range loop in GoLang 1.20
2023-04-18How to access and print individual bytes of string in GoLang 1.20
2023-04-18How to connect GoLang to Oracle Database 23c in Windows - Go Oracle Database connectivity - godror
2023-04-18How to connect GoLang to Oracle Database 19c in Windows - Go Oracle Database connectivity - godror
2023-04-18How to connect GoLang to Oracle Database 12c in Windows - Go Oracle Database connectivity - godror
2023-04-18How to remove the entire module download cache in GoLang for Windows - GoLang 1.20
2023-04-18How to Build, install and run Go Programs in Windows - GoLang 1.20
2023-04-15How to install golang 1.20 on Windows 11 from zip archive - GO 1.20 installation on Windows
2023-04-15How to install golang 1.20 on Rocky Linux 8 from zip archive - GO 1.20 installation on linux
2023-04-15How to install golang 1.20 on Red Hat Enterprise Linux 8 from zip - GO 1.20 installation on linux
2023-04-15How to install golang 1.20 on Oracle Linux 8 from zip archive - GO 1.20 installation on linux
2023-04-15How to install golang 1.20 on AlmaLinux 8 from zip archive - GO 1.20 installation on linux
2023-04-15How to install golang 1.19 on Windows 11 from zip archive - GO 1.19 installation on Windows



Tags:
how to connect oracle database 23c using golang
golang oracle driver
golang oracle connection example
go 1.20 oracle 23c
golang oracle 23c
golang oracle database connection
golang oracle query example
golang oracle db
golang oracle sql drvier
godror
connect oracle database using go program
go database programming
go driver for oraclego tutorial
golang tutorial
golang projects
go programming course
learn go
how to run go program
golang videos