dbx/agents/drivers/oracle-go
t8y2 28b3491843
fix(oracle): preserve table metadata in DDL and clones
Closes #5215
2026-08-08 14:34:55 +08:00
..
.gitignore
README.md
go.mod fix(oracle): build windows-x64 agent with Go 1.20 for Win7 support 2026-08-07 13:44:28 +08:00
go.sum fix(oracle): add GB18030 charset fallback 2026-07-07 17:54:52 +08:00
main.go fix(oracle): preserve table metadata in DDL and clones 2026-08-08 14:34:55 +08:00
main_test.go fix(oracle): preserve table metadata in DDL and clones 2026-08-08 14:34:55 +08:00
tns.go feat(oracle): add TNS connections and trigger editing 2026-07-23 23:03:45 +08:00
tns_test.go feat(oracle): add TNS connections and trigger editing 2026-07-23 23:03:45 +08:00

README.md

DBX Oracle Go Agent

Experimental native Oracle agent for DBX using github.com/sijms/go-ora/v2.

Build

go build -o agent .

Cross-compile release builds use pure Go output:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o dbx-agent-oracle-linux-x64 .
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags="-s -w" -o dbx-agent-oracle-macos-aarch64 .
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o dbx-agent-oracle-windows-x64.exe .

Local DBX Test

Build the binary, then copy it into DBX's installed Oracle driver directory:

mkdir -p ~/.dbx/agents/drivers/oracle
cp agent ~/.dbx/agents/drivers/oracle/agent
chmod +x ~/.dbx/agents/drivers/oracle/agent

DBX prefers agent over agent.jar, so Oracle connections will use this Go agent until the file is removed.

To restore the Java agent:

rm ~/.dbx/agents/drivers/oracle/agent